用 Get-PhysicalDisk 检查硬盘健康状态
在 PowerShell 中查询每块物理盘的健康状态、介质类型,以及温度、磨损度等可靠性计数。
运行 Get-PhysicalDisk | Select FriendlyName, HealthStatus, OperationalStatus 查看健康状态,再管道到 Get-StorageReliabilityCounter 看温度和磨损。
01命令
命令
$ Get-PhysicalDisk | Select-Object FriendlyName, MediaType, HealthStatus, OperationalStatus, Size
Get-PhysicalDisk | Get-StorageReliabilityCounter | Select-Object DeviceId, Temperature, Wear, ReadErrorsTotal02作用说明
HealthStatus 返回 Healthy、Warning 或 Unhealthy——Warning 通常意味着 SMART 已触发阈值,这是在硬盘彻底坏掉之前更换它的早期信号。Get-StorageReliabilityCounter 是常被遗忘的后续步骤:从 Get-PhysicalDisk 管道接入后,可暴露硬盘温度、Wear(SSD 磨损百分比)、通电时长和读写错误总数,这些磁盘管理界面从来不显示。Windows 的'预测故障'通知正是基于这些计数器。
03风险
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- Get-PhysicalDisk依据: Documents HealthStatus and OperationalStatus properties on disk objects.
- Get-StorageReliabilityCounter依据: Documents temperature, wear, and error counters piped from Get-PhysicalDisk.
最后验证: 2026-09-17 · 分类: 系统与设置