无人参与的XML文件 – 产品密钥不是第一次激活

我推出一个Windows 7映像我sysprepped并创build一个答案文件。 我使用组件Windows-Setup_neutral->UserData->ProductKeywindowsPE下添加了产品密钥。 这是MAK激活码,批量许可证。 当新系统第一次启动,我去激活产品密钥,但它给了我一个错误: windows activation error code 0x8007232B

当我在新系统中“更换产品密钥”并手动input相同的密钥时,激活它可以正常工作。 这将是很好的,所以它会在3天内自动激活(所以我不必手动激活每台机器)。

这是我的无人值守XML文件,有什么我失踪?

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

我可能是错的,但是在我看来,sysprep(即在第一次启动“框外风格”)后,不会读取windowsPE通道,只有specialize是。

将Windows-Shell-Setup组件添加到specialize通道并设置产品密钥。

如果你想自动激活完成,那么你可以尝试在specialize pass中运行SynchronizedCommand:

 cscript slmgr.vbs /ipk <productkey> /atoi 

或干脆

 cscript slmgr.vbs /atoi 

如果通过specialize pass已经安装了正确的密钥。