Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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>
share|improve this question

1 Answer 1

up vote 1 down vote accepted

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"), only specialize 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 :

cscript slmgr.vbs /ipk <productkey> /atoi

or simply

cscript slmgr.vbs /atoi

if the correct key is already installed via the specialize pass.

share|improve this answer
    
So I would need to put the product key under Windows-Shell-Setup -> ProductKey in specialize? Above the RegisteredOrganization Setting? –  drpcken Mar 4 '11 at 18:10
    
Yes it should work, I just used WAIK to verify that this component can be added to specialize. –  Renik Mar 4 '11 at 18:28
    
Thank you but I'm still confused (sorry). I'm creating a UnattendFile.xml file AND an OOBEunattend.xml file (per this site blog.augustoalvarez.com.ar/2010/04/21/… it doens't mention the product key). Which file do I put the product key in? I know from memory the key is suppose to be entered during the OOBE right? –  drpcken Mar 4 '11 at 21:20
    
at least in the OOBEunattend.xml file. But you could put it in both ;-) –  Renik Mar 4 '11 at 22:56
    
Got it! You were right, I moved it from my Unattend to my OOBEunattend and it works great! THank you! –  drpcken Mar 4 '11 at 23:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.