Remove USB device from command line
Posted
by
Luke
on Super User
See other posts from Super User
or by Luke
Published on 2012-06-29T20:01:16Z
Indexed on
2012/06/29
21:19 UTC
Read the original article
Hit count: 242
I'm constructing a backup script for Windows 7, and the last action I want it to perform is to safely "remove" the USB drive that it is backing up to. I am under the impression that plugging the drive into the SAME USB port all the time will keep the same DEV_ID, correct me if I'm wrong. With a Command Line (or PowerShell), how can I tell Windows to safely remove the hardware automatically without user input?
Just as a place holder, other OSes that may have a way to do this would be great to know as well
© Super User or respective owner