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

link|improve this question
feedback

1 Answer

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

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

Your Answer

 
or
required, but never shown

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