How to Disable Mini-Setup Wizard on a Computer on Which You Used Sysprep (287506)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional

This article was previously published under Q287506
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

SUMMARY

After you run either the Sysprep (Sysprep.exe) or Riprep (Riprep.exe) utility on a host computer to prepare it for cloning, you may want to undo the changes that Sysprep made to the host computer's registry so that the Mini-Setup Wizard does not run when you restart the computer, thereby returning the host computer to its original state prior to the use of the Sysprep or Riprep utilities.

This procedure is useful if the Mini-Setup Wizard causes the original computer to stop responding (hang), thus preventing Setup from finishing. This will allow you to troubleshoot the root cause of the inability of the Sysprep to successfully complete, after which point you can re-run Sysprep or Riprep.

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

MORE INFORMATION

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.

When you run Sysprep or Riprep on a source computer, it changes the following registry entries to the following values:
  • HKEY_LOCAL_MACHINE\SYSTEM\Setup

    Cmdline:REG_SZ:setup -newsetup -Mini (Adds the -Mini entry)
    MiniSetupInProgress:REG_DWORD:0x1
    SetupType:REG_DWORD:0x1
    SystemSetupInProgress:REG_DWORD:0x1
  • HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager

    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.

If you want to prevent new SIDs from being assigned and the Mini-Setup Wizard from running, you must modify the Windows 2000 registry to reset the values back to the original values, or you must rename, and then replace the %SystemRoot%\system32\Config\System file from the %SystemRoot%\Repair or %SystemRoot%\Regback folder:
  1. Start the computer with the Windows 2000 installation CD-ROM in Recovery Console.
  2. In Recovery Console, log on to the computer, navigate to the %SystemRoot%\system32\Config folder, and then rename the System file to System.mini.
  3. Copy the %SystemRoot%\repair\System file to the %SystemRoot%\System32\Config folder.
  4. Exit Recovery Console, and then reboot into the original operating system by using the previous System hive.

    Note: This is a temporary System hive that does not need to have any installed programs or services; you only need to use it to make the computer bootable so that you can make the following changes.
  5. Start Regedt32.exe, and then click the HKEY_LOCAL_MACHINE key.
  6. On the Registry menu, click Load Hive, open the %SystemRoot%\System32\Config\System.mini registry file, and then type the name in as something other than System, such as Test.
  7. Navigate to the HKEY_LOCAL_MACHINE\Test\Select registry key, and note the value for the Current REG_DWORD entry:

    Current:REG_DWORD:value

    This value selects which ControlSet00x to load when you start the computer, and this is the ControlSet that you must modify.
  8. Go to the following registry key

    HKEY_LOCAL_MACHINE\Test\ControlSet00x\Control\Session Manager

    where x is the value in Current:REG_DWORD: value.
  9. Double-click the following entry

    SetupExecute:REG_MULTI_SZ:Setupcl.exe

    remove the Setupcl.exe entry, and then click OK.
  10. Go to the HEY_LOCAL_MACHINE\Test\Setup registry key, and then change the following registry entries from 0x1 to have a value of 0 (zero):

    MiniSetupInProgress:REG_DWORD:0
    SetupType:REG_DWORD:0
    SystemSetupInProgress:REG_DWORD:0

  11. Double-click the following entry

    Cmdline:REG_SZ:setup -newsetup -Mini

    and remove only the -Mini entry.
  12. After you make the necessary changes, click the HKEY_LOCAL_MACHINE\Test registry key, and then on the Registry menu, click Unload Hive.
  13. Exit Registry Editor, and then restart Recovery Console.
  14. Navigate to the %SystemRoot%\system32\Config folder, rename the System file to System.erd, and then rename the System.mini file to System.
  15. Exit Recovery Console, and then reboot into the original operating system.
The computer should now be back to its original state, as it was prior to running the Sysprep or Riprep utility with the following exceptions:
  • Sysprep adds approximately 4 MB to the registry quota each time it runs without completing successfully. Verify that the Maximum Registry Size value meets the needs 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.
  • Two device path registry entries may have been adjusted. If either "OemPnPDriversPath=" or "InstallFilesPath=" were specified in the Sysprep.inf file, you must remove the entries that Sysprep added from the registry entries:
    • If OemPnPDriversPath= was used in Sysprep.inf, remove entries that were added to the the following default entry:

      HKLM\Software\Microsoft\Windows\CurrentVersion\DevicePath:REG_EXPAND_SZ:%SystemRoot%\inf

    • If InstallFilesPath= was used in Sysprep.inf, remove entries that were added to the the following default entry

      HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath:REG_SZ:CD_ROM:

      where CD_ROM is the local CD-ROM drive letter.

Modification Type:MinorLast Reviewed:1/27/2006
Keywords:kbhowto KB287506