Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2


The [OEMRunOnce] section enables you to control how and when external applications and command shell scripts run when auditing the computer in Factory mode, by using the Sysprep -factory command.

You can run any application or command shell script accessible on the destination computer or on the network (if you specify a network adapter).

Applications and command shell scripts called in the [OEMRunOnce] section process synchronously. Each application or script runs in the order specified in the [OEMRunOnce] section, and each application or script must finish before the next command runs.

You should verify that all applications and shell command scripts listed in this section run in a fully-automated way. If the application or script stops for user input, or for any other reason requiring user interaction, the process eventually times out and logs an error.

The applications and scripts listed in [OEMRunOnce] process before the applications and scripts listed in the [OemRun] section. The [OEMRun] section processes last.

display_text, { command_line | section_name, {APP | INF | MSI} }
entry3 . . .
Value Description


Specifies text to display in the OemRunOnce dialog box when Sysprep -factory processes this section.


Specifies a command-line command to run synchronously with respect to the other commands listed in the [OEMRunOnce] section.


Specifies the name to use in the [section_name] heading within the [OEMRunOnce] section.


Indicates that the application or command is not an .inf file or an .msi file (installation package file).


Indicates that the setup application is an .inf file.


Indicates that the setup application to run is an .msi file.


Contains entries for configuring the preinstallation of applications during Factory mode of Sysprep. Preinstall the applications using the credentials specified in the UserName and Password entries in the [Factory] section of Winbom.ini.


Entries that specify how to process a given application, .msi file, or .inf file.

"Connect to shared folder", "net use R: \\server\share"
"First Application Stage", "Application1.Stage", MSI
"Second Application Stage", "Application2.Stage", MSI
"Third Application Stage", "Application3.Stage", MSI

InstallType = Standard

InstallType = Attach

InstallType = Detach