Windows schedule services restart




















You will be prompted to enter user credentials with administrative rights if "Run with highest privileges" was selected. Now click on Task Scheduler Library folder in the left column, verify the schedule has been created and is listed.

Additional Notes. Knowledge Article Total View Count. URL Name. Article Number. Disclaimers Discontinued Product? Electrical Shock Hazard? Potential Data Loss? Electrostatic Discharge Required? Complex Procedure Required? Maybe these articles can help too? Number of Views 1. Number of Views 8. Good tip Kurt Van den Branden! And NateJ your timeout tip likewise which worked for me on a Win Server. You can also use a single action like powershell -command "Restart-Service Spooler" — Marc8.

The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 6. Related Hot Network Questions.

Question feed. Stack Overflow works best with JavaScript enabled. Note: The -wait parameter instructs ServicePilot to wait up to seconds 5 minutes for the service to stop and restart.

Feel free to increase or decrease the timeout based your specific use case. As you did with the NET version, please perform a quick test to ensure that the updated batch file works as expected. Launch it from an administrative command prompt and confirm that it restarts your service. Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Posted on May 1, I want to restart some specific service for a specific time every week.

Can I use the NET command? You may also like Essential Windows Services: Spooler.



0コメント

  • 1000 / 1000