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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.