I am setting up an automated build process using disk imaging. One step in
my process is running Sysprep in factory mode, during which I want to run my
own command, but so far I have been completely unable to get this to work!
Here is what I've done:
* installed a more or less vanilla Windows XP Professional on
master machine
* set up folder c:\sysprep with the files:
- sysprep.exe
- setupcl.exe
- factory.exe
- winbom.ini
* set up file cmdlines.ini in the following location:
- c:\sysprep\i386\$oem$\cmdlines.txt
* (contents of winbom.ini and cmdlines.txt are shown below...)
* on the master machine, run the command "sysprep -factory"
* the master machine shuts down, and I reboot it
(skipping the disk cloning step for now)
* I see the following in order:
- Windows XP logo screen
- Completely blank screen for a while
- "Please wait while Windows prepares to start..."
- Completely blank screen for a while
- brief flash of some Sysprep window in top right of screen
- normal logon screen
* I log on as administrator, and more Sysprep stuff runs:
- Optimizing shell
- Customising home network settings
- Waiting for Plug and Play to finish
* I then check to see if my custom commands have run, but they
have not - i.e. no subfolders of c:\ have been created.
This is my problem! (The Winbom.ini file is being processed,
as the machine name is being set as instructed in the file)
What I *want* to achieve is for:
* the target machine to boot and run my command
* my command will ultimately interact with the user through
a dialog (and also access some remote network shares),
* my command sets up some settings to automate mini-setup
through Sysprep.inf, and runs Sysprep -reseal -mini to
get machine ready for final use.
* (for now, I'm just trying to run commands that create
subfolders of c:\ so that I can see they've done something)
Am I going about this the right way? Any ideas why none of my commands are
running?
Here are the contents of winbom.ini and cmdlines.txt referred to above:
--------- winbom.ini -----------------
[Factory]
WinBOMType=Factory
UserName=Administrator
Password=xxxxxxxx
FactoryComputerName=yyyyyyyy
Reseal=No
[ComputerSettings]
;AuditAdminAutoLogon=Yes
InstallFilesPath=C:\sysprep\i386
[GuiRunOnce]
"Command1", "cmd /c md c:\cmd1"
"Command2", "cmd.exe /c md c:\cmd2"
"Command3", "c:\winnt\system32\cmd.exe /c md c:\cmd3"
"Command4", "c:\winnt\system32\cmd.exe /c md c:\cmd4"
[SetupHomeNet]
EnableFirewall=No
[PnPDriverUpdate]
[PnPDrivers]
[NetCards]
[UpdateInis]
[FactoryRunOnce]
[Branding]
[AppPreInstall]
--------- cmdlines.txt -----------------
[Commands]
"c:\winnt\system32\cmd.exe /c md c:\cmd5"
"cmd /c md c:\cmd6"
c:\winnt\system32\cmd.exe /c md c:\cmd7
cmd /c md c:\cmd8
-------------------------
Many thanks,
Mike.