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

Comments

Please log in to comment

Answers

0
Always a good idea to use google....
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/Q_27871955.html

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....
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share