Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Disable USB memory devices in Windows 2000 and Windows XP

created by gordonf

(idea) by gordonf (2.9 mon) (print)   ?   (I like it!) Sun May 01 2005 at 19:11:30

This is for the security-consious network administrator who needs to keep tight controls over how data is stored on a Windows network. The reasons for wanting to do this include:

The idea isn't to prevent data transfer entirely. Instead, the idea is to prevent unaudited data transfer. You can audit e-mail, audit other network access such as FTP, and so on using additional methods.

The idea came from a poster to the newsgroup microsoft.public.security, whose name eludes me for the moment.

  1. Ensure your system drive uses the NTFS file system. You can convert a FAT or FAT32 disk to NTFS with convert %systemdrive% /fs:ntfs at a command prompt.
  2. Open a command prompt and type cd %systemroot%\inf
  3. Use cacls.exe to change the permissions of usbstor.inf and usbstor.pnf which works for Windows 2000, Windows XP Home Edition and Windows XP Professional:

    cacls usbstor.inf /p SYSTEM:N
    cacls usbstor.pnf /p SYSTEM:N

The /p parameter tells cacls.exe to replace the current permissions on these files, so it effectively removes all access. SYSTEM is used here but any valid username or group name could be used, because we're specifying no access (N = None).

This effectively disables installing the device drivers for USB mass storage devices, because Windows does not know where to find the drivers for them. Devices connected to the computer before executing these commands may still work, and you can remove them by connecting the device, going to Device Manager, and uninstalling the device driver for it. Other USB devices (cameras that aren't mass storage devices, mice, scanners, printers, etc) will still work.

While this disables the devices in Windows, you should still prevent starting the computer from a USB storage device using your system's BIOS settings and password-protecting the BIOS settings. Some motherboards offer chassis intrusion protection as well, to prevent people from resetting the BIOS memory and possibly erasing the BIOS password.

If you want to disable USB storage devices, you should also physically remove floppy and CD-ROM drives from the computer. Chances are, you're using some kind of imaging software and sysprep to deploy Windows, so you won't need them. Also, create passwords for all of your Administrator accounts and lock them away. Use Limited User accounts for your regular work.

To re-enable USB storage devices, you will need to restore the original permissions. From Windows 2000, or Windows XP (Home and Pro) in Safe Mode:

  1. Click Start and then Run... and type %systemroot%\inf
  2. Look for usbstor.inf, right-click on it and click Properties.
  3. Click the Security tab, remove "SYSTEM" from the list.
  4. Click "Advanced..." and turn on "Allow inheritable permissions..." Click OK to save the change and OK again to close the Properties window.
  5. Repeat for usbstor.pnf.

If you prefer to use a GUI to disable USB storage devices, you can use the method above (only works in Safe Mode on XP Home Edition) to remove the permissions instead of grant them. A command line was used earlier to avoid needing Safe Mode to make the change.


printable version
chaos

HIPAA Boot linux with a usb memory stick Designed for Windows XP Hippa
Sysprep The Recruit paranoid Limited User
127.0.0.1 bootable USB key Windows 2000 Windows XP
Bios password NTFS Group Policy Management Console usb bootloader
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Look at this mess the Death Borg made!
every partial order can be extended to a total order
Stanford Prison experiment
I like monkeys
Lews Therin Telamon
Let's remove some sports from the Olympics
Drew Barrymore
Unemployment compensation
Pyrrhonism
Dragon curve
bow
Are you in the light or in the dark?
Ivan the Terrible
Dropped down, pulled out
New Writeups
Meezzio
Gotlandssnus(thing)
argv
Astral Plane(idea)
Madara
One Winged Angel(fiction)
Tom Rook
Talk is cheap(poetry)
shaogo
Adelle Davis(person)
Aerobe
race car g sfjsgsd(poetry)
Binah
Dream Log: July 5, 2008(dream)
StrawberryFrog
Forgotten things in space(idea)
antigravpussy
velvet revolution fairy tale(idea)
Heitah
Nerve agent VX(thing)
Pavlovna
shite(idea)
wonton
Days and nights come together in a slow falling down(fiction)
Pavlovna
wee(idea)
katherine
root log: July 2008(log)
Madara
There’s nothing like a trail of blood to find your way back home(fiction)
This page courtesy of The Everything Development Company