SysPrep Licensing Issues when creating a Windows 10 Build 1607 Image with Unattended.xml in Audit Mode?

0

My intent is to make re-deployment/provisioning of our Oracle POS faster so when one goes down it can be easily redeployed into the field. The POSs run an older build of Windows 10: 1607.

  1. I pulled a fresh image with Clonezilla, off of a brand new Workstation 620 POS terminal that I got when I RMA the old one back to Oracle;

  2. I also used this same machine to create a .wim file, which I later used with WSIM to create an Unattend.xml file.

  3. I loaded the Clonezilla image into a Hyper-V VM, when I reached the OOBE screens I pressed CTRL+SHIFT+F3 so the system would reboot into Windows 10 "Audit Mode" (you'll know you're in it because the SysPrep window appears).

  4. Once in "Audit Mode" (and this required a bit of additional effort) I connected from the Hyper-V VM guest to my host machine and copied over the Unattend.xml file to C:\Windows\System32\Sysprep and ran the following command:

    sysprep.exe /generalize /oobe /unattend:Unattended.xml /shutdown

  5. The command when complete resulted in an error message that directed me to C:\Windows\System32\Sysprep\Panther\setupact.log which at the very end had the following content:

...
2021-01-29 15:29:30, Info                  SYSPRP Called state repository block requests success
2021-01-29 15:29:30, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.Cortana_1.7.0.14393_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat'.
2021-01-29 15:29:30, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
2021-01-29 15:29:30, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.Cortana_1.7.0.14393_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat.LOG1'.
2021-01-29 15:29:30, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
2021-01-29 15:29:30, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.Cortana_1.7.0.14393_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat.LOG2'.
2021-01-29 15:29:30, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
2021-01-29 15:29:30, Warning               SYSPRP Encountered error 0x91 while deleting directory '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.Cortana_1.7.0.14393_neutral_neutral_cw5n1h2txyewy'.
2021-01-29 15:29:30, Info                  SYSPRP Ignoring not empty directories, which can happen when the activation store was not deleted.
2021-01-29 15:29:30, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.ShellExperienceHost_10.0.14393.2068_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat'.
2021-01-29 15:29:30, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
2021-01-29 15:29:30, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.ShellExperienceHost_10.0.14393.2068_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat.LOG1'.
2021-01-29 15:29:30, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
2021-01-29 15:29:30, Warning               SYSPRP Encountered error 0x20 while deleting file '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.ShellExperienceHost_10.0.14393.2068_neutral_neutral_cw5n1h2txyewy\ActivationStore.dat.LOG2'.
2021-01-29 15:29:30, Info                  SYSPRP Explicitly ignoring sharing violation on activationstore, which can happen when the app is running.
2021-01-29 15:29:30, Warning               SYSPRP Encountered error 0x91 while deleting directory '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages\Microsoft.Windows.ShellExperienceHost_10.0.14393.2068_neutral_neutral_cw5n1h2txyewy'.
2021-01-29 15:29:30, Info                  SYSPRP Ignoring not empty directories, which can happen when the activation store was not deleted.
2021-01-29 15:29:30, Warning               SYSPRP Encountered error 0x91 while deleting directory '\\?\C:\ProgramData\Microsoft\Windows\AppRepository\Packages'.
2021-01-29 15:29:30, Info                  SYSPRP Ignoring not empty directories, which can happen when the activation store was not deleted.
2021-01-29 15:29:30, Warning               SYSPRP Could not re-arm region selection, some files and registry keys are no longer recoverable.
2021-01-29 15:29:30, Info                  SYSPRP Exiting SysprepGeneralize (Appx).
2021-01-29 15:29:30, Info       [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'SysprepGeneralize' from C:\Windows\System32\AppxSysprep.dll without error
2021-01-29 15:29:30, Info       [0x0f00bd] SYSPRP CreateSysprepActionList: Building action list for component Microsoft-Windows-Security-SPP
2021-01-29 15:29:30, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'SLReArmWindows' in C:\Windows\System32\slc.dll; executing it
2021-01-29 15:29:30, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SLReArmWindows' from C:\Windows\System32\slc.dll; dwRet = 0xc004fe00
2021-01-29 15:29:30, Error                 SYSPRP ActionPlatform::ExecuteAction: Error in executing action; dwRet = 0xc004fe00
2021-01-29 15:29:30, Error                 SYSPRP ActionPlatform::ExecuteActionList: Error in execute actions; dwRet = 0xc004fe00
2021-01-29 15:29:30, Error                 SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0xc004fe00
2021-01-29 15:29:30, Error                 SYSPRP RunPlatformActions:Failed while executing SysprepSession actions; dwRet = 0xc004fe00
2021-01-29 15:29:30, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0xc004fe00
2021-01-29 15:29:30, Error      [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0xc004fe00
2021-01-29 15:29:38, Info       [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
2021-01-29 15:29:38, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
2021-01-29 15:29:38, Info       [0x0f004d] SYSPRP The time is now 2021-01-29 15:29:38

The error messages seems to relate to licensing so below I've included the results of running slmgr /dlv see below:

enter image description here

I don't know if the problem is that I'm using an OEM OS that came with this Point of Sale or if it's some other problem; I'm sure I'll probably also have issues with the AppX stuff considering my VM is not connected to the internet; from what I've read it seems that this is somehow related to what users are included

My answer file also includes the following line:

    <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>

Also, here is the full text of my Unattended.xml:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <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>
                <SkipMachineOOBE>true</SkipMachineOOBE>
                <SkipUserOOBE>true</SkipUserOOBE>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideEULAPage>true</HideEULAPage>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>1</ProtectYourPC>
            </OOBE>
            <RegisteredOrganization>Not Gonna Tell You That</RegisteredOrganization>
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>SomePasswordBase64Thing</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Name>SomeLocalAcct</Name>
                        <Group>Administrators</Group>
                        <DisplayName>SomeLocalAcct</DisplayName>
                        <Description>Local Admin Account</Description>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <AutoLogon>
                <Password>
                    <Value>SomePasswordBase64Thing</Value>
                    <PlainText>false</PlainText>
                </Password>
                <Username>PNRC</Username>
                <Enabled>true</Enabled>
            </AutoLogon>
            <TimeZone>Eastern Standard Time</TimeZone>
            <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
        </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>
    <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">;
            <ExtendOSPartition>
                <Extend>true</Extend>
            </ExtendOSPartition>
        </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:h:/simph_wim/temp/install.wim#Workstation620" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
windows-10
licensing
sysprep
asked on Server Fault Jan 30, 2021 by leeand00

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0