PowerTip: Disable plug and play device with PowerShell

Doctor Scripto

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’

0 comments

Discussion is closed.

Feedback usabilla icon