Home » Questions » Computers [ Ask a new question ]

How do I enable Automatic Logon in Windows 7 when I'm on a domain?

How do I enable Automatic Logon in Windows 7 when I'm on a domain?

When Windows 7 is joined to a domain the option to automatically login is no longer available in the advanced User Management console. Since I am running a small home domain because of SharePoint and TFS, how would I go about enabling this setting?

Asked by: Guest | Views: 54
Total answers/comments: 2
Guest [Entry]

"From : My Digital Life Article


Click Start, click Run, type regedit, and then click OK. In Windows
Vista/7, simply type regedit in Start
Search and hit Enter.
Navigate to the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon
Double-click the DefaultUserName entry, type the user name to log on
with, and then click OK.

If DefaultUserName registry value name is not found, create a
new String Value (REG_SZ) with value
name as DefaultUserName.
Double-click the DefaultPassword entry, type the password for the user
account under the value data box, and then click OK.

If there is no DefaultPassword value, create a new String Value
(REG_SZ) with DefaultPassword as the value name.

Note that if no DefaultPassword string is specified, Windows automatically changes the value of the AutoAdminLogon registry key from 1 (true) to 0 (false) to turn off the AutoAdminLogon feature.
In Windows Vista/7, DefaultDomainName has 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 on DefaultDomainName, and specify the domain name of the user
account. If it’s local user, specify local host name.

If the DefaultDomainName does not exist, create a new String Value
(REG_SZ) registry key with value name as DefaultDomainName.
Double-click the AutoAdminLogon entry, type 1 in the Value Data box,
and then click OK.

If there is no AutoAdminLogon entry, create a new String Value (REG_SZ) with AutoAdminLogon as the value name.
If it exists, delete the AutoLogonCount key.
Also if it exists, delete the AutoLogonChecked key.
Quit Registry Editor.
Click Start, click Restart, and then click OK."
Guest [Entry]

"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"