标题: [问题求助] PowerShell通过wmi 读取硬盘 smart 信息的疑惑 [打印本页]
作者: winload 时间: 2016-2-13 10:28 标题: PowerShell通过wmi 读取硬盘 smart 信息的疑惑
http://blog.csdn.net/u014183302/article/details/41289451
以上网址中 ps 实现了读取 硬盘连续通电时间 温度 通电次数
用的是wmi
既然是用的wmi 那么在cmd中也有 wmic 貌似功能一样 可是试了好多方法都实现不了
请高人吧核心获取代码 用cmd的方式给翻译下 不胜感激!
作者: pcl_test 时间: 2016-2-13 20:49
- wmic /NameSpace:\\root\wmi Path MSStorageDriver_ATAPISmartData get VendorSpecific /value
复制代码
作者: winload 时间: 2016-2-14 08:06
回复 2# pcl_test
高手啊!太感谢了!关于wmic的语法用法资料太少了,走了不少弯路,感谢!
作者: winload 时间: 2016-2-14 08:56
VendorSpecific
{10, 0, 5, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 9, 50, 0, 100, 100, 29, 7, 0, 0, 18, 241, 21, 12, 50, 0, 100, 100, 46, 3, 0, 0, 0, 0, 0, 170, 51, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 171, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 172, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 174, 50, 0, 100, 100, 76, 0, 0, 0, 0, 0, 0, 183, 50, 0, 100, 100, 8, 0, 0, 0, 0, 0, 0, 184, 51, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 187, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 190, 50, 0, 16, 43, 16, 0, 43, 0, 3, 0, 0, 192, 50, 0, 100, 100, 76, 0, 0, 0, 0, 0, 0, 199, 50, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 225, 50, 0, 100, 100, 123, 214, 1, 0, 0, 0, 0, 226, 50, 0, 100, 100, 255, 255, 0, 0, 0, 0, 0, 227, 50, 0, 100, 100, 34, 0, 0, 0, 0, 0, 0, 228, 50, 0, 100, 100, 255, 255, 0, 0, 0, 0, 0, 232, 51, 0, 100, 100, 0, 0, 0, 0, 0, 0, 0, 233, 50, 0, 96, 96, 0, 0, 0, 0, 0, 0, 0, 241, 50, 0, 100, 100, 123, 214, 1, 0, 0, 0, 0, 242, 50, 0, 100, 100, 133, 246, 0, 0, 0, 0, 0, 249, 50, 0, 100, 100, 44, 89, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
查了好一会资料,还是看不懂结构,大神指点下吧
作者: ivor 时间: 2016-2-16 23:45
http://blog.csdn.net/u014183302/article/details/41289451 这有一篇讲的比较详细,而且有VBS代码
作者: winload 时间: 2016-2-17 08:52
之前没仔细看,现在解决了
作者: codegay 时间: 2016-2-17 13:38
回复 6# winload
放代码看看呗。
欢迎光临 批处理之家 (http://bathome.net./) |
Powered by Discuz! 7.2 |