Articles → .NET WINDOWS SERVICE → How To Start Your Windows Service Automatically When Server Gets Restarted

How To Start Your Windows Service Automatically When Server Gets Restarted







  1. Create a batch file and write following command to start the service
  2. net start service_name


  3. Copy the batch file in startup folder (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp).



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, November 30, 2017

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250