Jump to content

Recommended Posts

Posted

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\ folder

Secondly: -

Put this at the top of your Start.cmd: -

:: Enter your username below
SET USERNAME=XXXXXXXX

:: Enter your password below
SET PASSWORD=XXXXXXXX

At 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.reg
ECHO. >> %SYSTEMDRIVE%\Install\LogOnce1.reg
ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >> %SYSTEMDRIVE%\Install\LogOnce1.reg
ECHO "DefaultUserName"="%USERNAME%" >> %SYSTEMDRIVE%\Install\LogOnce1.reg
ECHO "DefaultPassword"="%PASSWORD%" >> %SYSTEMDRIVE%\Install\LogOnce1.reg
ECHO "AutoAdminLogon"="1" >> %SYSTEMDRIVE%\Install\LogOnce1.reg

ECHO Setting one-time Autologin...
REGEDIT /S %SYSTEMDRIVE%\Install\LogOnce1.reg

ECHO Windows Registry Editor Version 5.00 >> %SYSTEMDRIVE%\Install\LogOnce2.reg
ECHO. >> %SYSTEMDRIVE%\Install\LogOnce2.reg
ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >> %SYSTEMDRIVE%\Install\LogOnce2.reg
ECHO "DefaultUserName"="%USERNAME%" >> %SYSTEMDRIVE%\Install\LogOnce2.reg
ECHO "DefaultPassword"="%PASSWORD%" >> %SYSTEMDRIVE%\Install\LogOnce2.reg
ECHO "AutoAdminLogon"="0" >> %SYSTEMDRIVE%\Install\LogOnce2.reg

Lastly: -

Add this to your RunOnceEx.cmd: -

REG ADD %KEY%\011 /VE /D "Removing Auto-Login" /f
REG 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


Posted

winnt.sif

[GuiUnattended]
   AdminPassword="blah"
   EncryptedAdminPassword=NO
   AutoLogon=Yes
   AutoLogonCount=1

[GuiRunOnce]
   Command0=c:\ftp.cmd

Posted

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.

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...