Recently, there have been a lot of security guidelines being passed down from the various security related agencies and from the auditors about USB thumb drives and HDD drives being plugged into the workstations or notebooks. Their concerns are that restricted information may be copied out to these removable media and taken out of the office.
Well, in Windows XP SP2, I have implemented USB restrictions to prevent users from plugging in their removable USB media and also disallow them from burning into writeable CDs and this was done long time ago and recently because of this I have to go back and dig out this piece of information.
Hope this saves you some time having to ask Mr. Google.
1. How to disable USB ports to prevent Removable Storage Devices from connecting
You want to prevent users from connecting their removable medias to the USB ports. This procedure will show you how to disable USB ports to prevent Removable Storage Devices from connecting. E.g. USB Thumb drives, External HDD. But not to worry, it will allow USB Mouse operation.
1. Deny permission on the files usbstor.pnf and usbstor.inf, located at %systemroot%\inf (Note that this folder is hidden, you will need to "Show all hidden files" in File Explorer)
* Remove all users from the permission lists and add "System" to "Deny All"
2. Set the Start value to hexadecimal 4 in the Registry at:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor
2. Disabling CD-ROM & Floppy Drives
2.1 How to disable CD-ROM
Set the Start value to hexadecimal 4 in the Registry at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom
This will also disable user from connecting an external USB CD/DVD-Writer to the system.
2.2 Remove CD Burning Features
Use GPO settings to remove CD burning feature:
Local Computer Policy\User Configuration\Administrative Templates\Windows Components\Windows Explorer\Remove CD Burning features
* Windows Explorer allows you to create and modify re-writable CDs if you have a CD writer connected to your PC.
* If you enable this setting, all features in the Windows Explorer that allow you to use your CD writer are removed.
* If you disable or do not configure this setting, users are able to use the Windows Explorer CD burning features.
- Note: This setting does not prevent users from using third-party applications to create or modify CDs using a CD writer.
2.3 How to disable Floppy Drive
Set the Start value to hexadecimal 4 in the Registry at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Flpydisk
3. Prevent Writing to USB Storage Devices
If you still want to allow your users to connect their USB media but prevent them from writing, this is what you will have to do.
Prevent Writing to USB Storage Devices via registry setting. Only works for Win XP SP2.
1. Start the Registry Editor
2. Go to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control key
3. If there is no key called StorageDevicePolicies, create it. You do this by right-clicking the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control key, and selecting New > Key from the menu.
4. Select the StorageDevicePolicies key
5. From the menu select Edit > New > DWORD Value
6. Name the new value WriteProtect
7. Right-click the WriteProtect value and choose Modify
8. In the Value Data: box enter 1
9. Exit the registry editor, and restart your computer