Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: USB Storage Device - Enable or Disable Connecting


USB Storage Device - Enable or Disable Connecting

How to Enable or Disable USB Storage Devices in Windows
Published by Brink
18 Aug 2011
Published by

How to Enable or Disable USB Storage Devices in Windows

information   Information
This tutorial will show you how enable or disable USB storage devices for all users in XP, Vista, Windows 7, and Windows 8.

You must be logged in as an administrator to be able to do the steps in this tutorial.

Note   Note
When disabled (prevented), Windows will no longer allow read and write access to all USB storage devices connected afterwards for all users.

Any USB storage device still connected when set to be disabled will still have read and write access until either the USB storage device is disconnected or you log off, restart, or shut down the computer.

This only affects USB storage devices like a USB flash drive or an external USB hard drive. It does not affect wireless keyboard/mouse USB adapters, wireless USB modems, etc.....






USB Storage Device - Enable or Disable Connecting OPTION ONE USB Storage Device - Enable or Disable Connecting
To Enable or Disable USB Storage Devices using a REG File Download
1. To Disable USB Storage Devices in Windows
A) If you have not ever already done so, you must connect a USB storage device (ex: USB flash drive) to the computer now, and wait until Windows installs it and displays it in the Computer window with an assigned drive letter, then disconnect it.
NOTE: This only needs to be done once with any USB storage device.
USB Storage Device - Enable or Disable Connecting-autoplay.jpg

USB Storage Device - Enable or Disable Connecting-computer.jpg

B) Click/tap on the Download button below to download the file below, and go to step 3 below.
Disable_USB_Storage_Devices.reg
download
2. To Enable USB Storage Devices in Windows
NOTE: This is the default setting.
A) Click/tap on the Download button below to download the file below, and go to step 3 below.
Enable_USB_Storage_Devices.reg
download
3. Save the .reg file to your Desktop.

4. Double click/tap on the downloaded .reg file to merge it.

5. If prompted, click/tap on Run, Continue (UAC-Vista) or Yes (UAC-Windows 7/8), Yes, and then OK.

6. When finished, you can delete the downloaded .reg file if you like.



USB Storage Device - Enable or Disable Connecting OPTION TWO USB Storage Device - Enable or Disable Connecting
To Enable or Disable USB Storage Devices Manually in Registry Edititor
1. If you have not ever already done so, you must connect a USB storage device (ex: USB flash drive) to the computer now, and wait until Windows installs it and displays it in the Computer window with an assigned drive letter, then disconnect it.
NOTE: This only needs to be done once with any USB storage device.
USB Storage Device - Enable or Disable Connecting-autoplay.jpg

USB Storage Device - Enable or Disable Connecting-computer.jpg

2. Press the Windows + R keys to open the Run dialog, type regedit, and press Enter.

3. If prompted by UAC, then click/tap on Continue (Vista) or Yes (Windows 7/8).

4. In regedit, navigate to the location below. (see screenshot below)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\USBSTOR

USB Storage Device - Enable or Disable Connecting-reg-1.jpg
5. To Enable USB Storage Devices in Windows
NOTE: This is the default setting.
A) In the right pane of USBSTOR, double click/tap on Start to modify it. (see screenshot below step 4)

B) Type in 3, click/tap on OK, and go to step 7 below. (see screenshot below)
USB Storage Device - Enable or Disable Connecting-reg-2.jpg
6. To Disable USB Storage Devices in Windows
A) In the right pane of USBSTOR, double click/tap on Start to modify it. (see screenshot below step 4)

B) Type in 4, click/tap on OK, and go to step 7 below. (see screenshot below step 5B)
7. Close regedit.

That's it,
Shawn





09 Feb 2013   #1
Shehzad

Windows 7 Professional x64
 
 
Thank you , i really worked.

Thank you very much. It really worked and helped.


My System SpecsSystem Spec
09 Feb 2013   #2
Brink
Microsoft MVP

64-bit Windows 10 build 10122
 
 

You're most welcome Shehzad, and welcome to Seven Forums.
My System SpecsSystem Spec
18 Jun 2013   #3
gelapir

windows nome premium x86
 
 

My PC not recognizes any pendrives, ,,Type in 3, click/tap on OK'' it is done but same. when i connect pendrives pops up error massege.
My System SpecsSystem Spec
.


18 Jun 2013   #4
Dinesh

Windows® 8 Pro (64-bit)
 
 

I tried this on my work PC but it returned an error. May be due to access rights set on the domain.
My System SpecsSystem Spec
18 Jun 2013   #5
Brink
Microsoft MVP

64-bit Windows 10 build 10122
 
 

Hello Dinesh,

What error are you getting?

Were you not allowed to do it manually with OPTION TWO?

If not, then yeah they most likely blocked access to Registry Editor, or already set a policy for this.
My System SpecsSystem Spec
18 Jun 2013   #6
Dinesh

Windows® 8 Pro (64-bit)
 
 

Hey Shawn, yes I tried option 2 only.
Since all the workstations are managed over the network, it is most probably due to the IT rights set for users.
My System SpecsSystem Spec
18 Jun 2013   #7
Brink
Microsoft MVP

64-bit Windows 10 build 10122
 
 

That would be my guess as well.
My System SpecsSystem Spec
11 Apr 2014   #8
adwedar

Windows 7 32bit
 
 

Hi All,
I want to allow USB Modem and Block Flash Memory at the same time for security Reasons
All users in my company using Windows 7 32 bit
Thanks
My System SpecsSystem Spec
11 Apr 2014   #9
Brink
Microsoft MVP

64-bit Windows 10 build 10122
 
 

Hello Adwedar, and welcome to Seven Forums.

No worries. This only affects USB storage devices like a USB flash drive or an external USB hard drive. It does not affect wireless keyboard/mouse USB adapters, wireless USB modems, etc.....

You should be able to enable this policy to block USB storage devices, and still have your USB modem work.
My System SpecsSystem Spec
Comment

 USB Storage Device - Enable or Disable Connecting




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
shortcut to enable or disable device in device manager
hi i would like to know i would like to enable or disable a device from device manager without opening device manger is there maybe a script or a shortcut
Hardware & Devices
"You do not have permission to enable or disable device wake"
hi, I've problems my laptop not being able to awake from sleep by the keyboard. I've tried to add keyboard to list devices can wake the system ("klawiatura" means keyboard). OS Win 8, 64-bit. I am the only user and have full administrator access. there isn't power management tab in keyboard...
Performance & Maintenance
DOM Storage "Cookies" - Enable or Disable
How to Enable or Disable DOM Storage "Cookies" in Internet Explorer and Firefox DOM Storage is often compared to HTTP cookies. Like cookies, Web developers can store per-session or domain-specific data as name/value pairs on the client using DOM Storage. However, unlike cookies, DOM Storage...
Tutorials
"You don't have permission to enable or disable device wake."
This sleep problem is driving me crazy. I've had problems in the past with my laptop not being able to go to sleep or awake from sleep, but I've always been able to figure it out by updating drivers or changing the settings in device manager, but this time nothing is working. I've referenced...
Performance & Maintenance
Shortcut to enable & disable device
Hi, is there a possibility to create shortcut (hotkey or another fast method) to disable and enable device (like in device manager)? If not for all device, is it possible for built-in cam and/or microphone? (preferred not by 3rd party aplications)
Hardware & Devices
Device Manager MMC Snap-in - Enable or Disable
How to Enable or Disable the Device Manager MMC Snap-in This will show you how to enable or disable all users on the computer from being able to open and view the Device Manager MMC snap-in window in Vista, Windows 7, and Windows 8. You will need to be logged in as an administrator to be...
Tutorials

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 04:37.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App