Safely Remove Hardware and Eject Media) inside Settings > Personalization > Taskbar. If the Windows shell (explorer.exe) has stalled and the icon refuses to load at all, you can still safely dismount any USB flash drive or external hard drive through File Explorer, Disk Management, Settings, or the built-in Windows HotPlug utility (hotplug.dll). The procedures below apply to all editions of Windows 10 and Windows 11.
Prerequisites and How Windows Handles USB Removal
Before changing system settings, verify a few baseline conditions that control whether the eject icon appears:
- An active removable device must be connected: Windows hides the Safely Remove Hardware and Eject Media icon completely when no ejectable USB storage drive, SD card reader, or Thunderbolt peripheral is plugged in. If the icon is gone, confirm that your USB drive is actually detected and accessible in File Explorer.
- Drive removal policy context: Starting with Windows 10 version 1809 and continuing through all versions of Windows 11, Microsoft sets the default storage policy for external drives to Quick removal. Under Quick removal, Windows disables write caching on the disk so you can unplug the drive at any time as long as you are not actively copying, saving, or modifying files on it. However, if you or an application enabled the Better performance policy (which caches write operations in system memory), or if you want explicit confirmation that no background process holds an open file handle before unplugging the drive, you must use the Safely Remove Hardware function.
- Account permissions: Modifying taskbar icon visibility only requires a standard user account. Restarting hardware services, checking Disk Management policies, or running system file repairs requires local administrator privileges.
Restore the Safely Remove Hardware Icon to the System Tray
Because Windows 10 and Windows 11 use different taskbar architectures, follow the steps for your specific operating system to unhide or re-enable the USB eject icon.
On Windows 11
- Look at the far-right side of the taskbar, just to the left of the network, volume, and battery icons. Click the Show hidden icons upward-pointing arrow (
^). - If you see the USB plug icon with a small checkmark inside the overflow flyout box, click and drag that icon directly onto the taskbar next to the other system tray icons to pin it permanently.
- If the icon is not inside the overflow box, right-click an empty area of the taskbar and select Taskbar settings (or press
Win + Iand navigate to Personalization > Taskbar). - Scroll down and click Other system tray icons to expand the list of background tray applications.
- Locate Windows Explorer (which displays the subtitle Safely Remove Hardware and Eject Media with the USB icon when a removable device is connected, or registers when the notification service initializes) and toggle its switch to On.
- If you also want access to the overflow flyout arrow (
^) for other apps, ensure Hidden icon menu at the top of the Other system tray icons section is toggled On.
On Windows 10
- Click the Show hidden icons upward-pointing arrow (
^) on the right side of the taskbar near the system clock. If the USB icon is inside the pop-up panel, drag and drop it onto the main taskbar strip. - If you prefer to configure it through Settings, right-click an empty space on the taskbar and select Taskbar settings (or press
Win + Iand go to Personalization > Taskbar). - Scroll down to the Notification area section and click the link labeled Select which icons appear on the taskbar.
- Verify whether Always show all icons in the notification area at the top of the page is set to On or Off:
- If set to On, every active tray icon—including Safely Remove Hardware—is forced onto the main taskbar without an overflow menu.
- If set to Off, scroll through the individual app list below it, find Windows Explorer (
Safely Remove Hardware and Eject Media), and toggle its switch to On.
Verify That the Tray Icon Is Working
- Plug a known-working USB flash drive or external USB hard drive into an available USB port.
- Wait 3 to 5 seconds for Windows to mount the volume, then look at the system tray in the bottom-right corner of the screen.
- Left-click or right-click the Safely Remove Hardware and Eject Media icon (a small USB connector with a checkmark).
- Confirm that your connected drive appears in the pop-up menu as Eject [Device Name] with its assigned drive letter underneath.
Safe Ways to Eject a USB Drive While the Icon Is Missing
If you need to disconnect a drive right now and the system tray icon refuses to appear, do not pull the cable out if you suspect files are open or write caching is active. Use one of these four built-in Windows methods to flush pending disk writes and dismount the drive safely.
Method 1: Launch the Legacy Safely Remove Hardware Dialog (hotplug.dll)
Even when the taskbar tray icon fails to render, the underlying Windows hardware removal dialog remains intact and can be opened directly from the Run box.
- Press
Win + Ron your keyboard to open the Run dialog. - Type or paste the following exact command and press Enter (or click OK):
rundll32.exe shell32.dll,Control_RunDLL hotplug.dll - The classic Safely Remove Hardware window will open, listing all currently attached hot-pluggable devices under Hardware devices:.
- Click your USB storage device in the list to highlight it, then click the Stop button.
- In the Stop a Hardware device confirmation box that appears, verify that the correct USB device is selected and click OK.
- Wait for the notification or dialog update confirming that the device can now be safely removed from the computer, then click Close.
Tip: If your system tray icon disappears frequently, you can right-click your desktop, select New > Shortcut, pasterundll32.exe shell32.dll,Control_RunDLL hotplug.dllas the item location, click Next, name it Safely Remove Hardware, and click Finish to keep a permanent one-click eject utility on your desktop.
Method 2: Eject the Drive from File Explorer
- Press
Win + Eto open File Explorer and click This PC in the left navigation pane. - Under Devices and drives, locate your USB flash drive or external drive.
- Right-click the drive tile:
- On Windows 11: Click Show more options at the bottom of the context menu (or press
Shift + F10when right-clicking the drive), then click Eject. Look also at the top command bar in File Explorer when the drive is selected; clicking the three-dot See more (...) menu reveals Eject when the drive reports itself as removable media. - On Windows 10: Click Eject directly from the right-click context menu, or click the Drive Tools (Manage) tab on the top ribbon and select Eject.
- On Windows 11: Click Show more options at the bottom of the context menu (or press
- Wait until the drive letter disappears from File Explorer or Windows displays the Safe to Remove Hardware notification before unplugging the drive.
Method 3: Remove the Device via Windows Settings
- Press
Win + Ito open the Settings app. - Navigate to the devices menu for your OS version:
- On Windows 11: Click Bluetooth & devices in the left sidebar, then click Devices. Scroll down to the Other devices section.
- On Windows 10: Click Devices, then select Bluetooth & other devices in the left sidebar. Scroll down to the Other devices section.
- Find the name of your connected USB drive:
- On Windows 11: Click the three-dot menu icon (
...) on the right side of the device entry and select Remove device, then click Yes to confirm. - On Windows 10: Left-click the device entry to reveal its action buttons, click Remove device, and click Yes to confirm.
- On Windows 11: Click the three-dot menu icon (
- Wait a few seconds for the device entry to clear from the list, then unplug the USB drive.
Method 4: Set the Drive Offline in Disk Management (For External Hard Drives and SSDs)
Many large external USB hard drives and NVMe-to-USB SSD enclosures report themselves to Windows as fixed Basic disks rather than Removable media. When that happens, File Explorer often omits the right-click Eject command. Setting the disk Offline in Disk Management flushes all cached writes and cleanly dismounts the file system.
Warning: Only set your external USB drive offline. Never set Disk 0 (or whichever disk contains yourC:Windows boot partition) offline, or your operating system will immediately crash.
- Right-click the Start button (or press
Win + X) and select Disk Management. - In the lower half of the Disk Management window, locate the horizontal row corresponding to your external USB drive (for example, Disk 1 or Disk 2). Verify the drive letter and total capacity so you are certain you have the right disk.
- Right-click the gray disk label box on the far left side of that row (where it says Disk 1 Basic [Size] Online) and select Offline.
- Wait until the status label changes from Online to Offline and the drive letter disappears from the partition box. You can now safely unplug the external drive.
- Rollback when reconnecting: The next time you plug that same external drive into this PC, Windows may remember its Offline state and hide it from File Explorer. To make it appear again, open Disk Management, right-click the gray Disk # box on the left, and select Online.
Troubleshooting When the Eject Icon Still Does Not Appear
If the icon is enabled in Taskbar settings and a USB drive is plugged in, but the icon still fails to show up in the system tray, work through the causes below from simplest to most thorough.
1. Restart Windows Explorer (explorer.exe)
The system tray is hosted by the Windows Explorer shell process. If explorer.exe hangs during startup or after waking from sleep, tray icons often fail to refresh when new USB hardware is inserted.
- Press
Ctrl + Shift + Escto open Task Manager. - If Task Manager opens in compact view on Windows 10, click More details at the bottom.
- On the Processes tab, find Windows Explorer in the list.
- Right-click Windows Explorer and click Restart (or select it and click the Restart task button at the top right in Windows 11).
- Your taskbar and desktop will briefly disappear and reload. Check the system tray or overflow arrow (
^) again.
2. Clear a Stuck Notification Area Icon Cache
If Safely Remove Hardware and Eject Media is missing from the Taskbar settings list altogether or shows a blank icon that will not stay toggled on, the per-user tray icon cache in the Windows Registry may be corrupted. Resetting this cache forces Windows to rebuild the system tray icon list cleanly.
Warning: Editing the registry incorrectly can cause interface issues. The steps below only remove cached user-interface tray icon streams (IconStreamsandPastIconsStream) under your current user profile (HKEY_CURRENT_USER), which Windows automatically regenerates when Explorer restarts. Back up the key first as instructed below so you can roll back if you want to restore your previous icon arrangement.
- Press
Win + R, typeregedit, and press Enter to open Registry Editor. - Paste the following path into the address bar at the top of Registry Editor and press Enter:
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify - Create a rollback backup: Right-click the TrayNotify folder in the left pane, select Export, save the file to your Desktop as
TrayNotify-Backup.reg, and click Save. - With TrayNotify selected in the left pane, look in the right pane for the values named IconStreams and PastIconsStream.
- Right-click IconStreams, select Delete, and click Yes. If PastIconsStream is present, right-click it, select Delete, and click Yes.
- Close Registry Editor, open Task Manager (
Ctrl + Shift + Esc), right-click Windows Explorer, and select Restart immediately so Windows writes fresh icon streams rather than saving the old in-memory state back to the registry. - Rollback: If you want to restore your previous tray layout, double-click the
TrayNotify-Backup.regfile on your Desktop, click Yes at the prompt, and restart Windows Explorer in Task Manager.
3. Check Why a Specific Drive Never Triggers the Icon
Sometimes the system tray icon works with one USB flash drive but never appears when you plug in a different thumb drive or SATA-to-USB drive dock.
- Internal SATA ports configured as non-removable: If you are trying to eject an internal secondary SATA drive and it does not appear in the tray, check your motherboard UEFI/BIOS settings. A SATA drive only appears in the Safely Remove Hardware menu if Hot Plug (or Hot Swap) is enabled for that specific SATA port in UEFI/BIOS.Conversely, if your internal boot drive (
C:) unexpectedly shows up in the Safely Remove Hardware menu, disabling Hot Plug for your internal SATA ports in UEFI/BIOS removes it from the eject list. - Check the drive's removal policy in Device Manager:
- Right-click the Start button and select Device Manager.
- Expand the Disk drives category, right-click your connected USB drive, and select Properties.
- Switch to the Policies tab.
- Verify whether Quick removal (default) or Better performance is selected. If Better performance is selected, ensure Enable write caching on the device is managed properly and that you always use the Safely Remove Hardware dialog (
rundll32.exe shell32.dll,Control_RunDLL hotplug.dll) or switch the drive back to Quick removal (default) and click OK to reduce the risk of data corruption on surprise disconnects.
4. Fix the "This Device Is Currently in Use" Error During Ejection
If you get the tray icon back—or use the hotplug.dll dialog—and Windows refuses to eject the drive with the message Problem Ejecting USB Mass Storage Device: This device is currently in use, an open file handle or background service is locking the drive:
- Close all open File Explorer windows, command prompts, media players, and Office applications that may still have their working directory set to the USB drive.
- Wait 30 seconds for Windows Search Indexing or Microsoft Defender Antivirus background scans on the newly connected drive to finish, then click Eject again.
- If the lock persists and you must unplug the drive immediately, save your work across all apps, click Start > Power > Shut down, wait for the PC power LED to turn completely off, and unplug the USB drive while the system is powered down.