Windows-7
如何使用 sysprep unattend.xml 啟動 Windows 7?
如何使用 unattend.xml 文件通過 SysPrep 啟動通過映像部署的 Windows 7?
這是我到目前為止寫的程式碼:
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <settings pass="generalize"> <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Description>Disable create user account</Description> <Path>reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\OOBE /v UnattendCreatedUser /t REG_DWORD /d 1 /f</Path> <Order>1</Order> </RunSynchronousCommand> </RunSynchronous> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <RegisteredOwner>NetLiteracy</RegisteredOwner> <RegisteredOrganization>NetLiteracy</RegisteredOrganization> <TimeZone>Eastern Standard Time</TimeZone> <ProductKey>**ValidProductKey**</ProductKey> <Computername>*</Computername> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Other</NetworkLocation> <ProtectYourPC>2</ProtectYourPC> <SkipUserOOBE>true</SkipUserOOBE> </OOBE> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <InputLocale>en-US</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> </settings> </unattend>
聽起來好像您正在直接編輯答案文件的 XML - 我強烈建議您安裝 Windows 自動安裝工具包(可在此處從 Microsoft 獲得)並使用其中的 Windows 系統映像管理器工具來編輯答案文件。使用者友好的方法,根據此處的 Microsoft 文件。
具體來說,您正在尋找
ProductKey
component中的值amd64_Microsoft-Windows-Shell-Setup_neutral
,應該在 special 階段(第 4 階段)在此實例中添加該值。