Powershell Get-PnpDevice fails

1

When running this PS command as an administrator, I get an error I can't figure out.

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
powershell
asked on Stack Overflow Aug 27, 2018 by John • edited Aug 28, 2018 by John

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0