How to Disable Eject Hardware

Page 2 of 2 FirstFirst 12

  1. Posts : 16,645
    Windows 11 Pro X64
       #11

    pietcorus2 said:
    Have done a lot of study on this project ...............the only nice/good working solution is the one I mentioned in previous post !
    My AIO doesn't have a USB controller, or I would try it. Hope it solves the OPs issue
      My Computers


  2. Posts : 70
    Windows 10 Pro
    Thread Starter
       #12

    Edwin said:
    What about removing the drive letter in Disk Management; or would that disable the functionality?
    Again NOT a drive so there is no drive letter. It is a device.
      My Computer


  3. Posts : 70
    Windows 10 Pro
    Thread Starter
       #13

    Okay I have managed to find an answer that appears to work. I followed the instructions below and as soon as I changed the registery entry the device vanished from the Safely Remove Hardware. Not aure it is permanent but if not it is just a one line registry entry I could do at startup each time. Will test this and see what it does after a reboot.

    NOTE: Provided as is. Registry editing can be dangerous. Please don't do it if you don't know how. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\ Find your device's hardware ID. You can do it through device manager, by checking Properties and then Details tab. Open that key. You should find another subkey made up of hexadecimal numbers. Open that. Find key called Capabilities. Note the current value. Subtract 4 from it (disable CM_DEVCAP_REMOVABLE) and then add 128 (80 hex) (enable CM_DEVCAP_SURPRISEREMOVALOK) Source: Real Simple Computer Question — Penny Arcade This will remove the device from the "Remove Hardware..." list but won't remove the icon from systray.
      My Computer


  4. Posts : 70
    Windows 10 Pro
    Thread Starter
       #14

    pietcorus2 said:
    Its possible indeed !
    Im using a task which is executed after every reboot , does not show my internal HDDs ( 3 ) and my SSD ( OS) .
    It only shows my external HDDs and sticky/cards , etc. Works awsome , I found it crazy when it shows your internal HDDs/SSDs for " safely removing" , who wants to remove his internal HDDs ??!
    Did this but used the value calculated a different way.
      My Computer


  5. Posts : 43,022
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #15

    Glad you found a way round what is presumably an oversight by the manufacturer. I came across another couple of reports of it or a similar device listed by Safely Remove - with no resolution. E.g.
    H115i Pro RGB thinks it is a H115i Platinum!? - The Corsair User Forums
    Corsair Hydro H115i Pro - Air Cooling - Linus Tech Tips

    Suggest you make sure you have an easy way of reproducing this fix, as you may well find the problem recurs on each 6 monthly feature update.
      My Computers


  6. Posts : 70
    Windows 10 Pro
    Thread Starter
       #16

    Okay on reboot the flag is changed back so will need to add a registry entry on reboot each time. Should be easy with Task Scheduler
      My Computer


  7. Posts : 1
    Win10
       #17

    Hello all, I encountered the same issue and found a solution which was not mentioned before:

    Go to your BIOS / UEFI . In advanced options there can be an entry to turn SATA Hot Plug on or off for each SATA port.

    For me it is desired to only remove the drive after the machine has been turned off, so it makes sense to turn this option off (disable) for the port where the drive is attached.
    Note that not all motherboard manufacturers may have this featured available.

    Thus, the safely eject option disappeared in Windows 10 while write caching is still enabled.
    This has solved the problem nicely for me.
      My Computer


  8. Posts : 1
    Windows 10
       #18

    pietcorus2 said:
    Its possible indeed !
    Im using a task which is executed after every reboot , does not show my internal HDDs ( 3 ) and my SSD ( OS) .
    It only shows my external HDDs and sticky/cards , etc. Works awsome , I found it crazy when it shows your internal HDDs/SSDs for " safely removing" , who wants to remove his internal HDDs ??!
    You have to make a reg-file , in which you point to the hardware , you dont want to see in " safely remove " , they are in " [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ "
    Look here in my solution for three internal HDDs and the OS-SSD , replace them with your own hardware !!

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SCSI\Disk&Ven_Samsung&Prod_SSD_850_PRO_256G\4&268c5 95a&2&000000]
    "Capabilities"=dword:00000060
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SCSI\Disk&Ven_WDC&Prod_WD1003FZEX-00MK2\4&268c595a&2&030000]
    "Capabilities"=dword:00000060
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SCSI\Disk&Ven_WDC&Prod_WD20EFRX-68EUZN0\4&268c595a&2&010000]
    "Capabilities"=dword:00000060
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SCSI\Disk&Ven_WDC&Prod_WD20EFRX-68EUZN0\4&268c595a&2&020000]
    "Capabilities"=dword:00000060


    Make a regfile with it and run as a task , every reboot , done .............
    Thank you so much I was looking for this to disable devices from being accidentally removed. Your solution is the best I have found. I am using windows in a qemu virtual machine and it shows needed devices in the eject-able area this solution hides that. The hardest part was creating the task but that wasn't so bad.
      My Computer


  9. Posts : 1,961
    Windows 10 Pro x64
       #19

    " I was looking for this to disable devices from being accidentally removed "..............yes, still using this task with every upgrade in Win10 !
    Its a real keeper..........
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:15.
Find Us




Windows 10 Forums