How to remove (not hide) the "Safely Remove Hardware" icon

2

I want to remove the "Safely Remove Hardware" icon from the system tray, do I need to change the registry? Also how can I remove some devices in the "Safely Remove Hardware" list?

I do not want to use this tool, and I want to remove it from my system tray

cyclamen

Posted 2012-08-07T07:53:52.237

Reputation: 31

Why do you have another way to safely remove hardware? – squareborg – 2012-08-07T08:04:10.120

2I would strongly advise you dismount all of your drives properly when removing them. This request sounds dangerous – VBwhatnow – 2012-08-07T08:07:20.863

2Sometimes CD Drives (certianly on some Dell Laptops) show up on the safely remove hardware list. This can clutter up the notification area and can just be annoying. Might not be a dangerous request. Also if its a removable HDD you can just right click the drive and click eject to safely remove it. – Joe Taylor – 2012-08-07T09:00:08.940

What version of Windows are you using please? – Joe Taylor – 2012-08-07T09:46:32.700

I use windows xp with sp3 – cyclamen – 2012-08-07T11:09:06.503

Another example: I have a small flash-drive permanently plugged into the back of my computer so that I can boot DOS from it when I want, and obviously rarely, if ever need to eject it. I have even configured it for performance instead of fast removal, and it still shows up in the list and creates the icon even if there are no other removable drives plugged in. – Synetech – 2012-08-07T20:45:31.100

I'm sure this is possible with some system policy setting. I am looking at the opposite problem: a regular user on a Windows Server does not have this icon on systray and I want it to be there. – David Balažic – 2013-08-10T19:54:50.273

Answers

0

For the second part of your answer you should have a look at this SuperUser question

The first part of your question is very doable, if you just let me know the version of Windows you are using I will post the steps.

Also have a look at this article: http://fightingforalostcause.net/blog/?p=1044 Main points detailed below:

The driver for the device has a flag telling Windows that it is a 'removable' device, which gets loaded into the registry whenever the device is loaded. So, you basically just need to setup a way to automatically overwrite the registry value when the system boots.

First you'll need to get the ID of the device you want to remove. •Open Device Manager (Start > Run > devmgmt.msc) •Right-click on the device and go to Properties, then open the Details tab •The 'Device Instance Id' item will be selected by default in the drop-down list •It will look something like 'IDE\CDROMPBDS_DVD+RW_DS8W1P[...]\DB1B[...]\5&C10F4F&0&0.0.0 •Keep that window open, or write down the ID because you'll need it in the next step

The next step is to modify the removable value in the registry. •Open the registry editor (Start > Run > regedit) •Drill down to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum •Then use the sections of the ID to locate the device (e.g., IDE, then CDROMPBDS_DVD+RW_DS8W1P[...]\DB1B[...] then 5&C10F4F&0&0.0.0 •By default you probably won't have permssion to modify the value, so right click on the key (folder) and go to Permissions and give your account 'Full Control' •Inside that key will be a value named 'Capabilities', which will have a value of 4 or 6 or some higher number •Right click on the value and select 'Modify,' then subtract 4 from the value (e.g., change 6 to 2, 4 to 0, etc) and click 'Ok' At this point the device isn't recognized as removable. It might take windows a moment to update the Safely Remove Hardware app, or you might have to open it up to refresh it, but the device is updated. The icon may stick around, but after the next step that will be taken care of.

The last step is to make sure that the value is automatically updated every time Windows boots (because the value is loaded from the device driver every time, so we have to overwrite it every time). •Go to File > Export and save the key to somewhere on your computer • Open it with a text editor and get rid of all the extra subkeys and values that we don't want to change. In the end it should look something like this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE\CdRomPBDS_DVD+-RW_DS-8W1P____________________BD1B____\5&c10f4f&0&0.0.0] "Capabilities"=dword:00000002

•Back in the registry editor, browse to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run •Right click > New > String value •Give it a name then Right click and Modify •Enter regedit /s "C:\Documents and Settings\user\My Documents\DVD Not Removable.reg" (Update the path for where you saved the file and what you named it)

Now that .reg file containing the updated value will be loaded every time you log on to your account and (assuming it was the only removable device) the Safely Remove Hardware icon won't show up anymore.

Update: Check comment #28 if you're running Windows 7 * Comment 28 loops back to the SuperUser question I linked you through to.

To hide that icon in Windows XP simply use the "Hide inactive icons" feature, setting it to "Always hide"

Right-click Taskbar > Properties > Check "Hide inactive icons" > Customize

This would require setting your other icons to an appropriate setting though eg "Always show"

Joe Taylor

Posted 2012-08-07T07:53:52.237

Reputation: 11 533

It clearly asks to remove it not hide it. However the icon should not be created at all if there are no removable drives, so configuring any removable drives to appear as non-removable, that should accomplish the goal of removing the icon. – Synetech – 2012-08-07T20:48:38.553

0

In Windows XP, you don't need to uninstall stobject.dll to get rid of the noisome "Safely Remove Hardware" icon in the notification area, just unregister it. Click RUN in the start menu, then enter [regsvr32 "c:\windows\system32\stobject.dll" /u] You need the quotes so windows can find the file. Reboot and it will be gone.

user572216

Posted 2012-08-07T07:53:52.237

Reputation: 1

-2

It's much easier to use the program Perfect Uninstaller to accomplish this task.

http://www.perfectuninstaller.com/

Open explorer and navigate to C:\Windows\System32\

Right click on stobject.dll

Click Force Uninstall

Let Perfect Uninstaller do it's thing.

Reboot, icon gone.

Tony Knerr

Posted 2012-08-07T07:53:52.237

Reputation: 1

2

Bad habit to delete critical dll files from System32. Even worse with some unknown uninstaller application. Their site is ranked very poorly at WOT.

– matan129 – 2014-02-15T17:31:46.393

I've been using Perfect Uninstaller for years with no problems, it's great at removing all traces of previously installed software, removes all files and registry entries. 'unknown'?, hardly, I know it very well. stobject.dll is not a 'critical' dll file, either. – Tony Knerr – 2014-02-15T19:51:24.093