Detect HDD or SSD plus SMART Health



  • sshaff
    sshaff Member, Managed Service Provider CHOCOLATE MILK

    Hello There,

    I am getting issues with the script, even after the modifications, and it is not reporting correctly for me. Still getting the error in step 34 (Line51) and it states that my SSD is an HHD with the YP error.

    Any thoughts?


  • TheNewZippo
    TheNewZippo Member, IT Pro CHOCOLATE MILK

    This command with the added encoding, fails every time. Remove the encoding and it works but delivers that yb thing.

    (Get-Disk 1 | Get-StorageReliabilityCounter).PowerOnHours >> #vAgentConfiguration.agentTempDir#\PowerOnHours.txt -Encoding ASCII

    Any other ideas to try?