Any able to create an autologon post install task?
I'm looking to create a post install task that will set the registry so that after the system is done imaging and installing all software (through K2000 post install tasks), that after the next reboot it will autologon as the correct domain user. I have created a reg file and copied it down to the system and ran a bat file with the appropriate command, but it doesn't want to set the bit for Autologon (it does set the default domain and user). My second-to-last post install task is joining the domain followed by the Kace cleanup. I tried putting my job right after the join domain task, but I'm wondering if this is even possible.
Answers (2)
You need to put a some of lines in your post task.
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1 /f
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 2 /f
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultDomainName /d tmccacad /f
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d installer /f
start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d Password /f
see link for a listing of my process.
http://www.itninja.com/blog/view/windows-7-image-process-for-the-college-s-classrooms
Comments:
-
Well, it definitely worked in setting the bit for AutoAdminLogon, but the user account is a generic account with no password. I tried running what you posted above minus the key for the defaultpassword. I'll try adding the key but without actually providing a password or maybe double quotes with nothing else (""). Or is there some reason why the account would have to have a password for this to work? - tdickert 12 years ago
-
I believe you have to have a password, (another great feature from Microsoft) for adminautologon to work. the only time I have seen not needing a password was thru user accounts http://www.softwareok.com/?seite=faq-Win-7&faq=24 - SMal.tmcc 12 years ago
-
I used empty double quotes in place of a password and it worked! Thank you for your help once again! - tdickert 12 years ago
tdickert, you could just try Logonexpert tool for logon automation, it also support scripting and command line configuring: