Powershell Script

Job ID: 35356212

Budget: ₹600 – ₹1,500 INR

1.Script for windows 2012 server for an application services
2.I want the service to
a if the service in the service manager is stopped status it should start immediately
b If its in running status stop it and then restart after 30 seconds

3 .Issue - When we are trying to stop the service it goes into hung state - StopPending State and when trying to kill the script from script it is not doing.

4.We also want the logs for all actions.