Continually start service with powershell?


i have 1 of our in house windows services fails start unknown reason.   need attach remote debugger step through , see wrong.  unfortunately, service fails during startup instantly not enough time connect remote debugger.  using ps4, there way continually try start windows service until starts?  this might give me enough time attach remote debugger.

thanks

scott

if service won't stay running long enough attach debugger out of luck.

many services not stay running. start , stop immediately. how designed.

for debugging post in developers forum.


¯\_(ツ)_/¯



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS