PeteM Posted January 27, 2009 Posted January 27, 2009 (edited) HiI have an unattended XP setup which works well I have used the RunOnceEx.cmd method to install apps and fixesI have created 2 users, 1 admin, 1 user, with UserAccounts.cmdnet user mfatadmin password /addnet localgroup Administrators mfatadmin /addnet user mfatuser password /addnet localgroup Users mfatuser /addnet accounts /maxpwage:unlimitedREGEDIT /S AutoLogon.regEXITThis works and in AutoLogon.reg I have set the Admin account to be the default user so that RunOnceEx.cmd works properlyWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="mfatadmin""DefaultPassword"="password""AutoAdminLogon"="1"After RunOnceEx.cmd has finished I want the default windows login to be the User account so I have created the (in RunOnceEx.cmd) entry at the end (before a reboot).REG ADD %KEY%\055 /VE /D "Setting default user" /fREG ADD %KEY%\055 /V 1 /D "%cdrom%\apps\install\SetUser.bat" /fSetUser.bat containsregedit /s AutoLogonUser.regand AutoLogonUser.reg containsWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="mfatuser""DefaultPassword"="mfatuser""AutoAdminLogon"="1"Now Setuser.bat works if I run it by itself but it doesn't work in the RunOnceEx.cmd scriptHow do I fix this or is there another way to go about what I require?To recap I want 2 accounts an Admin and a User, the Admin is set as the default account 1st with an auto logon so that Windows and RunOnceEx.cmd installs correctly. I then want the User to be set as the default account with an auto logon. I want this to work all unattended Edited January 27, 2009 by PeteM
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