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:
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">
            <RegisteredOwner>Our Organization</RegisteredOwner>
            <TimeZone>Central Standard Time</TimeZone>
            <RegisteredOrganization>Our Organization</RegisteredOrganization>

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...
Who is Participating?

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

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:
Checked the log file and found the error is:

CopyProfile failed (0x8007012b)
Aaron TomoskyDirector of Solutions ConsultingCommented:
Are you using /generalize when doing the sysprep command?

Here are some other things to look for
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.

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