Scripting Question

Win 7x86 autologin

07/30/2014 2532 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....
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ