How To Safely Eject Your USB Devices From the Desktop Context Menu

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 1

If you are one of those people who don’t safely remove their USB Devices just because you’re lazy, here’s a neat trick to do it from the context menu on your desktop. Even if you are not lazy and just forget, the icon will serve as a mental reminder. So let’s take a look.

The Safely Remove Hardware Dialog Method

This method will bring up the Safely Remove Hardware dialog box, from there you can choose which USB device you wish to eject. If you are looking to eject a specific USB drive take a look at the next section.

Press Win+R to bring up a run box and type regedit to open the registry.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 2

When the registry is open, navigate to

HKEY_CLASSES_ROOT\DesktopBackground\Shell\

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 3

Right click on the shell key and create a new key called Safely Remove Hardware.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 4

Once the new key is created, create a new string value, and call it Icon.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 5

Double click on the icon string, in the Value data field type the following:

hotplug.dll,-100

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 6

Now right click on the Safely Remove Hardware key that you just created and create another key,  this time name the key command.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 7

Once the new key has been created select it to open see the keys values.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 8

This key will have a value called Default, double click on it to edit it, in the Value data field type

C:\\Windows\\System32\\control.exe hotplug.dll

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 9

That’s all there is to it if you want the Safely Remove Hardware dialog to appear.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 10

 

Ejecting a Specific USB Drive

If you are looking to eject a drive with a specific name or drive letter then this method is better suited for you.

Head over to the developers website and grab a copy of the latest version of  USB Disk Ejector.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 11

Extract the file somewhere (for illustration we’ll extract to the root of the C:\ drive), then right click on the file, select properties, and click the unblock button in the bottom right hand corner of the dialog.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 12

Press Win+R to bring up a run box and type regedit to open the registry.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 13

When the registry is open navigate to:

HKEY_CLASSES_ROOT\DesktopBackground\Shell\

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 14

Right click on the shell key and create a new key called Safely Remove USB.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 15

Once the new key is created create a new string value, and call it Icon.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 16

Double click on the icon string and in the Value data field type the following:

hotplug.dll,-100

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 17

Now right click on the Safely Remove USB key that you just created and create another key,  this time name the key command.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 18

Once the new key has been created select it to open see the keys values.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 19

This key will have a value called Default, double click on it to edit it. Here we have a few options, which ever method below suites you best should be typed into the Value data field.

Note: Remember to replace the name or drive letter in the following example to the name or drive letter of YOUR USB device.

We can either eject a USB with a certain name by typing.

C:\usb_disk_eject /removename “Memorex USB”

We could also eject a USB with a certain driver letter, in my case drive G.

C:\usb_disk_eject /removeletter G

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 20

That’s all there is to it.

how-to-safely-eject-your-usb-devices-from-the-desktop-context-menu photo 21

If you rather prefer to be a keyboard ninja you could always assign a hotkey or create a shortcut to do the same thing.

Article How To Safely Eject Your USB Devices From the Desktop Context Menu compiled by Original article here

More stories

What Are These desktop.ini Files I Keep Seeing?

Have you ever seen those weird desktop.ini files that seem to pop-up everywhere? The truth is that they do serve a purpose and Windows uses them to identify how a folder should be displayed, much like the .DS_Store files used in OS X.

The Best How-To Geek Articles for October 2011

October has been full of geeky goodness here at HTG where we covered topics such as anonymizing and encrypting your BitTorrent traffic, installing Android on your HP Touchpad, reinstalling Windows without having to reactivate it, and more. Join us as we look back at the most popular articles from