Windows-Server-2008

無人參與的 XML 文件 - 產品密鑰第一次未啟動

  • March 4, 2011

我正在推出我係統準備並為其創建答案文件的 Windows 7 映像。windowsPE我在using component下添加了 Product Key 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>

我可能是錯的,但在我看來,windowsPE在 sysprep 之後(即在第一次啟動“開箱即用”時)沒有讀取通行證,只有specialize

將 Windows-Shell-Setup 組件添加到specializepass 並設置產品密鑰。

如果您希望自動啟動,那麼您可以嘗試在specialize pass 中執行 SynchronizedCommand :

cscript slmgr.vbs /ipk <productkey> /atoi

或者乾脆

cscript slmgr.vbs /atoi

如果已經通過specialize pass 安裝了正確的密鑰。

引用自:https://serverfault.com/questions/243281