Powershell Get-PnpDevice失败

时间:2018-08-27 20:38:50

标签: powershell

以管理员身份运行此PS命令时,出现错误,我无法弄清。

PS C:\WINDOWS\system32> get-pnpdevice -status UNKNOWN -class 'Monitor' | disable-pnpdevice

Confirm
Are you sure you want to perform this action?
Performing the operation "Disable" on target "Win32_PnPEntity: Generic PnP Monitor (DeviceID = "DISPLAY\NEC6865\4&1919A1B7&0&UID224795")".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
disable-pnpdevice : Generic failure
At line:1 char:50
+ get-pnpdevice -status UNKNOWN -class 'Monitor' | disable-pnpdevice
+                                                  ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Win32_PnPEntity...7&0&UID224795"):ROOT\cimv2\Win32_PnPEntity) [Disable-PnpDevice], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041001,Disable-PnpDevice

0 个答案:

没有答案