Automatically log in once Windows 2003 server starts
Solution 1
There's a registry hack that allows you to perform an automatic login by storing user creditials in the registry. It's not secure, but it does what you want.
Solution 2
I would suggest creating a service which you can do from any .exe with this method.
This will make your program run on startup without having to login. If you subsequently need to interact with the program you can connect to the console session.
Solution 3
- Run
gpedit.msc
Under Local Computer Policy > Computer Configuration > Administrative Templates > System
, set "Display Shutdown Event Tracker" to "Not configured".
Run
control userpasswords2
Uncheck "User must enter user name and password to use this computer."
- Enter your password into the dialog that pops up.
- Also, via
Desktop > right-click > [Display] Properties > Screen Saver (tab) > Power... (button) > Advanced (tab)
, uncheck "Prompt for password when computer resumes from standby":
Solution 4
I had the same situation a few years back. You can use the run command to open the old Users / Passwords by running "control userpasswords2" in the run dialog. It is easier to setup a user to auto login then the registry hack. I then had a script that would start the program I needed and lock the PC so it wasn't left unsecured. Like the link above "rundll32.exe user32.dll,LockWorkStation" will lock the work station or server in this case.
Related videos on Youtube
Ertugrul Kara
Updated on September 17, 2022Comments
-
Ertugrul Kara over 1 year
I have a non-daemon server app that my Windows 2003 server needs to run all the time. The problem is, every time the server restarts, be it electricity or windows update, someone needs to press Ctrl+Alt+Del and enter username/password. Then the program starts, as it's in Startup. How do I make Windows 2003 to automatically log in to
Administrator
(or spawn a terminal services session) every time the system boots?I know it's against the nature of servers and all. But this is the only thing the server does.
-
Maximus Minimus over 14 years+1; running it as a service is the way to go. Alternatively pop it in a computer startup script in the local policy.
-
minamhere over 14 yearsYou can add this shortcut to your startup items to lock the machine after it logs in. technet.microsoft.com/en-us/library/cc750823.aspx This lets your application run but doesn't leave your machine unsecured. I have used this successfully in a similar situation and it works perfectly.
-
mfinni over 14 yearsThis is a good answer, with a caveat. This doesn't work for everything, so it does requires testing.
-
Savage Garden over 9 years@minamhere
Win + L
does the same thing!