rompom7 Posted September 10, 2004 Posted September 10, 2004 This will show you how to make Windows XP login only once automatically, this can be used to run your RunOnceEx for example.It may have already been discussed at these forums, but I am new and didn't relise .Ok first of all: -Create 2 registry files; one called LogOnce1.reg and the other called LogOnce2.reg and put them in your $OEM$\$1\Install\ folderSecondly: -Put this at the top of your Start.cmd: -:: Enter your username belowSET USERNAME=XXXXXXXX:: Enter your password belowSET PASSWORD=XXXXXXXXAt this point it would be easier to manage if you changed all instances of your username in your Start.cmd with %USERNAME% likewise for password, replace with %PASSWORD%Now add this anywhere to your Start.cmd: -ECHO Windows Registry Editor Version 5.00 >> %SYSTEMDRIVE%\Install\LogOnce1.regECHO. >> %SYSTEMDRIVE%\Install\LogOnce1.regECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >> %SYSTEMDRIVE%\Install\LogOnce1.regECHO "DefaultUserName"="%USERNAME%" >> %SYSTEMDRIVE%\Install\LogOnce1.regECHO "DefaultPassword"="%PASSWORD%" >> %SYSTEMDRIVE%\Install\LogOnce1.regECHO "AutoAdminLogon"="1" >> %SYSTEMDRIVE%\Install\LogOnce1.regECHO Setting one-time Autologin...REGEDIT /S %SYSTEMDRIVE%\Install\LogOnce1.regECHO Windows Registry Editor Version 5.00 >> %SYSTEMDRIVE%\Install\LogOnce2.regECHO. >> %SYSTEMDRIVE%\Install\LogOnce2.regECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >> %SYSTEMDRIVE%\Install\LogOnce2.regECHO "DefaultUserName"="%USERNAME%" >> %SYSTEMDRIVE%\Install\LogOnce2.regECHO "DefaultPassword"="%PASSWORD%" >> %SYSTEMDRIVE%\Install\LogOnce2.regECHO "AutoAdminLogon"="0" >> %SYSTEMDRIVE%\Install\LogOnce2.regLastly: -Add this to your RunOnceEx.cmd: -REG ADD %KEY%\011 /VE /D "Removing Auto-Login" /fREG ADD %KEY%\011 /V 1 /D "REGEDIT /S %SYSTEMDRIVE%\Install\LogOnce2.reg" /f.This is good if you have a multi-user computer, if you just some more security on your PC, if your away at the time of the installation, or even if your just to lazy to type your username for the first time manually.- rompom7
edg21 Posted September 10, 2004 Posted September 10, 2004 winnt.sif[GuiUnattended] AdminPassword="blah" EncryptedAdminPassword=NO AutoLogon=Yes AutoLogonCount=1 [GuiRunOnce] Command0=c:\ftp.cmd
rompom7 Posted September 10, 2004 Author Posted September 10, 2004 That will just log on the Administrator won't it?My way allows you to have your own custom settings/tweaks just for that particular user.
rompom7 Posted September 17, 2004 Author Posted September 17, 2004 I forgot to mention that the username and password set doesn't have to be the administrator username and password, it can be just a default user... as long as the account exists.
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