Guest flipje Posted April 9, 2004 Posted April 9, 2004 I made a little script where users can fill in there name so after the install I would like to logon with that input of the user but the autologon wont work after the install...Here is a a part of the script....CLSECHO Please fill in the following informationSET /P FullName=Fullname (First and Lastname) :SET /P usrName=Your username (Like: Viper) :SET /P password=Password for %usrName% :set _USER=%usrName%set _PASS=%password%set _FULL=%FullName%net user %_USER% password:"%_PASS%" /add /FULLNAME:"%_FULL%" /EXPIRES:NEVER>nulnet localgroup administrators "%_USER%" /add>nul%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%_USER%" /f%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserPassword" /d "%_PASS%" /f%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /fnet accounts /maxpwage:unlimitedREGEDIT /S %systemdrive%\HKCU2.regHKCU2.regWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"AutoAdminLogon"="1"Anyone idea's???Thanks...
SlimShady Posted April 10, 2004 Posted April 10, 2004 Maybe you should get rid of the quotes between the password...You could create a new batch file and test each command line.Good luck.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now