How do I run a batch file async using PSExec?

Posted by Paul Mrozowski on Server Fault See other posts from Server Fault or by Paul Mrozowski
Published on 2009-07-17T17:58:10Z Indexed on 2010/04/23 2:24 UTC
Read the original article Hit count: 271

Filed under:

I have a batch file I run that, among other things, reset's the NICs in the machine. I have some watchdog software running on another machine that monitors the first one. I'd like to run this batch file using PSExec when it detects certain types of failures. The problem I'm having is that since the batch file reset's the NIC's it kills the connection PSExec has (I'm OK with that). The real issue is that when PSExec dies the batch file stops running (leaving the NIC's disabled).

I've tried using the -i option with PSExec with no luck. Any ideas about basically just fire off the batch file and NOT have it stop when PSExec is disconnected?

© Server Fault or respective owner

Related posts about psexec