无人参与的 XML 文件 - 产品密钥首次未激活

无人参与的 XML 文件 - 产品密钥首次未激活

我正在推出一个我已进行系统准备并为其创建了应答文件的 Windows 7 映像。我在windowsPE使用组件下添加了产品密钥Windows-Setup_neutral->UserData->ProductKey。它是 MAK 激活密钥,批量许可证。当新系统第一次启动时,我去激活产品密钥,但它给了我一个错误:windows activation error code 0x8007232B

当我在新系统中“更改产品密钥”并手动输入相同的密钥时,激活它就可以正常工作。如果这个功能能正常工作,那么它会在 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>

答案1

我可能错了,但在我看来,windowsPE在 sysprep 之后(即在第一次启动“开箱即用”时),密码没有被读取,只是specialize被读取了。

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

如果您想要自动激活,那么您可以尝试在专门过程中运行 SynchronizedCommand,其作用如下:

cscript slmgr.vbs /ipk <productkey> /atoi

或者简单地

cscript slmgr.vbs /atoi

如果已经通过专门通行证安装了正确的密钥。

相关内容