PowerTip: Disable plug and play device with PowerShell

Doctor Scripto

Dr 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’

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

Leave a comment