Have you ever thought to yourself “A simple command line app for setting up my computer to autologon would solve all of the worlds problems”? If so you should probably get help. Some of our beta testers mentioned that they wanted to set up autologon from the command line. And this app does exactly that.
http://shellrevealed.com/files/folders/code/entry4411.aspx
As an added bonus it also stores your password or smartcard pin as an LSASecret, which is _much_ more secure than leaving it as clear text in the registry. I’d recommend that anyone who’s been storing their password in the registry download this tool for that reason alone. If you’re not sure whether or not your password is stored in the registry you can check for yourself in HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon. It’ll be in a value called defaultpassword.
Here’s a brief synopsis of its abilities. All of these commands must be run from an elevated command prompt.
Autologon.exe /Set /Username:<YourNameHere>
This command sets up the computer to always autologon on boot with the username <YourNameHere>.
Autologon.exe /Set /Username:<YourNameHere> /Count:4
This command sets up the computer to autologon with the username <YourNameHere> on the next four reboots. After that it will no longer autologon.
Autologon.exe /Delete
This command clears the autologon data.
Autologon.exe /Migrate
If auto logon is already set up on the computer this command will move your password out of the registry and store it as a LSASecret.
Remember this isn’t an officially supported Microsoft tool it’s just something some devs whipped together to make their lives easier. It’s not supported by product support and there’s no guarantee that it’s bug free.