使用WMI获取硬盘详细信息 [英] Getting hard disk details using WMI

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

问题描述

我正在尝试获取外部硬盘的硬件详细信息,如卷名,设备ID,接口类型,但最终会将其显示为固定的本地磁盘。此查询将其视为Usb:select * from Win32_DiskDrive,其中InterfaceType =''USB'';但它没有显示卷名,而且我只需要。请有人帮我解决正确的问题。谢谢

I''m trying to get hdd details like, volume name, device id, interface type, of an external hdd but it ends up showing it as a fixed local disk. This query sees it as Usb : "select * from Win32_DiskDrive where InterfaceType = ''USB''"; But it doesn''t show volume name, and all i need. Pls can someone help me out with d right query. Thanks

推荐答案

请参阅: WMI任务:磁盘和文件系统 [ ^ ]



更多: WMI任务和应用程序 [ ^ ]
See this: WMI tasks: Disks and File Systems[^]

More: WMI tasks and applications[^]


这篇关于使用WMI获取硬盘详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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