Continually start service with powershell?

I have one of our in house WIndows services that fails to start for some unknown reason.   I need to attach a remote debugger to it to step through and see what is wrong.  Unfortunately, the service fails during startup almost instantly so not enough time to connect remote debugger.  Using PS4, is there a good way to continually try to start a Windows service until it successfully starts?  This might give me enough time to attach a remote debugger.

thanks

scott

February 21st, 2015 2:08am

If the service won't stay running long enough to attach a debugger then you are out of luck.

Many services do not stay running. They start and stop almost immediately. That is how they are designed.

For help with debugging post in the developers forum.

Free Windows Admin Tool Kit Click here and download it now
February 21st, 2015 2:27am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics