Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to schedule a task to eject a USB modem immediately when the power fail.

I had searched in EventLog and found the EventID for power Failure, put it in the Triggers,but in the Action I didn't know how to put what will eject the modem.

Can anybody please help me on this, I need it urgently, because my system crash on the power failure because of the USB modem. I have a UPS but I have no suitable power cable for the modem ( couldn't find one in my country ).

I run win7 Ultimate

share|improve this question

You can use the Microsoft utility DevCon. Something like this should do:

devcon.exe remove @usb\device\identifier
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.