0
我试图找到一个命令行的方式来检测device manager
卸载驱动程序,我需要一种方法,如果有在“其他设备”项目,以检测如下图所示屏幕截图有没有一种命令行方式来检测devicemanger中卸载的驱动程序?
我试图找到一个命令行的方式来检测device manager
卸载驱动程序,我需要一种方法,如果有在“其他设备”项目,以检测如下图所示屏幕截图有没有一种命令行方式来检测devicemanger中卸载的驱动程序?
情侣出这里的盒子(主要是)选项;
命令提示(管理员)
C:\> wmic path win32_pnpentity where ConfigManagerErrorcode!=0 get * /format:list
Powershell的
PS C:\> Get-WmiObject Win32_PNPEntity | where {$_.status -ne "OK"} | fl
使用从上述结果的属性,可以自定义输出;
C:\> wmic path win32_pnpentity where ConfigManagerErrorcode!=0 get pnpclass,name,status /format:list
PS C:\> Get-WmiObject Win32_PNPEntity | where {$_.status -ne "OK"} | ft pnpclass,name,status -AutoSize
注意在wmic
例如没有管。
您可以使用更多关于输出格式的信息;
C:\> wmic path win32_pnpentity where ConfigManagerErrorcode!=0 get * /format /?
和
PS C:\> get-help format
更新:
在关于具体上市 “卸载” 设备(您的邮递方式寄往这两个 “其他” 和 “卸载” 设备,这在技术上是不同的),请阅读以下Microsoft产品说明:win32_pnpentity
,
https://msdn.microsoft.com/en-us/library/aa394353(v=vs.85).aspx个
属性 的Win32_PnPEntity类有这些属性。
......
其他(1)
未知(2)
运行/全功率(3)
...
不已安装(11)
...