I am running the following cmd on my MSBuild using PsEXEC.
%systemroot%\system32\inetsrv\appcmd stop apppool /apppool.name:MyAppPool
If the MyAppPool
is already stopped, and try to stop again, I am getting error message.
ERROR ( message:Application pool "MyAppPool" already stopped.
This is stopping my build. How to handle this situation?
If MyAppPool is already started and issue a start again, no error message appears.
Just add "| exit 0"
%systemroot%\system32\inetsrv\appcmd stop apppool /apppool.name:MyAppPool | exit 0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With