Show Windows physical disk health
Build a paste-ready command, then review its compatibility and effects before running it.
Get-PhysicalDisk | Select-Object FriendlyName,MediaType,HealthStatus,OperationalStatus,Sizeread-onlyno known side effects Compatibility
WindowsVerified for Windows using powershell syntax.
Operational knowledgereview due 2027-01-20
RequirementsGet-PhysicalDiskGet-PhysicalDisk must be installed and available on PATH.
Version supportGet-PhysicalDisk Current supported releasesVerified for windows using powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsFriendlyName MediaType HealthStatus OperationalStatus SizeRepresentative successful output; values vary with the selected target and system state.
Known errorsGet-PhysicalDisk: command not foundGet-PhysicalDisk is missing or is not available on PATH.
VerifyGet-PhysicalDisk | Select-Object FriendlyName,MediaType,HealthStatus,OperationalStatus,SizeThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01Get-PhysicalDiskCommandRuns the Get-PhysicalDisk stage of this one-liner.
02|PipelinePasses the output on the left to the command on the right.
03Select-ObjectCommandRuns the Select-Object stage of this one-liner.
04FriendlyName,MediaType,HealthStatus,OperationalStatus,SizeArgumentPasses FriendlyName,MediaType,HealthStatus,OperationalStatus,Size to Select-Object.
Example input
Get-PhysicalDisk | Select-Object FriendlyName,MediaType,HealthStatus,OperationalStatus,Size
Example output
FriendlyName MediaType HealthStatus OperationalStatus Size
------------ --------- ------------ ----------------- ----
NVMe Disk SSD Healthy OK 536870912000
Illustrative output — exact values vary by system and data.
Official sources