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
- Create a batch file and write following command to start the service
- Copy the batch file in startup folder (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp).