Enable/Disable USB through registry

Last updated on February 4th, 2020 at 04:55 pm

1. Exclude the Computer (Workstation) from “GPO – Deny USB” !

2. gpupdate /force

3. restart

4. Open Registry as admin and set the following values:

Enable USB immediately in computer level:(save it to .reg file)

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Start"=dword:00000003
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Enum]
"Count"=dword:00000000
"NextInstance"=dword:00000000

Disable USB immediately in computer level:(save it to .reg file)

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR\Enum]
"Count"=dword:00000000
"NextInstance"=dword:00000000