智能硬盘信息 Powershell [英] SMART Hard Drive INFO Powershell

查看:60
本文介绍了智能硬盘信息 Powershell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种可能通过 powershell 获取任何给定设备上硬盘驱动器的 SMART 数据的方法.

I am looking for a way through possibly powershell to obtain the SMART data for a hard drive on any given device.

我已经通过 CMD 和 powershell 尝试了 WMI 命令,但我所看到的但无法获得我正在寻找的适当数据.

I have tried the WMI commands both through CMD and powershell that I have seen but have not been able to get the appropriate data I am looking for.

Get-WmiObject -list

Get-WmiObject -list

我希望在此列表中找到与 SMART 或重新分配的空间相关的内容,但未找到任何相关内容.任何人都知道一种无需使用第 3 方应用程序即可从驱动器中提取智能数据的方法.我想自动化识别故障驱动器的过程,但需要传递特定信息,而不仅仅是是或否可能会发生故障.

I hoped to find something for SMART or REallocated space in this list but nothing related is found. Anyone know of a way to pull the smart data from the drive without using a 3rd party app. I want to automate a process of identifying failing drives but require specific info to be relayed not just yes or no its possible to fail.

推荐答案

在 Google 上找到了这个:https://blogs.msdn.microsoft.com/san/2011/08/11/have-you-ever-wanted-to-know-if-your-disk-is-going-to-fail-before-it-does/

Found this on the Google: https://blogs.msdn.microsoft.com/san/2011/08/11/have-you-ever-wanted-to-know-if-your-disk-is-going-to-fail-before-it-does/

Get-WmiObject `
    -namespace root\wmi `
    –class MSStorageDriver_FailurePredictStatus `
    -ErrorAction Silentlycontinue `
| Select InstanceName, PredictFailure, Reason `
| Format-Table –Autosize

这篇关于智能硬盘信息 Powershell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆