I am trying to configure an EC2 Windows 2008 server instance to automatically start a batch file after the instance is restarted (to connect to Jenkins). I have placed a shortcut to the batch file in the Startup folder in the Windows menu.
The problem I am seeing is that the instance does not start the batch file until I actually login to the instance with remote desktop. As soon as I log in to the instance, the file is executed.
How do I make sure that the batch file is started as soon as the operative system is loaded?
I figured it out. The trick was to automatically log in after the instance is restarted:
The instance will now run the items in the Startup folder in Windows.
If this is not configured on the instance, the login will actually happen when you remote desktop into the instance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With