Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Automatic Start and Stop Window Services on Server

Tags: select batch
Create a Batch file with following commands.
Open a notepad and write these commands and save it with .bat extension.

net stop [serviceName]
net start [serviceName]

Now open a task scheduler in window.

Now create a task in scheduler.




Follow Procedure:
  • Write task name , click next
  • Next under Trigger select frequency you want to run this window service, click next
  • Select timings, click next
  • Under Action, select start a programme, click next
  • Browse and select batch file you created earlier, clicknext
  • Click Finish and task for running  Windowservice is scheduled.



This post first appeared on Pivot In SQL Server, please read the originial post: here

Share the post

Automatic Start and Stop Window Services on Server

×

Subscribe to Pivot In Sql Server

Get updates delivered right to your inbox!

Thank you for your subscription

×