I'm trying to run a service on startup of a windows instance on amazon. So far it is a manual process where I have to start rdp in, log in and then start the process. I'd like it when the instance loads for us to be able to bypass the login so it can go straight to the desktop and load a process.

The only thing I've tried that allowed me to get somewhat close is to setup SSH on the server and have a shell script that automatically logs me in and starts the process. I'd like a way to do it through AWS settings though. Is this possible?

  • 3
    Why can't you just change Autostart status of that service from Manual to Automatic? – Mxx Mar 3 '14 at 22:46
  • I suppose I could – The Internet Mar 4 '14 at 14:21

Assuming that it is a full-fledged Windows service you need to start, then it's as simple as @Mxx points out: just set the service startup type to Automatic rather than Manual.

If it's not a service but just a regular Windows process, then you can look into using Sysinternals Autologon to cause the instance to automatically log in as a particular user when it boots, and then the normal ways of running things at startup (the Startup group in the Start Menu, the Run and RunOnce keys in the registry, etc.) will function as you expect.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.