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)
...