Microsoft KB Archive/814588

= How to disable Mini-Setup Wizard on a computer running Windows Server 2003 on which you used Sysprep or Riprep =

Article ID: 814588

Article Last Modified on 2/28/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)

-





For a Microsoft Windows 2000 version of this article, see 287506.

IMPORTANT : This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

IN THIS TASK

 * SUMMARY
 * Modify Registry Entries
 * REFERENCES



This step-by-step article describes how to return the computer to the state that it was in before you ran Sysprep.exe or Riprep.exe. Returning the computer to this state prevents the Mini-Setup Wizard from running when you restart a computer.

This procedure is useful if the Mini-Setup Wizard causes the original computer to stop responding (hang), therefore preventing Setup from finishing. This allows you to troubleshoot the reason that Sysprep.exe did not successfully complete. When you have completed this procedure, you can rerun Sysprep.exe or Riprep.exe.

You may also want to use this procedure if you accidentally run Sysprep.exe or Riprep.exe on a production system and you did not want to change the Security IDs (SIDs) or any of the configurable options that the Mini-Setup Wizard prompts you for when you next restart the original computer.

When you run Sysprep.exe or Riprep.exe on a source computer, the following entries are modified:   Registry Key: Entry                    Type            Modified to: -- Cmdline                  REG_SZ          setup -newsetup -Mini (Adds the &quot;-Mini&quot; entry) MiniSetupInProgress      REG_DWORD       0x1 SetupType                REG_DWORD       0x1 SystemSetupInProgress    REG_DWORD       0x1   Registry Key: Entry                    Type            Modified to: --- SetupExecute             REG_MULTI_SZ    setupcl.exe 

When you restart the computer, Setupcl.exe automatically assigns new SIDs to the computer and then starts the Mini-Setup Wizard to complete Setup.

back to the top

Modify Registry Entries
WARNING : If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To prevent new SIDs from being assigned and to prevent the Mini-Setup Wizard from running, modify the Windows Server 2003 registry to reset the values to the original values, and then replace the %SystemRoot%\System32\Config\System file with the System file in the %SystemRoot%\Repair folder or the %SystemRoot%\Regback folder. To do so, follow these steps:  Start the computer in Recovery Console. To do so:  Insert the Windows Server 2003 CD in the CD-ROM or DVD-ROM drive, and then restart the computer from the CD.

Note Some computers may require that you modify BIOS settings before you can start the computer from a bootable CD. For information about how to modify BIOS, see your computer documentation. In the Welcome to Setup screen, press R (to start the Recovery Console).</li> Press the number key that corresponds to the installation that you want to repair, and then press ENTER.</li> Type the Administrator password, and then press ENTER.</li></ol> </li> In Recovery Console, locate and open the %SystemRoot%\System32\Config folder, and then rename the System file to System.mini.</li> Copy the %SystemRoot%\Repair\System file to the %SystemRoot%\System32\Config folder.</li> Quit Recovery Console, and then restart the computer in Windows Server 2003.

Note The computer uses the previous System hive that you copied from the Repair folder. This is a temporary System hive that does not have any installed programs or services; you will only use it to make the computer bootable so that you can make the following changes.</li> Start Registry Editor, and then click .</li> On the Registry menu, click Load Hive, open the %SystemRoot%\System32\Config\System.mini registry file, and then type a name other than System. For example, type Test .</li> Locate and click the  subkey, and then note the value of the   entry.

This value determines which ControlSet00 to load when you start the computer, and this is the   subkey that you must modify.</li> Locate and then click the following subkey

where <X> is the value in Current:REG_DWORD: .</li> Double-click the following entry

Remove the  entry, and then click OK.</li>  Locate and click the  subkey, and then change the following registry entries from 0x1 to 0 (zero): <pre class="fixed_text"> Entry                    Type            Modify to: --- MiniSetupInProgress      REG_DWORD       0 SetupType                REG_DWORD       0 SystemSetupInProgress    REG_DWORD       0 </li> Double-click the  entry, and then remove only the   string.</li> After you make the changes, click the  subkey, and then on the Registry menu, click Unload Hive.</li> Quit Registry Editor, and then restart Recovery Console.</li> Locate and open the %SystemRoot%\System32\Config folder, rename the System file to System.erd, and then rename the System.mini file to System.</li> <li>Quit Recovery Console, and then restart the computer in Windows Server 2003.</li></ol>

The computer should now be back to its original state, as it was before running the Sysprep or Riprep utility, with the following exceptions: <ul> <li>Sysprep adds approximately 4 megabytes (MB) to the registry quota each time it runs without completing successfully. Verify that the Maximum Registry Size value meets the requirements of your computer; you may want to reduce it. To check this value, in Control Panel, double-click System, click the Advanced tab, click Performance Options, and then click Change.</li> <li>You may have to adjust two device path registry entries. If either OemPnPDriversPath= or InstallFilesPath= were specified in the Sysprep.inf file, remove the entries that Sysprep added from the registry entries: <ul> <li>If OemPnPDriversPath= was used in Sysprep.inf, remove the entries that were added to the following default entry:

</li> <li>If InstallFilesPath= was used in Sysprep.inf, remove entries that were added to the following default entry:

where <CD_ROM> is the local CD-ROM drive letter.</li></ul> </li></ul>

back to the top