Windows 10 1703 : Sysprep in error

Hello Everyone !

I have to create a W10 1703 template on my vCenter infrastructure.
To do this, I just repeated the same process than for the 1607 version.

1/ Create a VM and deploy our W10 1703 image
2/ Add the VM in WORKGROUP
3/ Convert in template
4/ Deploy a machine from this template with the associated customization

We have to use custom sysprep answer file (unattended file). I tried with the customization used by 1607 version but it doesn't work.

 UnattendedFile.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>040c:0000040c</InputLocale>
            <SystemLocale>fr-FR</SystemLocale>
            <UILanguage>fr-FR</UILanguage>
            <UserLocale>fr-FR</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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>Qwerty1</Value>
                    <PlainText>true</PlainText>
                </AdministratorPassword>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Description>Local Admin</Description>
                        <DisplayName>Admin</DisplayName>
                        <Group>Administrators</Group>
                        <Name>Admin</Name>
                        <Password>
                            <Value>Qwerty1</Value>
                            <PlainText>true</PlainText>
                        </Password>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
        </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">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>net user Admin /active:yes</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </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">
            <RegisteredOrganization>MYORG</RegisteredOrganization>
            <RegisteredOwner>MYORG</RegisteredOwner>
            <TimeZone>Romance Standard Time</TimeZone>
            <ComputerName>mycomputer</ComputerName>
        </component>
        <component name="Microsoft-Windows-UnattendedJoin" 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">
            <Identification>
                <Credentials>
                    <Domain>MYDOMAIN.FR</Domain>
                    <Password>mypassword</Password>
                    <Username>SRV_ACC</Username>
                </Credentials>
                <JoinDomain>MYDOMAIN.FR</JoinDomain>
                <DebugJoin>false</DebugJoin>
                <UnsecureJoin>false</UnsecureJoin>
                <MachineObjectOU>OU=OU1,DC=mydomain,DC=fr</MachineObjectOU>
            </Identification>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:c:/temp/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


SetupErr.log :
SYSPRP setupdigetclassdevs failed with error 0
SYSPRP MRTGeneralize:107 - ERROR: Failed DeleteInstance AntiSpywareProduct.instanceGuid="{D68DDC3A-831F-4FAE-9E44-DA132C1ACF46}" hr=2147749890
SYSPRP MRTGeneralize:116 - ERROR: Failed DeleteInstance AntiVirusProduct.instanceGuid="{D68DDC3A-831F-4FAE-9E44-DA132C1ACF46}" hr=2147749890
SYSPRP Runtime provisioning encountered an unexpected exception
[gle=0x00000012a]
[0x0f0083] SYSPRP ActionPlatform::LaunchModule: Caught an unhandled exception whiletrying to load and execute 'ProvPackageSysprepGeneralize' from C:\Windows\System32\ProvSysprep.dll[gle=0x0000012a]
SYSPRP ActionPlatform::ExecuteAction: Error in executing action; dwRet = 0x23e[gle=0x0000012a]
SYSPRP ActionPlatform::ExecuteActionList: Error in executing actions; dwRet = 0x23e[gle=0x0000012a]
SYSPRP SysprepSession::Execute: Error in executing actions from C:indowsSystem32SysprepActionFilesGeneralize.xml; dwRet = 0x23e
SYSPRP RunPlatformActions:Failed while executing SysprepSession actions; dwRet = 0x23e
[0x0f0070] SYSPRP RunExternalDlls:An error occured while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x23e
[0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x8007023e
jerem BuissAsked:
Who is Participating?
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
it cannot Sysprep, because something has been installed....Anti-Spyware Product ?

ERROR: Failed DeleteInstance AntiSpywareProduct.instanceGuid

What additional products have been installed into this image, which are not Vanilla Microsoft Build ?

You can see a similar issue here

https://social.technet.microsoft.com/Forums/windows/en-US/630631da-c26b-42cd-bca0-afa367c9321d/sysprep-unhandled-exception-in-provpackagesysprepgeneralize?forum=win10itprosetup
0
 
jerem BuissAuthor Commented:
Thank you for your reply!
I've already identified this point. But I don't think it's the root cause because the image contains the same Anti-Spyware Product (Symantec) than the 1607 version, which works without any problems (same errors in setuperr.log but not blocking).
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
from that log, Sysprep cannot complete because of the 3rd party software installed.

Does Symantec actually recommend you ship the software installed and sysprep each clone, we've had issues with anti-virus software pre-installed, because management consoles get confused with workstation names, so we deploy afterwards by pushing out from domain console, AD etc

Try removing it, and see if you can sysprep.

Have you also tried sysprepping without running a custom unattended answer file.
0
 
jerem BuissAuthor Commented:
I'll try to uninstall Symantec.

Unfortunately, we have to use custom unattended answer file, because our vcenter infrastructure don't support W10 customization ..
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Please try as a TEST!!!

if after removing the anti-virus product, you have found your answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.