Skip to main content
Images - ReArm Windows for additional sysprep
F
Written by Fegeins Louis
Updated over 4 months ago

Windows Server 20XX cannot be rearmed more than three (3) times. This means that you can run Sysprep on the same image only 3 times. If you try to run sysprep more than 3 times, the "Setuperr.log" file located in the C:\Windows\System32\Sysprep\Panther\ folder contains the following:


"Date Time, Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 31"

In order to allow the image to be syspreped more than 3 times, most likely when cloning the image, you will need to perform the following steps:

  1. MODIFY SYSPREPSTATUS, CLEANUPSTATE & SKIPREARM REGISTRY VALUES

    1. Open Windows Registry Editor. To do that:

      1. Press “Windows” + “R” keys to load the Run dialog box.

      2. Type “regedit” and press Enter.

    2. MODIFY SYSPREPSTATUS

      1. Inside Windows Registry, navigate (from the left pane) to this key:

      2. HKEY_LOCAL_MACHINE\System\Setup\Status\SysprepStatus

      3. At the right pane change the CleanupState value to 2 and click OK.

      4. Change the GeneralizationState value to 7 and click OK.

    3. SKIPREARM REGISTRY VALUES

      1. At the left pane navigate to the following key:

      2. HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform

      3. At the right pane, change the SkipRearm value to 1.

    4. Close Registry Editor.

  2. UNINSTALL AND THEN RE-INSTALL THE MDSTC SERVICE (MICROSOFT DISTRIBUTED TRANSACTION COORDINATOR)

    1. 1.Right-click at the screen's bottom-left corner (Start menu) and from the pop-up menu, choose “Command Prompt (Admin)”.

      1. In command prompt window type the following command and press Enter to uninstall the MSDTC service:

        1. msdtc –uninstall
      2. Then re-install the MSDTC service by typing the following command (and press Enter).

        1. msdtc –install
      3. Close command prompt.

  3. DELETE THE PANTHER FOLDER.

    1. Open Windows Explorer and navigate to C:\Windows\System32\sysprep\ folder.

    2. Delete (or Rename) the Panther folder.

Once the above steps have been followed, in the itopia Work Anywhere management console, go back to the failed image process notification and hit the retry button, the imaging process should now complete and set the status of the image to Ready.

Did this answer your question?