Template issue with sysprep Windows Setup issue - vSphere, Win 2012 R2

I cannot tell if this is a vSphere issue or not.

The problem is I simply cannot deploy a template I created from a virtual machine.

I configured the OS, settings, etc, and sysprep'd with an unattend .xml file.

The error I'm getting is:
server-2012-r2-template
I checked the specialize pass in the xml and it's literally just:

    <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>2012R2Fresh</ComputerName>
            <CopyProfile>true</CopyProfile>
            <ProductKey>D2N9P-3P6X9-2R39C-7RTCD-MDVJX</ProductKey>
            <RegisteredOwner>Our Organization</RegisteredOwner>
            <TimeZone>Central Standard Time</TimeZone>
            <RegisteredOrganization>Our Organization</RegisteredOrganization>
        </component>
    </settings>

Open in new window


From what I read, the error is usually a product key issue.

Thing is, this product key is a KMS client key, since we haev a KMS host on our network, we expect to use this key and the client will activate itself accordingly.
Surely that's not a wrong key? Is there some special settings I have to add? Some special "KMS" compatible ISO for 2012 R2 I have to use for my image?

The key is also placed in the windowsPE component, so I'm not sure if that's a conflict, or what. It's the same key...
garryshapeAsked:
Who is Participating?
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.

garryshapeAuthor Commented:
Update:
Checked the log file and found the error is:

CopyProfile failed (0x8007012b)
0
Aaron TomoskySD-WAN SimplifiedCommented:
Are you using /generalize when doing the sysprep command?

Here are some other things to look for
https://technet.microsoft.com/en-us/library/hh825135.aspx
0
garryshapeAuthor Commented:
The fix I think was I took ownership of the C:\Users\Administrator and all child objects, logged in as Administrator, before sysprepin'g and capturing the image again.

Online forums have described this exact CopyProfile error when Adobe products are installed. While I did not have Adobe products installed, it may have been an important "Flash" update that was installed in the golden image before syspreping, that would have required doing the take-ownership-fix again.
I took ownership though, and didn't install the flash update, and sysprep'd, re-creating and re-deploying the template with no issue.
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
garryshapeAuthor Commented:
fixed my issue see above
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 Server 2012

From novice to tech pro — start learning today.

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.