Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 15
    Won't I still need to click something then? Commented Oct 12, 2012 at 14:54
  • @Luke I just tried that, it brings up the Safely Remove Hardware dialog. So yes, you would still need to select the device, click Stop button, and then Close to close the dialog box. Note that the command is case sensitive, so you have to type it exactly like it says or you will get an error from RunDLL. Commented May 25, 2013 at 17:43
  • 4
    This is pretty cool, but unfortunately for automation purposes, it is no better than any of Karan’s suggestions. Commented Dec 5, 2013 at 3:28
  • 1
    control hotplug.dll, i.e., without _RunDLL doesn't work for me on Vista SP2 Commented Jun 25, 2015 at 20:57
  • 1
    While I'm delighted to not go 3rd party, and your description w/ images is excellent, it's failing. Win10 recognizes "Kingston DataTraveler 3.0 USB device" but upon clicking stop and OK, "The 'Kingston DataTraveler 3.0 USB device' is not removable and cannot be ejected or unplugged." Win7 sees "Generic- Compact Flash" but it reports success after Stop and OK. Yet when I immediately reissue command on W7 without touching the drive, this time it oddly now recognizes "Kingston DataTraveler 3.0 USB device", but upon Stop and OK, " [...] device is not removable and cannot be ejected or unplugged." Commented May 17, 2019 at 1:04