Jump to content

Restarting after adding RunOnceEx entries


Recommended Posts

Hi all,

I am currently using [GuiRunOnce] in WINNT.SIF to place entries into the RunOnceEx part of the registry, add a new user and then reboot (so that RunOnceEx kicks in).

The problem I am having is that my restart command (using a batch script, as for some reason I cant call sahutdown -r -t 0 from GuiRunOnce) isn't executed. Windows starts, then on the next startup the RunOnceEx entries are ran.

The other issue I have is that I cant get the autologin to persist. It works once, then asks for a username and password every login after that.

Here are the relevant sections:

WINNT.SIF

[GuiRunOnce]
%systemdrive%\install\install.cmd
%systemdrive%\install\adduser.cmd
%systemdrive%\install\restart.cmd

Restart.cmd

shutdown -r -t 0

adduser.cmd

net user Owner /add
net localgroup Administrators Owner /add
net accounts /maxpwage:unlimited
REGEDIT /S %systemdrive%\install\autologon.reg
EXIT

autoloon.reg

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Owner"
"AltDefaultUserName"="Owner"

"AutoAdminLogon"="1"

Thanks in advance,

C02.

Link to comment
Share on other sites


hi,

as per restart try to modify this to fit your needs

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."

as per autologon, try to set password on the user while adding the user from adduser.cmd. Don't forget to add password to your autologon.reg

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="John"
"DefaultPassword"="asdf1234"
"AutoAdminLogon"="1"

Link to comment
Share on other sites

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...