Power Off USB Port when Safely Removed USB Device in Windows 7

I got to know about spinning down drives after stopping in Vista & Windows 7 while I was reviewing the changelog for USB Safely Remove 4.4. Basically what USB Safely Remove explained in their blog about this is when you eject a device, for instance a USB flash drive in Windows XP, the LED will be switched off. However in Windows Vista and Windows 7, the LED light is still turned on even after ejecting them from Safely Remove Hardware. It won’t be a problem if it is a USB flash drive because it doesn’t have any moving parts but it could be worrying when it comes to an external mechanical hard drive that requires the heads to park to avoid damaging the hard drive which will lead to data losses.

Starting from USB Safely Remove 4.4, it comes with a feature to power off device after device stopping by just enabling it in the Options. For people that managed to grab a free license of the USB Safely Remove 4.7 which I’ve posted it yesterday, I bet you would have enabled this option during the first run of the software for safety precaution. However for people that missed the giveaway, or would want to use this option WITHOUT installing USB Safely Remove software, here is how you can manually enable this safety feature. The powering off USB port when safely removed USB device feature in Windows Vista or Windows 7 does not rely on USB Safely Remove as it can be enabled from a registry value. I got to know about this by turning the option on then off while tracking the registry and file changes. In fact this is even documented in Microsoft Knowledge Base (KB) article ID 2401954.

Here are the steps to enable powering off USB port after it has been safely removed.

1. Click Start, click Run, type regedit in the Open box, and then click OK.

2. Locate and then click the following subkey in the registry:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbhub

3. On the Edit menu, point to New, and then click Key.

4. Type HubG for the name of the new key, and then press ENTER.

5. On the Edit menu, point to New, and then click DWORD (32-bit) Value.

6. Type DisableOnSoftRemove for the name of the DWORD Value, and then press ENTER.

7. Right-click DisableOnSoftRemove, and then click Modify.

8. In the Value data box, type 1, and then click OK.

9. Exit Registry Editor and restart your computer for the change to take effect.

DisableOnSoftRemove

If the 9 steps above are too confusing, you can just download this registry file and run it which will automatically merge it into your Windows registry.

Although this is documented in Microsoft KB but it is stated as “FAST PUBLISH” article. I enabled the DisableOnSoftRemove value on my test computer and rebooted it. Then I tried connecting an external Maxtor hard drive, disabled it through Windows 7 Safely Remove Hardware but the LED light is still lit up which is supposed to be turned off according to the USB Safely Remove software blog…

To test this further, I’ve installed a USB packet sniffer software called HHD Software Device Monitoring Studio 6.22 and it didn’t find any packets being sent/received to the external Maxtor hard drive after ejecting the external hard drive from Safely Remove Hardware. No matter what, I will have this option enabled on my Windows 7 system just to be on the safe side.

You might also like:

26 Comments - Write a Comment

  1. Masiha 2 years ago
  2. netflatron 4 years ago
  3. Wachimiro Tocatan Tiro 5 years ago
  4. Eduardo 5 years ago
  5. hardy 5 years ago
  6. buntydee 5 years ago
  7. nevada 5 years ago
  8. rahul 5 years ago
  9. Firas 5 years ago
  10. Merlin_Magii 5 years ago
  11. samer 5 years ago
  12. alinek 5 years ago
  13. usb 5 years ago
  14. Alan Solomon 5 years ago
  15. vhick 5 years ago
  16. Mark 5 years ago
  17. BossRJ 5 years ago
  18. minnetonka 5 years ago
  19. Anonymous 5 years ago
  20. ROJAK 5 years ago
  21. Kroko 5 years ago
  22. billy13 5 years ago
  23. stanly7 5 years ago
  24. tridentcore 5 years ago
  25. jasa desain arsitek 5 years ago
  26. ding-dong 5 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: Your comment is subject to approval. Read our Terms of Use. If you are seeking additional information on this article, please ask in our forum or contact us directly.