Sysprep SkipRearm = 1

Hi,
MY CURRENT SITUATION: I have setup a reference machine running Windows 7 with all drivers and software installed and configured correctly.
I then Sysprep my reference PC (I have previous experience of Sysprep in Windows 2000 and XP environments) and have created a unattended answer file in System Image Manager (SIM) and run the following command:
sysprep /generalize /oobe /shutdown /unattend:e:\sysprep.xml
The system goes through the Sysprep process and shuts down. I then boot into Symantec Ghost 11.5 and take an image of the machine which I can then GhostCast my other PCs. On the first boot the machines go through the Sysprep process and only asks
for a PC name to be entered, which is just what I wanted.
NOW THE PROBLEM: I can only run Sysprep on the reference machine 3 times and this is a big problem. However if I alter the unattended answer file and add
SkipRearm=1 to the generalize section I can Sysprep the machine as many times as I like.
MY QUESTION: What does this SkipRearm setting do? What consequences will it have? Will I have more problems later?
Thanks for looking!
Best wishes,
Matt Courtman, UK

SkipRearm prevents the device SID from changing when the system reboots. It also prevents the rearm counter from decreasing.
In general you can image a bunch of machines with the same SID but it can cause problems where the machine SID (basically a serial number intended to uniquely identify a computer) is used to authorize access to something from Active Directory.
I believe it works like this: you install access to some service in Active Directory for machine #1, but because it is sharing the same machine SID with a bunch of other machines, you've now also inadvertently given all those machines access to the same
resource whether you wanted them to all have access or not.
Also if you routinely image all machines with SkipRearm enabled, and then you eventually switch from MAK to KMS down the road, when computers with the same SID try to register with KMS, the licensing server sees all registration attempts as coming from a
single source, so 50 machines with the same SID look like 1 machine to KMS.
Since you need at least 25 individual computers to get KMS to work correctly, all these machines won't go towards that activation count, unless you in-place re-sysprep them with SkipRearm disabled to give them unique SIDs. (Yeah, I learned this the hard
way..)
You don't ever need to mess with enabling skiprearm if you use KMS activation. Using the generic KMS client activation keys, the rearm count changes from 5 or 4 or whatever to 1. After sysprep it goes down to zero, but when the KMS client sees the KMS server
after rebooting and setting up again, it will join and the rearm count jumps back up to 1 again.
The rearm count jumping around with KMS client keys is poorly documented and not really explained anywhere, and I only figured it out after repeatedly doing slmgr /dlv while switching from MAK to KMS, and rechecking it again before and after activation after
sysprepping in KMS with skiprearm disabled.
In essence by buying into Microsoft Volume Licensing with KMS, you get the ability to use Vista, 7, 8, etc as if they were like XP, allowing unlimited syspreps and re-re-re-re-imaging.
For the people who say "build a clean image every time", yeah sure whatever guys. Like I have a day or more to kill waiting for the Windows 7 2010 RTM to download and install 2 gigabytes of Windows/Microsoft updates from the last five years and
reboot itself 20 times to apply all those updates, every time I just want to change a few things in the deployment image.
It's FAR simpler to just load up the source image every couple months, update Adobe Reader, Flash, Firefox, Chrome, Java, and apply the next 50 new Windows updates in the last 6 months, then resysprep it, and upload it back to WDS again. This takes about
1/10th the time vs building the source image from scratch every time.
The whole Microsoft reasoning behind the 5 rearm count is apparently just to create grief for the people who try to steal Windows, and use the same image to move Windows from one computer to the next.
Use of skiprearm to apply updates to a source image that you keep reusing as a Master Image and hold it forever at rearm 3 or so, is sort of an obscure back door thing which nobody is really supposed to be doing, and seems the reasoning that the official
line from Microsoft employees is to try to cajole you into "making a clean image every time".
This is also apparently why skiprearm is a poorly documented option buried in the special XML options for sysprep, is not directly a command line switch for sysprep itself, and why actually learning about it has to come from the forums and people like me
who've suffered through it the last 5 years, rather than the actual product documentation.
And here I am with a storebought Lenovo ThinkPad which came with Windows 7 Professional Retail preinstalled and a rearm count of 2. I simply want to make a backup copy of it to WDS so that if it crashes and burns I can quickly get it up and running again.
WDS deduplicates all the files in images, so it's very efficient to upload a backup of it into WDS, but I cannot do the WDS image upload unless it has been sysprepped, and I don't want to burn up those 2 remaining rearms.
So it seems that creating a tiny XML with skiprearm in it so I can temporarily sysprep and upload it, seems my only option.
(Thanks for making this process annoyingly difficult just to try to make life miserable for pirates, Microsoft.)

Similar Messages

  • Sysprep unattend file not applying when image is captured with wds (no errors)

    So I've been around the block a bit using sysprep and wds.  Recently I've created a reference image with a virtualbox environment using windows 7 x64. I was succesfully able to create a reference image, sysprep it and capture it to the wds server. My
    plan there after was to create driver specific images for each model computer we use here after not having much success using the driver store (another story)
    Any how So I take my reference image and deploy it to a new computer... In this case an HP Probook 5310m.  Install any missing drivers and Sysprep it with the following command.  sysprep /generalize /oobe /unattend:unattend.xml /shutdown
    Below is the sysprep file I have been using
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" 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>0</SkipRearm>
            </component>
            <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>
                <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipAutoActivation>true</SkipAutoActivation>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ShowWindowsLive>false</ShowWindowsLive>
                <TimeZone>Eastern Standard Time</TimeZone>
                <CopyProfile>true</CopyProfile>
                <ProductKey>74fdj-7dtw8-q9mp9-ypth8-qb27y</ProductKey>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <OEMInformation>
                    <Logo>c:\windows\system32\oemlogo.bmp</Logo>
                    <SupportHours>Regular Business Hrs (Overnight Support Provided)</SupportHours>
                    <SupportURL>url</SupportURL>
                    <SupportPhone>Phone number</SupportPhone>
                </OEMInformation>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>1</ProtectYourPC>
                    <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
                </OOBE>
                <UserAccounts>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TAAxAEQAMwBzAHQAcgBpACEAUABhAHMAcwB3AG8AcgBkAA==</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Description>Local Administrator</Description>
                            <DisplayName>Root</DisplayName>
                            <Group>Administrators</Group>
                            <Name>Root</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <TimeZone>Eastern Standard Time</TimeZone>
                <ShowWindowsLive>false</ShowWindowsLive>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <CommandLine>slmgr.vbs /ipk {serial key}</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <CommandLine>slmgr.vbs /ato</CommandLine>
                    </SynchronousCommand>
                </FirstLogonCommands>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>en-US</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UILanguageFallback>en-US</UILanguageFallback>
                <UserLocale>en-US</UserLocale>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog:v:/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    The machine succesfully syspreps and shuts down. I restart the computer pxe boot and capture the image succesfully.
    Now here comes my problem...
    Upon deploying the above driver specific image.. my sysprep file is not applied.  Nothing from the OOBE wizard answers to the pc logo , or first logon commands are applied ... nothing.. I have gotten no errors during this whole process.  I have
    started to try to read the logs within the panther folder but havent gotten far.
    What is weird to me is that I have tried recreating this image... deploy the reference image... add drivers ... sysprep ...shutdown.  And if I boot normally (without capturing the image) the computer shows all of the sysprep changes..  Only when
    i capture the image does it not apply the changes....
    I'm stumped...
    Any ides?

    Confirm this scenario: You installed Windows, then ran sysprep and used the /unattend switch. Then you captured the image.
    In this scenario there are 2 deployment methods.
    1. If you deploy the image with DISM, the answer file generated by sysprep is detected on first boot and settings are applied. It is the same function as if you ran sysprep and chose to restart.
    2. If you deploy the image using Setup.exe, it does not use the answer file specified by sysprep prior to capturing. I have not looked into *why* this happens, but I suspect that after the image is applied, it replaces the unattend.xml with the generic one.
    If you are using Setup.exe, you need to use its /unattend switch and point to the answer file location. This location cannot be inside of the image. If you are not using setup.exe in a manual method (using WDS) you will need to apply the answer file to the
    install image in the WDS snap-in.

  • How many times can Windows 7 be syspreped, what is the official Answer?

    Hey everyone, can somebody out there give me the straight answer on this?  What is the official number windows 7 can be syspreped?  I am looking to build my reference images, but every time I do this I have to 150+ updates each time.  Can
    I get way with just updating the reference image every time?  I have heard there is a Max number of times you can do this before you have to rebuild.  
    We are running WIndows 7 Enterprise with KMS.
    Also will this apply to 8.1?
    Thanks

    Hi,
    Sysprep limitations are due to the windows activation process.
    There is no limit to the number of times that the Sysprep command can run on a computer. However, the clock for Windows Product Activation begins its countdown the first time Windows starts. You can use the sysprep /generalize command to reset Windows Product
    Activation a maximum of three times. After the third time that you run the sysprep /generalize command, the clock can no longer be reset.
    Assuming you are using a KMS: We recommend that KMS clients use the sysprep /generalize command where the value of the SkipRearm setting is equal to 1. After capturing this image, use the sysprep /generalize command, where the value of the SkipRearm setting
    is equal to 0.
    Karen Hu
    TechNet Community Support

  • Windows Server 2008: Sysprep Error: Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 32[gle=0x00000020]

    I have a base template (which has never been sysprep'd) from which I create linked clones.  After the linked clone comes up, I run the following command:
    c:\windows\system32\sysprep\sysprep.exe /generalize /oobe /reboot /unattend:c:\windows\panther\unattend.xml
    This works fine for the first few linked clones, but after about 3-4 linked clones are running, I start to hit "A fatal error occurred while trying to sysprep the machine."
    ****c:\windows\panther\setuperr.log****
    2013-03-29 16:40:07, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 32[gle=0x00000020]
    2013-03-29 16:40:07, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070020[gle=0x00000020]
    ****c:\windows\panther\unattend.xml****
    <?xml version='1.0' encoding='utf-8'?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>en-US</InputLocale>
                <SystemLocale>en-US</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UILanguageFallback>en-US</UILanguageFallback>
                <UserLocale>en-US</UserLocale>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
                    <Enabled>true</Enabled>
                    <Username>Administrator</Username>
                    <Password>
                        <Value>ca$hc0w</Value>
                        <PlainText>true</PlainText>
                    </Password>
                </AutoLogon>
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>ca$hc0w</Value>
                        <PlainText>true</PlainText>
                    </AdministratorPassword>
                </UserAccounts>
                <TimeZone>Pacific Standard Time</TimeZone>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ProductKey>7M67G-PC374-GR742-YH8V4-TCBY3</ProductKey>
                <ComputerName>*</ComputerName>
            </component>
        </settings>
    </unattend>
    ****c:\windows\panther\setupact.log****
    2013-03-29 16:40:07, Info       [0x0f004d] SYSPRP The time is now 2013-03-29 16:40:07
    2013-03-29 16:40:07, Info       [0x0f004e] SYSPRP Initialized SysPrep log at c:\windows\system32\sysprep\Panther
    2013-03-29 16:40:07, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
    2013-03-29 16:40:07, Info       [0x0f0056] SYSPRP ValidateVersion:OS version is okay
    2013-03-29 16:40:07, Info       [0x0f005e] SYSPRP ScreenSaver:Screen saver was already disabled, no need to disable it for sysprep
    2013-03-29 16:40:07, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file c:\windows\system32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2013-03-29 16:40:07, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
    2013-03-29 16:40:07, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
    2013-03-29 16:40:07, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'REBOOT'
    2013-03-29 16:40:07, Info       [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
    2013-03-29 16:40:07, Info       [0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread
    2013-03-29 16:40:07, Info                         [sysprep.exe] UnattendFindAnswerFile: Looking at explicitly provided unattend file [c:\windows\panther\unattend.xml]...
    2013-03-29 16:40:07, Info                         [sysprep.exe] UnattendFindAnswerFile: [c:\windows\panther\unattend.xml] meets criteria
    for an explicitly provided unattend file.
    2013-03-29 16:40:07, Info                  SYSPRP SysprepSearchForUnattend: Using unattend file at [c:\windows\panther\unattend.xml].
    2013-03-29 16:40:07, Info                  SYSPRP SysprepSearchForUnattend: [generalize] pass in unattend file [c:\windows\panther\unattend.xml] either doesn't exist or passed
    validation
    2013-03-29 16:40:07, Info                  SYSPRP WinMain:Found unattend file at [c:\windows\panther\unattend.xml]; caching...
    2013-03-29 16:40:07, Info                  SYSPRP WinMain:Processing unattend file's 'generalize' pass...
    2013-03-29 16:40:07, Info                  SYSPRP Sysprep is running a generalize pass with the following unattend file: [%windir%\panther\unattend.xml]
    2013-03-29 16:40:07, Info                  SYSPRP RunUnattendGeneralizePass: Sysprep unattend generalize pass exits; hr = 0x0, hrResult = 0x0, bRebootRequired = 0x0
    2013-03-29 16:40:07, Info       [0x0f003f] SYSPRP WinMain:Processing 'cleanup' request.
    2013-03-29 16:40:07, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 32[gle=0x00000020]
    2013-03-29 16:40:07, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070020[gle=0x00000020]
    2013-03-29 16:48:52, Info       [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
    2013-03-29 16:48:52, Info       [0x0f0059] SYSPRP ScreenSaver:Screen saver was originally disabled, leaving it disabled
    2013-03-29 16:48:52, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
    2013-03-29 16:48:52, Info       [0x0f004d] SYSPRP The time is now 2013-03-29 16:48:52

    Hi,
    This is typical of an OEM license issue.
    To avoid this in the future you should look at site/volume licensing.
    Anyway.
    so, first check if you can re-arm by runing the
    slmgr.vbs /dlv and check the re-arm counter, if it set to zero.. you need to do the following :
    http://support.microsoft.com/kb/929828 (set the <SkipRearm>1</SkipRearm> like in the example, note: this option will make the product key window to appear in the setup process).
    you can also try running : slmgr.vbs -rearm, to rearm Windows.
    after that, let's come back to the sysprep process.. for syspreping already syspreped machine we have to change few keys in the registry :
    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\
    CleanupState:2
    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\
    GeneralizationState:7
    After done with the registry, do the following :
    Start -> Run : msdtc -uninstall (wait few seconds)
    Start -> Run : msdtc -install (wait few seconds)
    Restart the machine
    Check the registry for the right registry keys values
    sysprep with the new XML answerfile.
    Source: Olegm
    If you find my information useful, please rate it. :-)

  • Sysprep - Fatal error occurred while trying to sysprep the machine

    On the 4th attempt to sysprep a Windows 7 Enterprise system, I get the dreaded, 'A fatal error occurred while trying to sysprep the machine.' 
    The setuperr.log shows:
    2010-08-04 13:57:58, 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
    2010-08-04 13:57:58, Error      [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f
    I've seen articles referring to the Windows Software Licensing Rearm program may have issues running more than three times in a single Windows image and to add <SkipRearm>1</SkipRearm> in the /unattend file...  but this did not help. 
    The Windows Media Player Network Sharing Service has also been disabled which is often referred to in other posts.
    The KB article: http://support.microsoft.com/kb/947212/en-us indicated that the resolution is to re-create the image for the machine... This is very frustrating. I'm hoping that there is
    a better resolution???
    How do you sysprep a machine more than three times to avoid this error?
    Thanks!! 
    930193

    I had a problem Where Runing slmgr /dlv returned 0 and could not sysprep a
    32 bit Win 7 Installed on C:drive
    Here is what I did to succeed whit Sysprep.
    Disable UAC
    Based on
    This :
    open notepad and copy paste the following:
    @ECHO OFF
    setLocal Enabledelayedexpansion
    for %%d in (c d e f g h i j k l m n o p q r s t u v w x y z) do (
      if exist %%d:\windows\system32 (
         SET drv1=%%d:\windows\system32
        reg load HKLM\MY_SYSTEM !drv1!
        reg delete HKLM\MY_SYSTEM\WPA /f
        reg unload HKLM\MY_SYSTEM
        GOTO END
    :END
    ECHO Done, Rebooting system...
    timeout 3
    wpeutil reboot
    Then in notepad chose file>save as, in File Type select "All Files", name it "c:\reset.bat"
    Reboot Your Pc, after bios screen press F8, Select "Repair Your Computer", select your keyboard layout, enter your credentials if needed,
    then select the last option "Open Command Prompt"
    type "c:\reset.bat" or "d:\reset.bat" (Sometimes Your Windows Partition get a different letter on the repair environment)
    Back on Windows follow step five if needed.
    Check under slmgr /dlv you have more than 0 under "Remaining Windows Rearm count"
    Download pstools.zip from
    here, extract content an copy psexec.exe to %windir%\System32
    run psexec.exe and accept the license agreement so it won't bother when running afterwards, close it.
    open notepad and copy paste the following:
    @ECHO OFF
    echo Stopping Windows Media Player Sharing Service..
    echo.
    net stop wmpnetworksvc
    echo.
    echo Deleting Old Sysprep Logs...
    echo.
    del /f /s /q %windir%\System32\sysprep\panther\*.*
    echo.
    echo Adding Required Sysprep Registry Keys...
    echo.
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v SkipRearm /t REG_DWORD /d 00000001 /f
    REG ADD HKLM\SYSTEM\Setup\Status\SysprepStatus /v GeneralizationState /t REG_DWORD /d 00000007 /f
    REG ADD HKLM\SYSTEM\Setup\Status\SysprepStatus /v CleanupState /t REG_DWORD /d 00000002 /f
    psexec -i -s REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Cleanup /v "{EC9FE15D-99DD-4FB9-90D5-5B56E42A0F80}" /t REG_SZ /d "C:\\Windows\\System32\\iesysprep.dll,Sysprep_Cleanup_IE" /f
    psexec -i -s REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Generalize /v "{EC9FE15D-99DD-4FB9-90D5-CE53C91AB9A1}" /t REG_SZ /d "C:\\Windows\\System32\\iesysprep.dll,Sysprep_Cleanup_IE" /f
    psexec -i -s REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Specialize /v "{EC9FE15D-99DD-4FB9-90D5-676C338DC1DA}" /t REG_SZ /d "C:\\Windows\\System32\\iesysprep.dll,Sysprep_Cleanup_IE" /f
    echo.
    echo Uninstalling MSDTC...
    echo.
    msdtc -uninstall
    timeout 10
    echo.
    echo Reinstalling MSDTC...
    echo.
    msdtc -install
    timeout 10
    echo.
    echo Cross Your Fingers, Finally Running Sysprep...
    echo.
    %windir%\System32\sysprep\sysprep /generalize /oobe /shutdown /unattend:unattend.xml
    Change Last Line to suit your needs, ie: if you are not using an unnattend answer file, then delete /unattend:unattend.xml"
    Then in notepad chose file>save as, in File Type select "All Files", name it "%windir%\System32\do.cmd"
    if you use an unattend.xml file copy it to %windir%\System32\sysprep folder.
    Once you are ready run %windir%\System32\do.cmd
    Hope it helps,

  • Error during sysprep

    Hi guys,
    I am trying to make a 64-bit win7 image, but for some reason when I run sysprep I get this error "sysprep a fatal error occurred while trying to sysprep the machine". I have checked my unattend.xml file and all seems fine. I have pasted the sysprep log file below as well as my unattend.xml file. Any help would be much appreciated. Thanks!
    setuperr.log file
    Code:
    2014-02-06 09:38:52, Error [0x0f0043] SYSPRP WinMain:The sysprep dialog box returned FALSE2014-02-06 11:12:12, Error [0x0f0043] SYSPRP WinMain:The sysprep dialog box returned FALSE
    2014-02-07 11:41:15, Error [0x0f0043] SYSPRP WinMain:The sysprep dialog box returned FALSE
    2014-02-10 06:44:28, Error [0x0f0043] SYSPRP WinMain:The sysprep dialog box returned FALSE
    2014-02-10 08:15:43, Error [0x0f0060] SYSPRP ParseCommands:Found unsupported command line option '/?'[gle=0x000036b7]
    2014-02-10 08:15:43, Error [0x0f00a4] SYSPRP WinMain: Unable to parse command-line arguments to sysprep; GLE = 0x36b7[gle=0x000036b7]
    2014-02-10 08:32:48, Error [0x0f0082] SYSPRP LaunchDll:Failure occurred while executing 'drmv2clt.dll,Sysprep', returned error code -2147024864[gle=0x00000020]
    2014-02-10 08:32:48, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = -2147024864[gle=0x00000020]
    2014-02-10 08:32:48, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80070020[gle=0x00000020]
    unattend.xml file
    Code:
    <unattend xmlns="urn:schemas-microsoft-com:unattend"><servicing>
    <package action="configure">
    <assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.1.7600.16385" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language=""/>
    <selection name="MediaCenter" state="false"/>
    <selection name="WindowsGadgetPlatform" state="false"/>
    </package>
    </servicing>
    <settings pass="specialize">
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Deployment" processorArchitecture="amd64"publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
    <RunSynchronous>
    <RunSynchronousCommand wcm:action="add">
    <Order>1</Order>
    <Path>Net user administrator /active:yes</Path>
    </RunSynchronousCommand>
    </RunSynchronous>
    </component>
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-IE-InternetExplorer"processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
    <BlockPopups>no</BlockPopups>
    <CompanyName>Lifespace Communities</CompanyName>
    <DisableFirstRunWizard>true</DisableFirstRunWizard>
    <DisableDevTools>true</DisableDevTools>
    <Home_Page>www.lifespacecommunities.com</Home_Page>
    <LockToolbars>true</LockToolbars>
    <NoDial>true</NoDial>
    <SuggestedSitesEnabled>false</SuggestedSitesEnabled>
    <DisableOOBAccelerators>true</DisableOOBAccelerators>
    </component>
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup"processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
    <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
    <ComputerName/>
    <CopyProfile>true</CopyProfile>
    <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
    <ProductKey>*****************</ProductKey>
    <RegisteredOrganization>Lifespace Communities</RegisteredOrganization>
    <RegisteredOwner>Lifespace</RegisteredOwner>
    <ShowWindowsLive>false</ShowWindowsLive>
    <TimeZone>Central Standard Time</TimeZone>
    <StartPanelOff>true</StartPanelOff>
    </component>
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-UnattendedJoin"processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
    <Identification>
    <JoinWorkgroup>LIFESPACE</JoinWorkgroup>
    </Identification>
    </component>
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Security-Malware-Windows-Defender"processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
    <DisableAntiSpyware>true</DisableAntiSpyware>
    </component>
    </settings>
    <settings pass="offlineServicing">
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-LUA-Settings"processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
    <EnableLUA>false</EnableLUA>
    </component>
    </settings>
    <settings pass="generalize">
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Security-SPP"processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
    <SkipRearm>1</SkipRearm>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core"processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
    <InputLocale>en-us</InputLocale>
    <SystemLocale>en-us</SystemLocale>
    <UILanguage>en-us</UILanguage>
    <UILanguageFallback>en-us</UILanguageFallback>
    <UserLocale>en-us</UserLocale>
    </component>
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup"processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
    <AutoLogon>
    <Password>
    <Value>
    </Value>
    <PlainText>false</PlainText>
    </Password>
    <Enabled>true</Enabled>
    <LogonCount>3</LogonCount>
    <Username>administrator</Username>
    </AutoLogon>
    <Display>
    <ColorDepth>32</ColorDepth>
    <HorizontalResolution>1024</HorizontalResolution>
    <RefreshRate>60</RefreshRate>
    <VerticalResolution>768</VerticalResolution>
    </Display>
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cscript //b C:\Windows\system32\slmgr.vbs /ipk</CommandLine>
    <Order>1</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <CommandLine>
    %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "&{set-executionpolicy RemoteSigned -Force}"
    </CommandLine>
    <Order>2</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <CommandLine>C:\Windows\OEM\SETUP\Drivers\DPINST64.exe /q</CommandLine>
    <Order>3</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <CommandLine>
    %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe "C:\Windows\OEM\SETUP\Win7Image-Script1.ps1"
    </CommandLine>
    <Order>4</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    </FirstLogonCommands>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <NetworkLocation>Home</NetworkLocation>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <ProtectYourPC>3</ProtectYourPC>
    </OOBE>
    <UserAccounts>
    <AdministratorPassword>
    <Value>
    </Value>
    <PlainText>false</PlainText>
    </AdministratorPassword>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>
    </Value>
    <PlainText>false</PlainText>
    </Password>
    <Description>administrator</Description>
    <DisplayName>administrator</DisplayName>
    <Group>administrators</Group>
    <Name>administrator</Name>
    </LocalAccount>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>
    </Value>
    <PlainText>false</PlainText>
    </Password>
    <Description>presentation</Description>
    <DisplayName>presentation</DisplayName>
    <Group>administrators</Group>
    <Name>presentation</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <VisualEffects>
    <FontSmoothing>On</FontSmoothing>
    </VisualEffects>
    <WindowsFeatures>
    <ShowMediaCenter>false</ShowMediaCenter>
    <ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>
    <ShowInternetExplorer>true</ShowInternetExplorer>
    </WindowsFeatures>
    <RegisteredOrganization/>
    <RegisteredOwner/>
    </component>
    <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Sidebar" processorArchitecture="amd64"publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
    <SidebarOnByDefault>false</SidebarOnByDefault>
    <SidebarVisible>false</SidebarVisible>
    </component>
    </settings>
    <cpi:offlineImage xmlns:cpi="urn:schemas-microsoft-com:cpi" cpi:source="wim:p:/ot/win7%20imaging/add-on's%20and%20images/win7%2064-bit/sysprep/win7%20cd%20files/sources/install.wim#Windows 7 PROFESSIONAL"/>
    </unattend>

    AH HA!!!! I found the answer! For future issues, I found the answer in the link below. Long story short, Windows Media Player Network Sharing Service was causing sysprep to fail. Had to disable the service, ran sysprep again and all was happy happy. Leave it to Microcrap to break their own products. Thanks for the help Anders!! I really appreciate it!
    source:
    http://sidecar.twocanoes.com/forums/...atal-error-/p1
    4th post

  • Windows 7 and sysprep

    An annoyance.  I have a sysprep'd Windows 7 x64 Ghost image.  Prior to creating the image my setup workstation's computer name is set to "win7image".  My sysprep is configured so that all I have to do once I lay this image on another
    computer is to give the computer a name.
    Shortly after naming the computer, I am prompted to logon (for the first time).
    The login prompt is already populated with "win7image\MyAdmin"
    When I try to logon with the local MyAdmin account or any other account my sysprep has created, I get a message that the "The domain name is not valid.  Please try again."
    I am able to logon but I must use the syntax "computername\MyAdmin" which is annoying.  I would like to type only my local account name because we recently switched to a cumbersome naming convention that I loath to type.
    Is there something I am missing in my unattend.xml file?
    Thanks for any comments.
    Ed
    My unattend.xml
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="generalize">
    <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" 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>0</SkipRearm>
    </component>
    </settings>
    <settings pass="specialize">
    <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SkipAutoActivation>true</SkipAutoActivation>
    </component>
    <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <RunSynchronous>
    <RunSynchronousCommand wcm:action="add">
    <Path>net user MyAdmin /active:yes</Path>
    <Order>1</Order>
    </RunSynchronousCommand>
    </RunSynchronous>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ipk #####-#####-#####-#####-#####</CommandLine>
    <Order>1</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cscript //b c:\windows\system32\slmgr.vbs /ato</CommandLine>
    <Order>2</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <CommandLine>c:\somecommand.exe</CommandLine>
    <Description>Install Something</Description>
    <Order>3</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    </FirstLogonCommands>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>1</ProtectYourPC>
    </OOBE>
    <UserAccounts>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>EncryptedPassword</Value>
    <PlainText>false</PlainText>
    </Password>
    <Description>AltAdmin&apos; Standard Local Admin Account</Description>
    <DisplayName>altadmin</DisplayName>
    <Group>Administrators</Group>
    <Name>altadmin</Name>
    </LocalAccount>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>EncryptedPassword</Value>
    <PlainText>false</PlainText>
    </Password>
    <Description>Non Admin Guest Account</Description>
    <DisplayName>tseug</DisplayName>
    <Group>Users</Group>
    <Name>tseug</Name>
    </LocalAccount>
    <LocalAccount wcm:action="add">
    <Description>Administrator</Description>
    <DisplayName>MyAdmin</DisplayName>
    <Group>Administrators</Group>
    <Name>MyAdmin</Name>
    </LocalAccount>
    </LocalAccounts>
    <AdministratorPassword>
    <Value>EncryptedPassword</Value>
    <PlainText>false</PlainText>
    </AdministratorPassword>
    </UserAccounts>
    <RegisteredOrganization>State of Insanity</RegisteredOrganization>
    <RegisteredOwner>State of Insanity</RegisteredOwner>
    <Display>
    <ColorDepth>32</ColorDepth>
    <HorizontalResolution>1024</HorizontalResolution>
    <RefreshRate>60</RefreshRate>
    <VerticalResolution>768</VerticalResolution>
    </Display>
    <VisualEffects>
    <FontSmoothing>Standard</FontSmoothing>
    </VisualEffects>
    <TimeZone>Mountain Standard Time</TimeZone>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <InputLocale>en-us</InputLocale>
    <SystemLocale>en-us</SystemLocale>
    <UILanguage>en-us</UILanguage>
    <UserLocale>en-us</UserLocale>
    </component>
    </settings>
    <cpi:offlineImage cpi:source="catalog:f:/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    Hi,
    As far as I know, if computer is in domain, it will priority log on to domain. Please notice where it log on to when typing the username.
    Also, please verify the following group policy.
    Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Option -> disable "Interactive logon: Do not display last user name"
    After disabling this policy, the name of the last user to log on is displayed. If the issue persists, you can type with ".\MyAdmin" instead of full
    computer name.
    Best Regards,
    Niki
    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Windows 8.1 - Sysprep, CopyProfile and Default Applications

    Hello,
    I'm absolutely at the end of my rope with this one.
    My organization wants to deploy Windows 8.1 Professional to a small but not insignificant number of workstations. Due to a host of reasons beyond my control, higher ups have decided UAC needs to be off. I've got 8.1 Pro x64 installed on a Hyper-V VM, and
    I'm in audit mode working on creating an image.
    I remove all of the metro apps (do not work with UAC off), but the Photos app remains. Fine. So while in Audit Mode, I set the default image viewer to Windows Picture Viewer. I then customize the start screen, finish configurations and sysprep the computer
    with the sysprep file below.
    Once the process completes, the sysprep is successful and the machine reboots.
    Much to my dismay, it seems as though the CopyProfile doesn't work. The start screen reverts back to default with just 3 items (Metro IE, Explorer and Desktop) and that freaking stupid annoying unruly Photos app is the default picture viewer again.
    Please help! I've spent 3 weeks on technet and Google and just can't find anything.
    Thank you!
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="specialize">
    <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <RunSynchronous>
    <RunSynchronousCommand wcm:action="add">
    <Order>1</Order>
    <Path>net user administrator /active:yes</Path>
    </RunSynchronousCommand>
    </RunSynchronous>
    </component>
    <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SkipAutoActivation>true</SkipAutoActivation>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" 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>
    <RegisteredOrganization></RegisteredOrganization>
    <RegisteredOwner>Windows User</RegisteredOwner>
    <TimeZone>Pacific Standard Time</TimeZone>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <InputLocale>en-us</InputLocale>
    <SystemLocale>en-us</SystemLocale>
    <UILanguage>en-us</UILanguage>
    <UserLocale>en-us</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <AutoLogon>
    <Password>
    <Value>ADMIN PASSWORD</Value>
    <PlainText>false</PlainText>
    </Password>
    <Enabled>true</Enabled>
    <LogonCount>5</LogonCount>
    <Username>Administrator</Username>
    </AutoLogon>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <NetworkLocation>Work</NetworkLocation>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
    <HideLocalAccountScreen>true</HideLocalAccountScreen>
    <ProtectYourPC>1</ProtectYourPC>
    </OOBE>
    <UserAccounts>
    <AdministratorPassword>
    <Value>ADMIN PASSWORD</Value>
    <PlainText>false</PlainText>
    </AdministratorPassword>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>ADMIN PASSWORD</Value>
    <PlainText>false</PlainText>
    </Password>
    <Description>Local Administrator</Description>
    <DisplayName>Administrator</DisplayName>
    <Group>Administrators</Group>
    <Name>Administrator</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <RegisteredOrganization>MY ORGANIZATION</RegisteredOrganization>
    <RegisteredOwner>MY ORGANIZATION</RegisteredOwner>
    <TimeZone>Pacific Standard Time</TimeZone>
    </component>
    </settings>
    <settings pass="generalize">
    <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" 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>
    </settings>
    <cpi:offlineImage cpi:source="wim://wimimage.wim" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    After changing my search approach, I found a bit of a work around. Even though the CopyProfile doesn't seem to be working, I was able to eliminate the biggest problems by deleting the below registry keys, which removes Photos as the default App for pictures.
    reg delete HKCR\Microsoft.PhotoManager.imagetype /f
    reg delete HKCR\Microsoft.PhotoManager.panotype /f
    reg delete HKCR\Microsoft.PhotoManager.videotype /f
    That did it. Sure enough, all major picture filetypes now default to Picture Viewer.
    As for the metro IE icon that's created in the start screen for all new users, I created this batch file:
    :: Create Reg Entries
    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /f
    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "WIN-81FIX" /t REG_SZ /d "C:\Windows\deploy\WIN-81FIX.bat" /f
    start /wait reg load HKU\temphive "C:\Users\default\ntuser.dat"
    reg add HKU\temphive\Software\Microsoft\Windows\CurrentVersion\Run /f
    reg add HKU\temphive\Software\Microsoft\Windows\CurrentVersion\Run /v "WIN-81FIX" /t REG_SZ /d "C:\Windows\deploy\WIN-81FIX.bat" /f
    start /wait reg unload hku\temphive
    :: Create Batch File
    Echo IF EXIST "%userprofile%\appdata\Roaming\Microsoft\Windows\Start Menu\Programs\Internet Explorer.lnk" ( > "C:\Windows\deploy\WIN-81FIX.bat"
    Echo del /q /f "%userprofile%\appdata\Roaming\Microsoft\Windows\Start Menu\Programs\Internet Explorer.lnk" ) >> "C:\Windows\deploy\WIN-81FIX.bat"
    Echo reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v WIN-81FIX /f >> "C:\Windows\deploy\WIN-81FIX.bat"
    Echo shutdown -r -t 0 -f >> "C:\Windows\deploy\TDS-81FIX.bat"
    This creates a batch file for each user that deletes the metro IE shortcut in that users profile, then restarts the computer.
    Bit of a flimsy work around, but does the trick.

  • Sysprep and Windows 8.1 -- missing Metro apps after reboot?

    So, I'm trying to figure out an issue with Sysprep and a clean-install Windows 8.1 64 Enterprise system:
    When I sysprep the computer from my admin account with my unattend.xml file, when it reboots, I'm only getting 7 Metro apps at the start screen and
    14 Metro Apps at the "all apps" screen -- things like Weather, Maps, Calendar, Mail, etc are missing -- and actually look like they aren't installed
    as searching for something like "People" -- gives no results.
    From what I've been able to gather, the behavior of the start screen should controlled by an appsFolderLayout.bin file, but when I first set up the initial
    account (not "administrator", but the initial local admin account), that file does not exist anywhere.
    I've tried creating the file manually by running:
    Export-StartLayout -As Bin -Path C:\Temp\appsFolderLayout.bin
    and either putting it in \Users\<myadminaccount>\AppData\Local\Microsoft\Windows
    or \Users\Default\AppData\Local\Microsoft\Windows
    and sysprepping again (after restoring a snapshot to the pre-sysprep/post-clean install state), but this isn’t making any difference.
    When I run sysprep /generalize — the .bin file is deleted and replaced by some other default one — that I’m not sure where it is generated from.
    Does anybody have any suggestions here?    Windows 8.0 just worked with my unattend.xml file without having to mess with appsFolderLayout.bin, so I’m not sure what I’m missing.
    Thanks!

    If you are still having trouble, this is an outline of the full process I use that seems to be consistently producing good results:
    - Install Windows 8.1 Enterprise with autounattend.xml, in particular, blank administrator password, add user account test, auto-logon as Administrator, run "net user test /delete" immediately after logon to get back to just having the administrator account.
    There should be no reason why all that has to be done in autounattend.xml, but it is the way I do it. There are a few other mandatory settings if you want a fully-automated setup.
    - At this point in time the Administrator account only shows a few tiles on the start screen, all actions are performed using the Administrator account.
    - Run Schtasks.exe /change /disable /tn "\Microsoft\Windows\AppxDeploymentClient\Pre-staged app cleanup" before the task has had a chance to run.
    - Install all applications, updates and settings as you want.
    - Run Sysprep, in particular blank administrator password, add user account test, auto-logon as Administrator, run "net user test /delete" immediately after logon to get back to just having the administrator account. Also importantly we set CopyProfile to
    false under Microsoft-Windows-Shell-Setup specialize pass. I don't know because I haven't tried it, but I imagine that if you run this and copy the Administrator profile to the default user profile then the default user profile may be missing some apps. We
    do all customization of the default user profile explicitly by loading the registry hive and editing it directly.
    After the image is deployed the Admistrator account has all the standard tiles present, but two of them report errors (I think it is Music and Videos). Any other profiles have all tiles present and all apps work.
    The full sysprep XML is included below in case it is useful to anybody. The company-specific settings and passwords have been blanked out, but otherwise it is the full one we use and fairly generic apart from the Australian settings. Note that this one is
    for a 64-bit image.
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="generalize">
    <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" 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>0</SkipRearm>
    </component>
    </settings>
    <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ComputerName>*</ComputerName>
    <CopyProfile>false</CopyProfile>
    <ShowWindowsLive>false</ShowWindowsLive>
    <TimeZone>AUS Eastern Standard Time</TimeZone>
    </component>
    <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SkipAutoActivation>true</SkipAutoActivation>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>1</ProtectYourPC>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    </OOBE>
    <UserAccounts>
    <AdministratorPassword>
    <Value>XXXXXXXXXXXXXXXXXX</Value>
    <PlainText>false</PlainText>
    </AdministratorPassword>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>XXXXXXXXXXXXXXXX</Value>
    <PlainText>false</PlainText>
    </Password>
    <Description>Temp Account We have to Add because setup requires it</Description>
    <Name>temp</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <RegisteredOrganization>XXXXXX</RegisteredOrganization>
    <RegisteredOwner>XXXXXX</RegisteredOwner>
    <TimeZone>AUS Eastern Standard Time</TimeZone>
    <AutoLogon>
    <Password>
    <Value>XXXXXXXXXXXXXXXXXXX</Value>
    <PlainText>false</PlainText>
    </Password>
    <Domain>.</Domain>
    <Enabled>true</Enabled>
    <Username>Administrator</Username>
    <LogonCount>1</LogonCount>
    </AutoLogon>
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <CommandLine>net user temp /delete</CommandLine>
    <Description>Delete temp user account that we have to create</Description>
    <Order>1</Order>
    </SynchronousCommand>
    </FirstLogonCommands>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <InputLocale>en-US</InputLocale>
    <SystemLocale>en-AU</SystemLocale>
    <UILanguage>en-US</UILanguage>
    <UserLocale>en-AU</UserLocale>
    </component>
    </settings>
    </unattend>

  • Sysprep Error with windows 8.1

    I am Trying to sysprep my WIndows 8.1 enterprise (MSDN) and i get the following errors 
    2013-01-18 11:12:22, Info SYSPRP ========================================================
    2013-01-18 11:12:22, Info SYSPRP === Beginning of a new sysprep run ===
    2013-01-18 11:12:22, Info SYSPRP ========================================================
    2013-01-18 11:12:22, Info [0x0f004d] SYSPRP The time is now 2013-01-18 11:12:22
    2013-01-18 11:12:22, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2013-01-18 11:12:22, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
    2013-01-18 11:12:22, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2013-01-18 11:12:22, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
    2013-01-18 11:12:22, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
    2013-01-18 11:12:22, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
    2013-01-18 11:12:22, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
    2013-01-18 11:12:23, Info SYSPRP WinMain: CBS operations pending
    2013-01-18 11:15:55, Info [0x0f0052] SYSPRP Shutting down SysPrep log
    2013-01-18 11:15:55, Info [0x0f004d] SYSPRP The time is now 2013-01-18 11:15:55
    2013-01-24 17:54:22, Info SYSPRP ========================================================
    2013-01-24 17:54:22, Info SYSPRP === Beginning of a new sysprep run ===
    2013-01-24 17:54:22, Info SYSPRP ========================================================
    2013-01-24 17:54:22, Info [0x0f004d] SYSPRP The time is now 2013-01-24 17:54:22
    2013-01-24 17:54:22, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\system32\Sysprep\Panther
    2013-01-24 17:54:22, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
    2013-01-24 17:54:22, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\system32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2013-01-24 17:54:22, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'RESPECIALIZE'
    2013-01-24 17:54:22, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'QUIET'
    2013-01-24 17:54:22, Info SYSPRP WinMain:Processing 're-specialize' internal provider request.
    2013-01-24 17:54:22, Info SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 6
    2013-01-24 17:54:22, Info [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\ReSpecialize.xml, and mode <null>
    2013-01-24 17:54:23, Info SYSPRP SysprepSession::Execute: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\ReSpecialize.xml
    2013-01-24 17:54:23, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-01-24 17:54:23, Info SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-01-24 17:54:23, Warning SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
    2013-01-24 17:54:23, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2013-01-24 17:54:23, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2013-01-24 17:54:23, Info SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2013-01-24 17:54:23, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2013-01-24 17:54:23, Info [0x0f00bd] SYSPRP CreateSysprepActionList: Building action list for component Microsoft-Windows-PnpSysprep
    2013-01-24 17:54:24, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Respecialize_Pnp' in C:\Windows\System32\sppnp.dll; executing it
    2013-01-24 17:54:24, Info SYSPRP SPPNP: Sysprep_Respecialize_Pnp: Enter
    2013-01-24 17:54:24, Info SYSPRP SPPNP: Created progress thread.
    2013-01-24 17:54:24, Info SYSPRP SPPNP: Creating device install status thread...
    2013-01-24 17:54:24, Info SYSPRP SPPNP: Waiting for thread to exit...
    2013-01-24 17:54:24, Info SYSPRP SPPNP: Waiting for thread to exit.
    2013-01-24 17:54:43, Info SYSPRP SPPNP: Status: Starting...
    2013-01-24 17:54:43, Info SYSPRP SPPNP: Status: Total = 0, Complete = 0, Progress = 0% (0%)
    2013-01-24 17:54:43, Info SYSPRP SPPNP: Status: Active
    2013-01-24 17:54:43, Info SYSPRP SPPNP: Status: Total = 1, Complete = 0, Progress = 0% (0%)
    2013-01-24 17:54:49, Info SYSPRP SPPNP: Status: End
    2013-01-24 17:54:49, Info SYSPRP SPPNP: Status: Total = -1, Complete = -1, Progress = 100% (100%)
    2013-01-24 17:54:49, Info SYSPRP SPPNP: Finished waiting for device install status...
    2013-01-24 17:54:49, Info SYSPRP SPPNP: Thread exited.
    2013-01-24 17:54:49, Info SYSPRP SPPNP: Sysprep_Respecialize_Pnp: Exit
    2013-01-24 17:54:49, Info [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Respecialize_Pnp' from C:\Windows\System32\sppnp.dll without error
    2013-01-24 17:54:49, Info [0x0f00b8] SYSPRP SysprepSession::Execute: Sysprep mode was not specified, deleting it from registry
    2013-01-24 17:54:49, Info [0x0f00c6] SYSPRP ActionPlatform::DeleteValue: Deleting registry value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-01-24 17:54:49, Warning SYSPRP ActionPlatform::DeleteValue: Registry value SysprepMode to be deleted does not exist under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-01-24 17:54:49, Info [0x0f0052] SYSPRP Shutting down SysPrep log
    2013-01-24 17:54:49, Info [0x0f004d] SYSPRP The time is now 2013-01-24 17:54:49
    2013-06-13 17:23:46, Info SYSPRP ========================================================
    2013-06-13 17:23:46, Info SYSPRP === Beginning of a new sysprep run ===
    2013-06-13 17:23:46, Info SYSPRP ========================================================
    2013-06-13 17:23:46, Info [0x0f004d] SYSPRP The time is now 2013-06-13 17:23:46
    2013-06-13 17:23:46, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2013-06-13 17:23:46, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
    2013-06-13 17:23:46, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2013-06-13 17:23:46, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
    2013-06-13 17:23:46, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
    2013-06-13 17:23:46, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
    2013-06-13 17:23:46, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
    2013-06-13 17:23:50, Info SYSPRP WinMain: CBS operations pending
    2013-06-13 17:23:59, Info [0x0f0052] SYSPRP Shutting down SysPrep log
    2013-06-13 17:23:59, Info [0x0f004d] SYSPRP The time is now 2013-06-13 17:23:59
    2013-10-08 18:39:40, Info SYSPRP ========================================================
    2013-10-08 18:39:40, Info SYSPRP === Beginning of a new sysprep run ===
    2013-10-08 18:39:40, Info SYSPRP ========================================================
    2013-10-08 18:39:40, Info [0x0f004d] SYSPRP The time is now 2013-10-08 18:39:40
    2013-10-08 18:39:40, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2013-10-08 18:39:41, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
    2013-10-08 18:39:41, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2013-10-08 18:39:41, Warning SYSPRP WinMain: File operations pending
    2013-10-08 18:39:41, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
    2013-10-08 18:39:41, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
    2013-10-08 18:39:41, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
    2013-10-08 18:39:41, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
    2013-10-08 18:39:41, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
    2013-10-08 18:39:41, Info SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
    2013-10-08 18:39:41, Info [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
    2013-10-08 18:39:41, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
    2013-10-08 18:39:41, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-10-08 18:39:41, Info SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-10-08 18:39:41, Warning SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
    2013-10-08 18:39:41, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2013-10-08 18:39:41, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2013-10-08 18:39:41, Info SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2013-10-08 18:39:41, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2013-10-08 18:39:41, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
    2013-10-08 18:39:41, Error [0x0f0036] SYSPRP spopk.dll:: Sysprep will not run on an upgraded OS. You can only run Sysprep on a custom (clean) install version of Windows.
    2013-10-08 18:39:41, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x139f
    2013-10-08 18:39:41, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x139f
    2013-10-08 18:39:41, Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x139f
    2013-10-08 18:39:41, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x139f
    2013-10-08 18:39:41, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x8007139f
    2013-10-08 18:39:58, Info [0x0f0052] SYSPRP Shutting down SysPrep log
    2013-10-08 18:39:58, Info [0x0f004d] SYSPRP The time is now 2013-10-08 18:39:58
    2013-10-08 18:48:08, Info SYSPRP ========================================================
    2013-10-08 18:48:08, Info SYSPRP === Beginning of a new sysprep run ===
    2013-10-08 18:48:08, Info SYSPRP ========================================================
    2013-10-08 18:48:08, Info [0x0f004d] SYSPRP The time is now 2013-10-08 18:48:08
    2013-10-08 18:48:08, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2013-10-08 18:48:08, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
    2013-10-08 18:48:08, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2013-10-08 18:48:08, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
    2013-10-08 18:48:08, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
    2013-10-08 18:48:08, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
    2013-10-08 18:48:08, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
    2013-10-08 18:48:08, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
    2013-10-08 18:48:08, Info SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
    2013-10-08 18:48:08, Info [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
    2013-10-08 18:48:08, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
    2013-10-08 18:48:08, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-10-08 18:48:08, Info SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-10-08 18:48:08, Warning SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
    2013-10-08 18:48:08, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2013-10-08 18:48:08, Info SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2013-10-08 18:48:08, Info SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2013-10-08 18:48:08, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2013-10-08 18:48:08, Info [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
    2013-10-08 18:48:08, Error [0x0f0036] SYSPRP spopk.dll:: Sysprep will not run on an upgraded OS. You can only run Sysprep on a custom (clean) install version of Windows.
    2013-10-08 18:48:08, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll; dwRet = 0x139f
    2013-10-08 18:48:08, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml; dwRet = 0x139f
    2013-10-08 18:48:08, Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x139f
    2013-10-08 18:48:08, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x139f
    2013-10-08 18:48:08, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep cleanup internal providers; hr = 0x8007139f
    2013-10-08 18:53:32, Info [0x0f0052] SYSPRP Shutting down SysPrep log
    2013-10-08 18:53:32, Info [0x0f004d] SYSPRP The time is now 2013-10-08 18:53:32
    Its a Windows error 

    So, this is what I did (again) this morning.   Note, it differs in many instances that what you did, but these were my exact steps:
    1)  Fresh Install from “en_windows_8_1_enterprise_x64_dvd_2971902.iso” (current on TechNet as of last week) into a Virtual box *offline*.   NOTE:  This is Enterprise where
    you used “Pro”
    2)  Used “express settings” to set up non-Microsoft/Local account:  bec-admin
    3)  Did *not* join domain.
    4)  Installed Virtual Box 4.3.4 tools (so I could get shared folders/internet to fully work.)  Rebooted (as is required by the tools installer).  NOTE:  this is the
    only 3rd party software installed.
    5)  Changed the clock (as the default/express install puts me in the Pacific Time Zone (changed this to EST).   Connected laptop to Internet.
    6)  Ran Windows Update -- 12 updates listed.  Installed and rebooted.
    7)  I deleted all restore points and ran “Disk Cleanup” to delete anything listed (including system files) and rebooted and left windows running
    8)  For something different this time, I left the VM up and running for about an hour in case something magically has to run in the background after login to clean up stuff. 
    I do not need to run “osspprearm” because Windows is automatically activated on our network by this time.
    An hour later….
    9)  I run sysprep /oobe /generlize /unnattend:<my unnattend.xml> file — from the bec-admin account (contents of unattend.xml file are listed above...)
    10)  Rebooted.  Logged back in to “bec-admin”.  
    And — as usual with my experiences in this thread — only about 6 Metro app icons are on the start screen and other apps are missing from the list of all apps, but some start to install
    if I watch, and some “error” — in this attempt “Store” says “error” on it -- as they install
    And any newly created accounts (at this point) only have the 5 Metro app icons in them.
    The only way I’ve been able to make this work -- and by "work" I mean have the ability to create new accounts which contain *all* Metro applications — which is not optimal — is to have
    an additional local account that I *only* run sysprep from (call it “configure” for example)— and leave the “bec-admin” account manually created (either by sysprep or manually *prior* to sysprep as a second administrator-level account.)   I then would
    need to log into “bec-admin” to install software (or provision new accounts, etc) and then log back into “configure” to resysprep the system.
    Note — I did try setting skiprearm and persistalldeviceinstall to 1 prior to running sysprep above (after restoring from a snapshot) — but that didn’t matter, either -- the only difference
    was that "Camera" came up with an "error" this time.
    I fully believe there's a difference between "Pro" and "Enterprise" -- or 64-bit vs. 32-bit -- here.

  • Sysprep : a component is specified more than once

    Hi,
    I had some free time so I started updating our standards WDS image.
    It was on Windows 8.1 ( updates until july/august 2014) and I installed all available updates up to last week.
    Within WDS, I specify an answer file that it should use. This file was working great with the previous image.
    However if I tried to use the same answer file, I get "a component is specified more than once..."
    Any idea's why this should be the case with the same Windows version only few months apart.
    It was in the "specialize" part
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" 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>
                <TimeZone>Romance Standard Time</TimeZone>
            </component>
            <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipAutoActivation>false</SkipAutoActivation>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SearchScopes>
                    <Scope wcm:action="add">
                        <ScopeDefault>true</ScopeDefault>
                        <ScopeDisplayName>Google</ScopeDisplayName>
                        <ScopeKey>Google</ScopeKey>
                        <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl>
                        <ShowSearchSuggestions>true</ShowSearchSuggestions>
                    </Scope>
                </SearchScopes>
                <DisableAccelerators>true</DisableAccelerators>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <Home_Page>www.google.be</Home_Page>
            </component>
            <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <fDenyTSConnections>false</fDenyTSConnections>
            </component>
            <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <FirewallGroups>
                    <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">
                        <Active>true</Active>
                        <Group>Remote Desktop</Group>
                        <Profile>all</Profile>
                    </FirewallGroup>
                </FirewallGroups>
            </component>
            <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <UserAuthentication>0</UserAuthentication>
            </component>
        </settings>
        <settings pass="generalize">
            <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" 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>
        </settings>
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <UserData>
                    <AcceptEula>true</AcceptEula>
                    <FullName>Prodware</FullName>
                    <Organization>Prodware Belux</Organization>
                </UserData>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
                    <Password>
                        <Value>udontneedtoknow</Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Enabled>true</Enabled>
                    <Username>Prodware</Username>
                </AutoLogon>
                <DesktopOptimization>
                    <GoToDesktopOnSignIn>true</GoToDesktopOnSignIn>
                    <ShowWindowsStoreAppsOnTaskbar>false</ShowWindowsStoreAppsOnTaskbar>
                </DesktopOptimization>
                <OOBE>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>udontneedtoknow</Value>
                        <PlainText>true</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>udontneedtoknow</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <Description>Prodware</Description>
                            <DisplayName>Prodware</DisplayName>
                            <Group>Administrators</Group>
                            <Name>Prodware</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <UserLocale>nl-BE</UserLocale>
                <UILanguage>en-us</UILanguage>
                <SystemLocale>nl-BE</SystemLocale>
                <InputLocale>0813:00000813</InputLocale>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:e:/temp/sources/install.wim#Windows 8.1 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    Hi,
    Personally, I think the answer file should be correct, but always a good choice to verify it again, if you get any progress on this issue, please keep us updated.
    Regarding to the error "This application requires version 6.3.9600.16384 of the Windows ADK." if the ADK version is right is your system, then it might be some corrupted .dll in your system for the toolkit, to confirm this, please try another answer
    file and check the verification, see if it work.
    You can also refer to this link, check if it can give ua any hints
    https://social.technet.microsoft.com/Forums/en-US/11438771-e635-4734-bba3-4729b5cc5747/unable-to-create-sysprep-answer-file-for-server-2012r2-preview?forum=mdt
    some more reference links
    http://www.gregorystrike.com/2010/07/23/sysprep-specialize-pass-error-resolution/
    https://social.technet.microsoft.com/Forums/windows/en-US/0e40e579-4ceb-40b7-b25c-3420fd68db97/syprep-error-windows-could-not-parse-or-process-the-unattend-answer-file-for-pass-specialize?forum=w7itproinstall (the
    last reply)
    NOTE
    This
    response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft
    does not control these sites and has not tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • Sysprep woes with Windows 8

    Guys,
    I am trying to run the image capture wizard on a surface tablet running 64 but Windows 8.1
    My failure code is 0x00004005 which is happening during the sysprep stage.  I have set the values below but I still continue to have this problem.  Any ideas ?
    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\CleanupState\
    Set to value: 2
    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\
    Set to value: 7
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\SoftwareProtectionPlatform\SkipRearm
    Set to value: 1  

    Personally, I wouldn't capture an image from a Surface device and create your reference image using a Virtual Machine.
    Check the c:\windows\system32\sysprep\panther\setuperr.log to see if there is more information about the failure.
    Does SYSPREP work if you manually run it?
    My Personal Blog: http://madluka.wordpress.com

  • Sysprep /generalize resets windows update cache. (3 machines 3 different windows updates results)

    Hello,
    I have a process monthly that I run windows updates on all physical and virtual server templates.
    once this process is complete I sysprep all of the templates to create images.
    - upon bootup I am getting inconsistent results from all of the
    operating systems ( missing windows updates ) and the update history is reset every time.
    Some months the windows update history is correct and there are no updates missing, but other months there are tons of missing updates.
    For example I just did a test from the same template
    - first machine 60 missing updates
    - second machine 38 missing updates
    - third machine 45 missing updates.
    what I'm looking to do is save time by not having to re-run windows update every time for deployment.
    I know the templates are up to date I've even verified with the baseline security analyzer.

    Hi mobious,
    Could you try to use the SkipRearm option to sysprep the image again? As far as I know the sysprep operation won’t configure the update related options, Microsoft recommends
    that you use the SkipRearm setting if you plan on running Sysprep multiple times on a computer.
    More about the Sysprep works
    How Sysprep Works
    https://technet.microsoft.com/en-us/library/cc766514(v=ws.10).aspx
    I’m glad to be of help to you!
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Sysprep isn't resetting CMID

    I'm sysprepping a windows 7 Pro image with the following command line: "sysprep /generalize /oobe /shutdown /unattend:<file>", and my answer file doesn't have <SkipRearm> in it, but my imaged machines still share the same CMID as the original
    machine. This is causing my count on the KMS to go too low, and machines can't activate anymore (and I would assume it's causing other problems too). 
    If I manually rearm the machines, the CMID changes, and it activates with the KMS correctly. 
    Any suggestions on where I should look to try to troubleshoot why this is happening?
    Thanks!
    Here's my unattend file:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <servicing></servicing>
    <settings pass="windowsPE">
    <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <UserData>
    <AcceptEula>true</AcceptEula>
    <FullName>JC User</FullName>
    <Organization>Johnson City Central Schools</Organization>
    </UserData>
    </component>
    <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <DriverPaths>
    <PathAndCredentials wcm:action="add" wcm:keyValue="mobo">
    <Path>c:\drivers\mobo</Path>
    </PathAndCredentials>
    <PathAndCredentials wcm:action="add" wcm:keyValue="nic">
    <Path>c:\drivers\nic\</Path>
    </PathAndCredentials>
    <PathAndCredentials wcm:action="add" wcm:keyValue="video">
    <Path>c:\drivers\video</Path>
    </PathAndCredentials>
    <PathAndCredentials wcm:action="add" wcm:keyValue="audio">
    <Path>c:\drivers\audio</Path>
    </PathAndCredentials>
    </DriverPaths>
    </component>
    </settings>
    <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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>
    <TimeZone>Eastern Standard Time</TimeZone>
    <ShowWindowsLive>false</ShowWindowsLive>
    <ComputerName>*</ComputerName>
    </component>
    <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SkipAutoActivation>false</SkipAutoActivation>
    </component>
    </settings>
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <InputLocale>en-us</InputLocale>
    <SystemLocale>en-us</SystemLocale>
    <UILanguage>en-us</UILanguage>
    <UILanguageFallback>en-us</UILanguageFallback>
    <UserLocale>en-us</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>1</ProtectYourPC>
    </OOBE>
    <RegisteredOrganization>Johncon City Central Schools</RegisteredOrganization>
    <RegisteredOwner>Information Services</RegisteredOwner>
    <UserAccounts>
    <AdministratorPassword>
    <Value>XXXX</Value>
    <PlainText>false</PlainText>
    </AdministratorPassword>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>XXXX</Value>
    <PlainText>false</PlainText>
    </Password>
    <DisplayName>JC User</DisplayName>
    <Group>Users</Group>
    <Name>JC User</Name>
    </LocalAccount>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>XXXX</Value>
    <PlainText>false</PlainText>
    </Password>
    <DisplayName>JC Admin</DisplayName>
    <Group>Administrators</Group>
    <Name>JC Admin</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    </component>
    </settings>
    <cpi:offlineImage cpi:source="catalog:d:/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    I have been working with KMS for a few years now.  I ran into the same issue, sysprep /generalize still produced the same CMID on imaged machines while trying to activate via KMS host.  I worked around the issue using two methods.  The easiest
    is to maintain your image without rearming, then rearm the 25 machines KMS requires after the image has been pushed out. I know it is not best practice, but is the simplest solution. The other would be to load a fresh install of the OS, apply all
    required software and drivers, then sysprep /generalize with unattend.xml. Should have no problems until trying to sysprep again as you previously stated.  From my experience you will fight with sysprep and the CMID with little gain
    after the first sysprep.  If you use the first method just remember not to rearm your image, this way when the image is deployed the rearm count isn't changed otherwise you will have modify registry values to reset the rearm count. 
    If anyone has a better solution I would love to hear it.  My suggestion is a work around rather than a solution, but does do the trick.  Just have to remember when we do mass imaging to rearm the 25 clients. 

  • Sysprep and keep license key not working

    Hi,
    I am using sysprep on some technet license keys. I created an unattend.xml file (below) and selected a generalise and OOB sysprep execution. However, on reboot, I still get prompted for a license key.
    <settings pass="generalize">
    <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64"
    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>
    </settings>
    Why?

    Well that's why it's asking it... this is a retail media right?
    If you want this to work, you have to use volume activation media and key (MAK or KMS). More info here:
    http://www.microsoft.com/licensing/existing-customers/product-activation-faq.aspx

Maybe you are looking for