Recently after our image completes via the k2000, the computers have stopped auto logging in to complete the post installation tasks.  Does anyone have a recommendation to fix this issue or know a few things that I can try to remedy this?  Manually logging in 3-4 times to complete post installations is getting annoying when we have 200+ computers that we need to image this summer.
1 Comment   [ + ] Show comment


  • FYI, if you are using Windows 1703 this is not a KACE issue, see:




You need a script to add "autologon count".

A few registry edits in a batch script should do it.

This is the script I use to add additional auto logons. (works for me)......

Create a new batch script as a post-install task.

Change the highlighted parts to your preference and paste

into the batch script window

Number of logons needed..........


Password (for the user).....................

Add the script to the post install tasks of the image......somewhere in the middle.

The only drawback is that the user password is stored in plain text.

If that is not a problem..... then go for it.

reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v DefaultLogonDomain /t REG_SZ /d %COMPUTERNAME% /f

reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1 /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 6  /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d .\USER  /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d Password /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultDomainName /d %COMPUTERNAME% /f

Answered 07/07/2017 by: akmagnum
Red Belt

  • Thank you, this worked for me.
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja
Five Easy Steps to Smarter Systems Imaging
With traditional methods for systems imaging, each image captures a particular hardware and software configuration at a specific moment in time—static, unchanging, unmanageable.