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. 

Answer Summary:
0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



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. 


Answered 07/05/2012 by: SMal.tmcc
Red Belt

  • 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?
  • 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
  • I used empty double quotes in place of a password and it worked! Thank you for your help once again!
Please log in to comment

tdickert, you could just try Logonexpert tool for logon automation, it also support scripting and command line configuring:



Answered 07/09/2012 by: taho
Senior Yellow Belt

Please log in to comment