08-24-2020, 10:31 AM
As a SysAdmin you may be wonder about how you can Block USB so no one can use USB, Pendrive in office. Because it isn't good for your company, anyone can put a Pendrive and can steal your data, crash your computer and can do lots of things with your system so you need to block USB port.
Steps:
Method 1:
1. Go to Start Menu, type “Regedit” in the Search box to open Registry Editor.
2. Navigate to this key – HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
3. In the right-hand panel, look for Start and right click on it.
4. A sub-menu will appear, choose Modify
5. A small pop-up window will open, check if the value is 3.
Code for doing the same, just create a file using .reg extension:
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
Method 2:
>>Go to Start Menu, type “devmgmt.msc” in the Search box to open Device Manager.
>>Click on the Universal Serial Bus Controllers.
>>You will get the list of USB ports.
>>Right Click on the USB port and uninstall the driver to disable the port.
Steps:
Method 1:
1. Go to Start Menu, type “Regedit” in the Search box to open Registry Editor.
2. Navigate to this key – HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
3. In the right-hand panel, look for Start and right click on it.
4. A sub-menu will appear, choose Modify
5. A small pop-up window will open, check if the value is 3.
Code for doing the same, just create a file using .reg extension:
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
Method 2:
>>Go to Start Menu, type “devmgmt.msc” in the Search box to open Device Manager.
>>Click on the Universal Serial Bus Controllers.
>>You will get the list of USB ports.
>>Right Click on the USB port and uninstall the driver to disable the port.