How to disable and enable USB devices using command line in Windows.
How to turn off my usb device on command line?
Mao Van
0
Reputation points
How to disable and enable usb device on command line?
Windows for business | Windows Client for IT Pros | User experience | Other
2 answers
Sort by: Most helpful
-
S.Sengupta 28,741 Reputation points MVP Volunteer Moderator
2024-11-12T00:35:39.3966667+00:00 -
Anonymous
2024-11-12T00:51:25.27+00:00 Hi Mao Van,
You can disable and enable the device using the Disable-PnpDevice and Enable-PnpDevice cmdlets in PowerShell.
Get-PnpDevice -FriendlyName "Device Name*" | Disable-PnpDevice -Confirm:$false Get-PnpDevice -FriendlyName "Device Name*" | Enable-PnpDevice -Confirm:$falseThe device name can be found in the Device Manager, or you can run Get-PnpDevice and check the FriendlyName property.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.