September 10, 200421 yr 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
September 10, 200421 yr winnt.sif[GuiUnattended] AdminPassword="blah" EncryptedAdminPassword=NO AutoLogon=Yes AutoLogonCount=1 [GuiRunOnce] Command0=c:\ftp.cmd
September 10, 200421 yr Author 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.
September 17, 200421 yr Author 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.
Create an account or sign in to comment