07/30/2014 2348 views
I have set a post install task to add auto login.  The script works until the pc is turned off.  Once the pc is turned off and turned back on the pc halts at the login screen.

here is my script;
@echo off
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /d password /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /d login id /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /d 1 /f
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v HideFastUserSwitching /t REG_DWORD /d 1 /f

after a complete a shutdown and manual login the script in the registry is no longer there.
0 Comments   [ + ] Show comments


All Answers

Always a good idea to use google....

Essentially you are not setting AutoLogonCount although as that thread will show, there are other unknown factors in the mix. I have not looked further as I suspect you will want to do this yourself.
Answered 07/31/2014 by: EdT
Red Belt

  • @Ed, the 'Comments' are only available to Premium EE users or those who have answered a number of questions on EE.
    • @Ian - I haven't the faintest clue what you are referring to....