auto login via registry
Trying to move or XP unattended install moved over to the K2000. Have just about everything ready except my auto login.
It will not run from RunOnce or RunOnceEx nor from a batch file called from RunOnce or RunOnceEx. It does look like the settings are there, but the computer does not auto login to the domain.
The following will work when I manually run it and reboot.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d domain\installer /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d xxxxxxxx /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d domain /f
What am I doing wrong??
Does my DefaultDomainName need to be domain.local?I think I have tried that and it did not make a difference.
It will not run from RunOnce or RunOnceEx nor from a batch file called from RunOnce or RunOnceEx. It does look like the settings are there, but the computer does not auto login to the domain.
The following will work when I manually run it and reboot.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d domain\installer /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d xxxxxxxx /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d domain /f
What am I doing wrong??
Does my DefaultDomainName need to be domain.local?I think I have tried that and it did not make a difference.
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
RandomITPro
12 years ago
I assume you are trying to autologin using a domain account and not a local account. If this is the case, Username needs to just be the "username" not "domain\username" and domain should be your domain. If your trying to use a local account I think setting the domain to %computername% will work.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d installer /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d xxxxxxxx /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d domain /f
OR
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d %computername% /f
I use a batch file to autologin into my syspreped images a second time. Then use an autoit script to restart the machine after 2 mins. Then another batch file to break the autologin, and set the domain.
Goodluck
-TM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d installer /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d xxxxxxxx /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d domain /f
OR
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d %computername% /f
I use a batch file to autologin into my syspreped images a second time. Then use an autoit script to restart the machine after 2 mins. Then another batch file to break the autologin, and set the domain.
Goodluck
-TM
Posted by:
mike.henderson
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.