run batch script after windows server restart

Pandit picture Pandit · Mar 16, 2017 · Viewed 8.9k times · Source

I am trying to run a script to startup some services after windows reboot.

I have tried one method: copying shortcuts of batch script in shell:startup folder. which eventually will start the scripts automatically but someone has to login to the system.

I am thinking about the possible ways to run the script after server restart without logon to the server.

Any help will be highly appreciated.

Answer

Rawns picture Rawns · Mar 16, 2017

Create a Windows scheduled task and set it to run on system startup:

enter image description here