With this trick, you can disable USB access ports on Windows based PC to prevent people from taking out data without permission or spreading viruses through the use of USB drives.
Follow the steps :
Click on Start.
Click on Run. If you cannot find RUN, type it in the search box.
Type "regedit" without quotes. This will launch the Registry Editor.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbstor.
In the work area, double click on Start.
In the Value Data box, enter 4.
Click on OK.
Close Registry Editor and refresh your desktop.
To re-enable access to your USB ports, enter 3 in the Value Data box.
This works on Windows 10, Windows 8, Windows 8.1, Windows 7 and Windows XP.
Follow the steps :
Click on Start.
Click on Run. If you cannot find RUN, type it in the search box.
Type "regedit" without quotes. This will launch the Registry Editor.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbstor.
In the work area, double click on Start.
In the Value Data box, enter 4.
Click on OK.
Close Registry Editor and refresh your desktop.
To re-enable access to your USB ports, enter 3 in the Value Data box.
This works on Windows 10, Windows 8, Windows 8.1, Windows 7 and Windows XP.