Announcement

Collapse
No announcement yet.

The "Fatal error during the execution of Sysprep" error witch Unattend.xml file

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • The "Fatal error during the execution of Sysprep" error witch Unattend.xml file

    Hi

    I have Windows 7 SP1 64-bit in Audit mode and I put the Unattend.xml file

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-Licensing-SLC" processorArchitecture="x64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipRearm>1</SkipRearm>
            </component>
           <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="x64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
              <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
           </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <CopyProfile>true</CopyProfile>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </Unattend>
    in the c:\windows\panther directory.

    Then, I opened the Command Prompt in the c:\windows\system32\sysprep directory, I wrote the sysprep /generalize /oobe /reboot command.

    At this point, the error "Fatal error during the execution of Sysprep" is displayed.

    In the C:\Windows\System32\sysprep\Panther directory, I found the setupact.log file with this content:

    Code:
    2012-09-19 10:08:16, Info                  SYSPRP ========================================================
    2012-09-19 10:08:16, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
    2012-09-19 10:08:16, Info                  SYSPRP ========================================================
    2012-09-19 10:08:16, Info       [0x0f004d] SYSPRP The time is now 2012-09-19 10:08:16
    2012-09-19 10:08:16, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\sysprep\Panther
    2012-09-19 10:08:16, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
    2012-09-19 10:08:16, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2012-09-19 10:08:17, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
    2012-09-19 10:08:17, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
    2012-09-19 10:08:17, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'REBOOT'
    2012-09-19 10:08:17, Info       [0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread
    2012-09-19 10:08:17, Error                        [sysprep.exe] UnattendSearchExplicitPath: Found unattend file at [C:\Windows\Panther\unattend.xml] but unable to deserialize it; status = 0x80073714, hrResult = 0x0.
    2012-09-19 10:08:17, Error      [0x0f009e] SYSPRP SysprepSearchForUnattend: Failed while searching for unattend file; hr = 0x80073714
    2012-09-19 10:08:17, Error      [0x0f00a5] SYSPRP WinMain:Encountered error while searching for unattend file; hr = 0x80073714
    2012-09-19 10:08:18, Info       [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
    2012-09-19 10:08:18, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
    2012-09-19 10:08:18, Info       [0x0f004d] SYSPRP The time is now 2012-09-19 10:08:18
    and I found the setuperr.log file with this content:

    Code:
    2012-09-19 10:08:17, Error                        [sysprep.exe] UnattendSearchExplicitPath: Found unattend file at [C:\Windows\Panther\unattend.xml] but unable to deserialize it; status = 0x80073714, hrResult = 0x0.
    2012-09-19 10:08:17, Error      [0x0f009e] SYSPRP SysprepSearchForUnattend: Failed while searching for unattend file; hr = 0x80073714
    2012-09-19 10:08:17, Error      [0x0f00a5] SYSPRP WinMain:Encountered error while searching for unattend file; hr = 0x80073714
    So, as I do to fix this?

    Thanks

    Bye
    Last edited by balubeto; 19th September 2012, 09:33.
    balubeto

  • #2
    Re: The &quot;Fatal error during the execution of Sysprep&quot; error witch Unattend.xml file

    I was wrong encoding to save: I used Unicode encoding instead of UTF-8.

    Now, the error:

    Could not parse or process the answer file for unattended installation [C:\Windows\Panther\unattend.xml]. The answer file is not valid. Error detected at line 17, column 1 of the answer file.

    is displayed. Why is that?

    Thanks

    Bye
    balubeto

    Comment


    • #3
      Re: The &quot;Fatal error during the execution of Sysprep&quot; error witch Unattend.xml file

      The answer file should be placed in the sysprep directory which is usually C:\Windows\System 32\Sysprep. Alternatively, you can have the answer file in any other folder / file location but you will need to specify the path when you run the sysprep command. Example: sysprep /generalize /oobe /reboot /unattend:c:\unattend.xml

      The bold part of the above command is where you would specify the location of your unattend file. Next, you will likely want to validate your unattend file using the Windows System Image Manager which is a free tool included with the Windows Automated Installation Kit (Windows AIK) available for download here.

      There is a great Windows 7 Walkthrough Video from the Springboard Series for Windows Client on TechNet here. It might not be a bad idea to watch that and become more familiar with the sysprep and capture process.

      Depending on what your ultimate goal with imaging and deployment is, you might also want to consider using the Microsoft Deployment Toolkit (MDT). MDT acts as a common console that combines all deployment tasks into an easy to use interface. MDT allows you to take a base image, import it into the Deployment Share folder, add applications and drivers, and then create task sequence to control what specifically you need done.

      Some great introductory videos to understanding just how powerful and simultaneously simple MDT can be are:

      Deployment Day Session 1: Introduction to MDT 2012
      Deployment Day Session 2: MDT 2012 Advanced

      If you are using Windows Server 2003, Windows Server 2008 or Windows Server 2008R2, you might also find using Windows Deployment Services (WDS) to be helpful as well. Should you decide you do want to use WDS in conjunction with MDT, check out the Deployment Day Session 3: Deployment using WDS video.

      Jessica
      Windows Outreach Team IT Pro

      Comment

      Working...
      X