Hide devices from appearing in Safely Remove Hardware list.
For example, you don't have to see this anymore:
By using the provided scripts, you are fully responsible for any harm or damage caused by them.
An AutoFix script is implemented for simpler use.
- Clone the repository and unzip it.
- Run
Launch AutoFix.cmd
- Follow the instruction.
- Done.
If you prefer a different method, see specifics below.
NAME
Hide-Eject
SYNTAX
Hide-Eject -InputObject <CimInstance#Win32_PnPEntity[]> [-Permanent] [-Rollback] [<CommonParameters>]
ALIASES
None
- TenForums: How to Disable Eject Hardware
- Dell: Safely Remove Hardware icon never goes away
- TenForums: SATA HDD & SSD shown as removable
- Microsoft Support: Internal SATA Drives show up as removeable media
- superuser: Internal hard drives showing as removable in Windows 10
- DEVPKEY_Device_SafeRemovalRequired
- Gracefully restarting explorer.exe
- Restore previous explorer.exe session after restarting it