Link to home
Start Free TrialLog in
Avatar of pcservne
pcservneFlag for United States of America

asked on

Disable USB drives in Windows 7

For Windows XP I had a simple registry code in the login script that would disable/enable USB drives for users or computers.  I'm trying to find a way to do the same thing for Windows 7 - use the login script instead of GPO so I have more granular control.  Any ideas?
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

This page says that the registry code should still work:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor

Open in new window

Set Start to 4.

HTH,
Dan
Avatar of pcservne

ASKER

That's what I have now.  It only works for Windows XP, not Windows 7.
Same commands as the previous post.  I don't know why they claim it works on Win7/8, but it does NOT.
hi,

check your GPO setting i think your GOP not working in win 7 PC. and please RUN rsop.msc in win 7 system and check rules are apply or not.
ASKER CERTIFIED SOLUTION
Avatar of Aditya Arora
Aditya Arora
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
OK - but I've got 250 machines and can't do it manually.  Plus some users need access to USB drives regardless which PC they sign onto.  That's why my command of turning the UsbStor service to 3 or 4 in the login script worked perfectly.  Except what several articles say, it doesn't work in Windows 7.  Disabling USBSTOR.INF & USBSTOR.PNF seem like the answer, but I need a way to do it in the login script, not GPO.