[TUTORIAL] Enable Autologon in Windows - the right way

Forum regarding Windows Software and Home Automation Domotica.
Post Reply
Jeffrey
Member
Member
Posts: 136
Joined: Tue Jun 09, 2009 3:34 pm
Location: Netherlands

[TUTORIAL] Enable Autologon in Windows - the right way

Post by Jeffrey »

There are tools on the web which enables the autologon feature for Windows. There are several ways of enabling autologon. There is however a method which puts the password plain text in the registry. This is obviously the wrong way of doing it. TweakUI is such an tool which is widely used.

The method described here will also automatically remove any plain text passwords.

Here is the right way to enable autologon:
1. Start --> Run --> Type in <i>control userpassword2</i> and click OK
2. On the "User Accounts" screen that opens make sure that the "Users must enter a user name and password to use this computer" is <u>de</u>selected and click Apply
3. On the Automatically Log On window enter the username and password which will be used to autologon into windows
4. Click Ok and close User Accounts
5. Reboot and check if the autologon works

Optional (but highly recommended):
To automatically lock the computer after automatically logging click Start --> Run --> Type in (or better --> copy and paste):
<i>REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v AutoLockAtLogon /t REG_SZ /d "%windir%\system32\rundll32.exe user32.dll,LockWorkStation"</i>

To disable the automatic locking at logon click Start --> Run --> Type in:
<i>REG delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v AutoLockAtLogon</i>
Jeffrey
Member
Member
Posts: 136
Joined: Tue Jun 09, 2009 3:34 pm
Location: Netherlands

[TUTORIAL] Enable Autologon in Windows - the right way

Post by Jeffrey »

To autolaunch applications when the computer logs in (plugwise, homeseer, etc.) you also have a few options:
1. Create shortcuts in the Start --> All Programs --> Startup folder
2. Create a batchfile or vbscript and place it in the startup folder or the run key of the user (much like the reg add command in the starttopic)

The problem with number one is that apps will be launched in an uncontrolled way. That means that you can have timing issues as app1 has to run before app2 can be started. This can be resolved by using option 2, but that requires some scriptknowledge.

So the option is to use blade's application launched (BLAppLauncher), which takes care of any timing issues (credits go out to Chak for pointing me to this tool). You can find it on Blades homepage (http://bladeplugins.no-ip.org) or use the direct link to the download --> http://bladeplugins.no-ip.org/DownloadF ... leType=app

Please note that the autolaunching will still happen even when the autolock option is used as described in the start topic!
Francois
Member
Member
Posts: 255
Joined: Mon Apr 21, 2008 3:16 pm
Location: Netherlands

[TUTORIAL] Enable Autologon in Windows - the right way

Post by Francois »

What about "AutoLogon" from the sysinternals suite by Mark Russinovich ? It does just this from the GUI without having to change the registry.

Autologon enables you to easily configure Windows built-in autologon mechanism. Instead of waiting for a user to enter their name and password, Windows uses the credentials you enter with Autologon, which are encrypted in the Registry, to log on the specified user automatically.

I use this on my homeseer server and it works like a charm. Can be downloaded from http://technet.microsoft.com/en-us/sysi ... 63905.aspx

Francois
Jeffrey
Member
Member
Posts: 136
Joined: Tue Jun 09, 2009 3:34 pm
Location: Netherlands

[TUTORIAL] Enable Autologon in Windows - the right way

Post by Jeffrey »

That will also work Francois. Mark rocks. It's a safe bet that he uses the same manner as the control userpassword2 method, but with a gui around it.

If you add the automatically lock reg entry your set.
rsergio
Starting Member
Starting Member
Posts: 1
Joined: Mon Nov 02, 2009 2:48 pm
Location: Czech Republic

[TUTORIAL] Enable Autologon in Windows - the right way

Post by rsergio »

1) article about all possible ways to perform windows autologon -- http://www.logonexpert.com/freeautologon.html
2) or shareware tool from the same website named Logonexpert

Both works perfectly :)
Edwin2008
Advanced Member
Advanced Member
Posts: 721
Joined: Fri Nov 28, 2008 4:14 pm
Location: Netherlands

Re: [TUTORIAL] Enable Autologon in Windows - the right way

Post by Edwin2008 »

Yep but windows 7 is a challenge if you want the password encrypted.
** edwin **
Jeffrey
Member
Member
Posts: 136
Joined: Tue Jun 09, 2009 3:34 pm
Location: Netherlands

Re: [TUTORIAL] Enable Autologon in Windows - the right way

Post by Jeffrey »

My initial post option with "control userpassword2" is secure. This works perfect with Windows 7.
Edwin2008
Advanced Member
Advanced Member
Posts: 721
Joined: Fri Nov 28, 2008 4:14 pm
Location: Netherlands

Re: [TUTORIAL] Enable Autologon in Windows - the right way

Post by Edwin2008 »

"control userpassword2" did not work on W7Starter. What did work was "netplwiz".
** edwin **
Post Reply

Return to “Windows Forum”