如何绕过 Windows 无人值守安装中的“操作系统版本选择”页面?

如何绕过 Windows 无人值守安装中的“操作系统版本选择”页面?

我已经AutoUnattend.xml使用 ADK 中包含的 Windows 系统映像管理器生成了一个文件,以无人值守的方式安装 Windows 8.1。

我想在我的AutoUnattend.xml文件中添加一个属性来自动选择我想要安装的操作系统版本,绕过操作系统选择屏幕。

AutoUnattend.xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
  <servicing>
    <package action="configure">
      <assemblyIdentity name="Microsoft-Windows-Client-LanguagePack-Package" version="6.3.9600.16384" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="es-ES" />
    </package>
  </servicing>
  <settings pass="windowsPE">
    <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <UserLocale>es-ES</UserLocale>
      <UILanguageFallback>es-ES</UILanguageFallback>
      <UILanguage>es-ES</UILanguage>
      <SystemLocale>es-ES</SystemLocale>
      <InputLocale>es-ES</InputLocale>
    </component>
    <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <Display>
        <HorizontalResolution>1920</HorizontalResolution>
        <VerticalResolution>1080</VerticalResolution>
        <ColorDepth>32</ColorDepth>
      </Display>
      <UserData>
        <ProductKey>
          <WillShowUI>Never</WillShowUI>
          <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
        </ProductKey>
        <AcceptEula>true</AcceptEula>
        <Organization>Elektro Studios</Organization>
        <FullName>MY NAME</FullName>
      </UserData>
      <EnableNetwork>true</EnableNetwork>
      <EnableFirewall>true</EnableFirewall>
      <Restart>Restart</Restart>
    </component>
  </settings>
  <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" 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>
        <Enabled>true</Enabled>
        <LogonCount>1</LogonCount>
        <Username>Administrator</Username>
      </AutoLogon>
      <ComputerName>Elektro-PC</ComputerName>
      <ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey>
      <RegisteredOrganization>Elektro Studios</RegisteredOrganization>
      <TimeZone>Romance Standard Time</TimeZone>
      <WindowsFeatures>
        <ShowInternetExplorer>false</ShowInternetExplorer>
        <ShowMediaCenter>false</ShowMediaCenter>
        <ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer>
      </WindowsFeatures>
      <Themes>
        <WindowColor>0</WindowColor>
      </Themes>
      <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
      <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
    </component>
    <component name="Microsoft-Windows-HelpAndSupport" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <HelpAndSupport>
        <Manufacturer>Elektro Studios</Manufacturer>
      </HelpAndSupport>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <UserLocale>es-ES</UserLocale>
      <UILanguageFallback>es-ES</UILanguageFallback>
      <UILanguage>es-ES</UILanguage>
      <SystemLocale>es-ES</SystemLocale>
      <InputLocale>es-ES</InputLocale>
    </component>
    <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <SkipAutoActivation>true</SkipAutoActivation>
    </component>
  </settings>
  <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <OOBE>
        <HideEULAPage>true</HideEULAPage>
        <SkipUserOOBE>true</SkipUserOOBE>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <ProtectYourPC>3</ProtectYourPC>
        <NetworkLocation>Home</NetworkLocation>
        <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
        <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
        <HideLocalAccountScreen>true</HideLocalAccountScreen>
      </OOBE>
      <VisualEffects>
        <FontSmoothing>On</FontSmoothing>
        <SystemDefaultBackgroundColor>0</SystemDefaultBackgroundColor>
      </VisualEffects>
      <TimeZone>Romance Standard Time</TimeZone>
      <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
      <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
      <Themes>
        <WindowColor>0</WindowColor>
      </Themes>
      <WindowsFeatures>
        <ShowInternetExplorer>false</ShowInternetExplorer>
        <ShowMediaCenter>false</ShowMediaCenter>
        <ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer>
      </WindowsFeatures>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <InputLocale>es-ES</InputLocale>
      <SystemLocale>es-ES</SystemLocale>
      <UILanguage>es-ES</UILanguage>
      <UILanguageFallback>es-ES</UILanguageFallback>
      <UserLocale>es-ES</UserLocale>
    </component>
  </settings>
  <settings pass="auditSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <Themes>
        <WindowColor>0</WindowColor>
      </Themes>
      <WindowsFeatures>
        <ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer>
        <ShowMediaCenter>false</ShowMediaCenter>
        <ShowInternetExplorer>false</ShowInternetExplorer>
      </WindowsFeatures>
    </component>
  </settings>
  <settings pass="auditUser">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <Themes>
        <WindowColor>0</WindowColor>
      </Themes>
      <WindowsFeatures>
        <ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer>
        <ShowInternetExplorer>false</ShowInternetExplorer>
        <ShowMediaCenter>false</ShowMediaCenter>
      </WindowsFeatures>
    </component>
  </settings>
  <cpi:offlineImage cpi:source="wim:c:/users/administrador/desktop/win%208%20.1/win/sources/install.wim#Windows 8.1" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
  • 这是我想通过自动选择图像中存在的唯一 Windows 版本 [Windows 8.1 核心版本] 来绕过的屏幕: 截屏

答案1

我找到了解决办法这里

在此处输入图片描述

在此处输入图片描述

PS:将值更改为Windows 8.1并且工作正常!

答案2

对于 Windows 10,我无法使用/IMAGE/NAME字符串值Windows 10 Pro(原因我不知道),正如@ElektroStudios 在回答中所建议的那样。

这是我在标签AutoUnattend.xml下添加的内容OSImage,对我很有用:

<InstallFrom>
  <MetaData wcm:action="add">
    <Key>/image/index</Key>
    <Value>1</Value>
  </MetaData>
</InstallFrom>

这将自动选择第一个选项,因为我在有人值守的安装过程中有两个选项:

Windows 10 Pro   x64  10/30/2015
Windows 10 Home  x64  10/30/2015

答案3

请注意/image/index/image/name区分大小写;对于 Windows 10 Enterprise v1709:

<InstallFrom>
  <MetaData wcm:action="add">
    <Key>/IMAGE/INDEX</Key>
    <Value>3</Value>
  </MetaData>
</InstallFrom>

如果您想检查所需的值,imagex可以使用 AIK(部署和映像工具环境)一部分的命令行工具。

答案4

使用图像名称而不是索引:

<InstallFrom>
  <MetaData wcm:action="add">
    <Key>/IMAGE/NAME</Key>
    <Value>Windows 10 Enterprise</Value>
  </MetaData>
</InstallFrom>

相关内容