unattend.xml Windows 8 升級

unattend.xml Windows 8 升級

我正在嘗試使用 Windows 8 setup.exe 命令列選項升級我的 Windows 7 計算機,

 setup.exe /unattend:answer.xml

我收到錯誤“沒有可用圖像”。有人有用於 Windows 8 升級的範例 unattend.xml 文件,或知道如何產生一個文件嗎?

答案1

以下內容摘自 TechNet 文章,適用於 Windows 7,但我認為 Win 8 和 Win 7 無人值守 xml 檔案之間不會有任何重大差異。

< ?xml version="1.0" ?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
<WindowsDeploymentServices>
<Login>
<WillShowUI>onerror</WillShowUI>
<Credentials>
<Username>wdsadmin</Username>
<Domain>myschool</Domain>
<Password>wdspassword</Password>
</Credentials>
</Login>
<ImageSelection>
<WillShowUI>onerror</WillShowUI>
<InstallImage>
<ImageName>Windows 7 Professional SP1</ImageName>
<ImageGroup>x86 Images</ImageGroup>
<Filename>Windows7proSP1.wim</Filename>
</InstallImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
</ImageSelection>
</WindowsDeploymentServices>
<DiskConfiguration>
<WillShowUI>onerror</WillShowUI>
<Disk>
<CreatePartitions>
<CreatePartition>
<Order>1</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition>
<Active>true</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>OS</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
</component>
<component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
<SetupUILanguage>
<WillShowUI>onerror</WillShowUI>
<UILanguage>en-UK</UILanguage>
</SetupUILanguage>
<UILanguage>en-UK</UILanguage>
</component>
</settings>
</unattend>

如果你仔細觀察的話有

<InstallImage>
<ImageName>Windows 7 Professional SP1</ImageName>
<ImageGroup>x86 Images</ImageGroup>
<Filename>Windows7proSP1.wim</Filename>
</InstallImage>

這讓我相信您的 xml 文件沒有指向正確的圖像文件,或者您沒有。

相關內容