How do I enable Automatic Logon in Windows 7 when I'm on a domain?
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5 Looping
--
Chapters
00:00 Question
00:39 Accepted answer (Score 116)
03:48 Answer 2 (Score 22)
05:49 Answer 3 (Score 3)
06:54 Thank you
--
Full question
https://superuser.com/questions/28647/ho...
Question links:
[HowToGeek Article]: http://www.howtogeek.com/howto/windows-v.../
Accepted answer links:
[My Digital Life Article]: http://www.mydigitallife.info/2008/06/15.../
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows7 #login #automation #windowsdomain
#avk47
ACCEPTED ANSWER
Score 116
From : My Digital Life Article
Click Start, click Run, type
regedit, and then click OK. In Windows Vista/7, simply typeregeditin Start Search and hit Enter.Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinlogonDouble-click the
DefaultUserNameentry, type the user name to log on with, and then click OK.If
DefaultUserNameregistry value name is not found, create a new String Value (REG_SZ) with value name asDefaultUserName.Double-click the
DefaultPasswordentry, type the password for the user account under the value data box, and then click OK.If there is no
DefaultPasswordvalue, create a new String Value (REG_SZ) withDefaultPasswordas the value name.Note that if no
DefaultPasswordstring is specified, Windows automatically changes the value of theAutoAdminLogonregistry key from 1 (true) to 0 (false) to turn off theAutoAdminLogonfeature.In Windows Vista/7,
DefaultDomainNamehas to be specified as well, else Windows will prompt for invalid user name with the user name displayed as.\username. To do so, double click onDefaultDomainName, and specify the domain name of the user account. If it’s local user, specify local host name.If the
DefaultDomainNamedoes not exist, create a new String Value (REG_SZ) registry key with value name asDefaultDomainName.Double-click the
AutoAdminLogonentry, type1in the Value Data box, and then click OK.If there is no
AutoAdminLogonentry, create a new String Value (REG_SZ) withAutoAdminLogonas the value name.If it exists, delete the
AutoLogonCountkey.Also if it exists, delete the
AutoLogonCheckedkey.Quit Registry Editor.
Click Start, click Restart, and then click OK.
ANSWER 2
Score 23
Further to William Hilsum's answer, this method does not require you to leave the password in plain text in the registry (although I am not sure how the authentication is actually stored).
Step 1
As a local administrator, tell Windows to allow admins to log on automatically.
In Regedit, browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.
If it is not there, create a new String Value called AutoAdminLogon
Set this value to 1
Step 2
Tell Windows to remember the password for logging in.
In the run box, type control userpasswords2
Ensure your domain username is in the list, if not, add it.
Untick (or tick and untick): Users must enter a user name and password to use this computer.
Make sure your username is selected. Click Apply.
At this point, Windows should prompt for the password that will be used.
Step 3
Now head back to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Ensure the following String Values are set, if not, set them:
DefaultUserName: Your domain username (without the domain prefix)DefaultDomainName: Your domain
That should be it.
Note on password changes:
You will need to redo this procedure from step 2 each time you change your password. Unfortunately Windows resets the DefaultDomainName to your local machine name every time you save that dialogue, so you have to change it back manually.
ANSWER 3
Score 3
Further to @Adam Millerchip's answer, we can reduce the password-change effort to what it was prior to joining a domain, when we always had to run control userpasswords2 again every time to store the new password. Now we're on a domain, we can just run a batch file instead that runs control userpasswords2 and also restores our domain and username registry settings:
AfterPwdChange.bat
control userpasswords2
pause
regedit /s WinLogonBit.reg
WinLogonBit.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="mydomainusername"
"DefaultDomainName"="mydomain"
And if the reason for wanting the auto-logon is to get startup programs running, we might still prefer the workstation to end up locked after power-up. If so, we can place a shortcut in the Startup folder with the following command:
C:\Windows\System32\rundll32.exe user32.dll,LockWorkStation