February 25th, 2016

PowerTip: Disable plug and play device with PowerShell

Doctor Scripto
Scripter

Summary: Learn how to disable a plug and play device with Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to disable a plug and play device?

Hey, Scripting Guy! Answer Use the Disable-PNPDevice cmdlet and specify the instance ID, for example:

Disable-PnpDevice -InstanceID  ‘USB\VID_5986&;PID_0266&;MI_00\7&;1E5D3568&;0000’

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.