Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

Running a Script During the 2nd Setup Phase

Recommended Posts

I looked at the 1st three pages of the topic, but of course I didn't find an answer. I suspect that somewhere in the mass of links in the stickies at the top of the topic, my answer can be found buried in there. Please forgive my impatience.

When we do a Windows XP unattended installation, there's a point during the 2nd (graphical) phase of setup, where a script can be run. My XP discs would create a default user at this time. Is the same true of Windows 7 and if so, could someone share a couple of links explaining the procedure ?

What I'd like to do is launch some preparatory work from one of the RUNONCE keys and setup those registry entries prior to finalization of the system.

Thanx for the use of the brain cells...

Link to comment
Share on other sites

All you need is the AutoUnattend.xml to do all that for you. Pass oobeSystem examples here


You then can use Firstlogoncommands within that and do the adding HKLM registry, HKCU cannot be added till the user is created or in other words when the GUI loads the desktop. Unless you mount the image and mod the registry.


Uploaded with ImageShack.us

Edited by maxXPsoft
Link to comment
Share on other sites

Thanx. My x64 disc is stuck w/ a final issue, where it dies halfway into my GUIRunOnce script, just a plain-vanilla CMD batch script ! Takes hours to get to the desktop, hanging in limbo. If I don't execute the script til after SETUP is complete and we're at the Desktop, the script works flawlessly ! OTOH, the exact same script is no problem on my x86 disc ! So I need to change things up for the x64 world, altho there's no good reason I should be going thru this ! I should be able to install what I need from the HKLM/RunOnce keys.

Thanx again.

Edited by jetman
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...