Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

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

Your Answer

 
discard

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.