I'm pushing out a Windows 7 Image I sysprepped and created an answer file for. I added the Product Key under windowsPE
using component Windows-Setup_neutral->UserData->ProductKey
. It is MAK activation key, volume license. When the new system boots up the first time, I go to activate the product Key but it gives me an error: windows activation error code 0x8007232B
When I go and 'Change Product Key' in the new system and manually type in the same key, then activate it works fine. It would be nice to have this work so it will automatically activate in the 3 day period (so I don't have to activate each machine manually).
Here's my unattend xml file, is there something I'm missing?
<?xml version="1.0" encoding="utf-8" ?>
- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="windowsPE">
- <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <SetupUILanguage>
<UILanguage>en-us</UILanguage>
</SetupUILanguage>
<InputLocale>en-us</InputLocale>
<SystemLocale>en-us</SystemLocale>
<UILanguage>en-us</UILanguage>
<UILanguageFallback>en-us</UILanguageFallback>
<UserLocale>en-us</UserLocale>
</component>
- <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <WindowsDeploymentServices>
- <Login>
- <Credentials>
<Domain>pxxxxxxxx.com</Domain>
<Password>xxxxxxxxxx</Password>
<Username>administrator</Username>
</Credentials>
</Login>
</WindowsDeploymentServices>
- <UserData>
<Organization>Organization</Organization>
- <ProductKey>
<Key>**Confirmed key is correct**</Key>
</ProductKey>
</UserData>
</component>
</settings>
- <settings pass="specialize">
- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3dddd856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RegisteredOrganization>Organization</RegisteredOrganization>
<RegisteredOwner />
<TimeZone>Central Standard Time</TimeZone>
</component>
</settings>
- <settings pass="auditSystem">
- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <AutoLogon>
- <Password>
<Value>UwB3AGkAdABjAGgAYwBhAGIAbABlADEAMgBQAGEAcwBzAHcAbwByAGQA</Value>
<PlainText>false</PlainText>
</Password>
<Domain>DOMAIN</Domain>
<Enabled>true</Enabled>
<Username>administrator</Username>
</AutoLogon>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:w:/win7prosp1cd/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
Best Answer
I might be wrong but it seems to me that the
windowsPE
pass isn't read after sysprep (ie during first boot "out of the box-style"), onlyspecialize
is.Add the Windows-Shell-Setup component to the
specialize
pass and set the product key.If you want automatic activation to be done, then you could try running a SynchronizedCommand in the specialize pass which would do :
or simply
if the correct key is already installed via the specialize pass.