Welcome to shell: revealed Sign in | Join | Help
in Search

Shell Blog

A useful tool for setting up autologon

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.

Published Wednesday, October 11, 2006 3:21 PM by ajenning

Comments

 

AndrewFerguson said:

Is there a version or tool similar to this for XP?

October 11, 2006 4:46 PM
 

rm20010 said:

"control userpasswords2" works in both XP and Vista. This command line tool is probably more convienent for administrators of networked computers.

October 11, 2006 5:55 PM
 

ajenning said:

Mark Russinovich of sysinternals fame also has a tool that does something similar. I think that tool saves your password in the registry though.

http://www.sysinternals.com/Utilities/Autologon.html

October 11, 2006 7:46 PM
 

Jason Haley said:

October 11, 2006 11:13 PM
 

baslam said:

If you use unattend settings, use Microsoft-Windows-Shell-Setup | AutoLogon to achieve a similar outcome

October 17, 2006 1:17 AM
 

OffBeatMammal said:

One thing I used to like with Windows XP Media Center Edition (MCE) was being able to use TweakUI to

July 14, 2007 12:43 AM
 

logonexpert said:

Guys we also offer the software tool for secure autologon, it is shareware but have some interesting features that people could pay for :-) LogonExpert -- http://www.logonexpert.com

January 11, 2008 2:56 PM
 

Technology Experience (Reborn) said:

AutoLogon con Windows Vista

March 1, 2008 9:26 AM
Anonymous comments are disabled
Powered by Community Server, by Telligent Systems © 2006 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement.