Windows 系統映射管理員案例總覽Windows System Image Manager Scenarios Overview

Windows®系統映射管理員 (Windows SIM) 在 GUI 中建立及管理自動的 Windows 安裝程式回應檔案。Windows® System Image Manager (Windows SIM) creates and manages unattended Windows Setup answer files in a GUI.

回應檔案是 Windows 安裝程式中用來設定和自訂預設 Windows 安裝的 .xml 檔案。Answer files are .xml files that are used during Windows Setup to configure and customize the default Windows installation.

例如,您可以使用 Windows SIM 來建立回應檔案,以便在安裝 Windows 之前將磁碟分割和格式化。For example, you can use Windows SIM to create an answer file that partitions and formats a disk before installing Windows. Windows SIM 也會變更 Windows Internet Explorer®首頁的預設設定,並在安裝後將 Windows 設定為開機至 audit 模式。Windows SIM also changes the default setting for the Windows Internet Explorer® home page, and it configures Windows to boot to audit mode after installation. 藉由修改回應檔案中的設定,Windows SIM 也可以用來安裝協力廠商應用程式、設備磁碟機、語言套件和其他更新。By modifying settings in the answer file, Windows SIM can also be used to install third-party applications, device drivers, language packs, and other updates.

注意

Windows SIM 不會修改 Windows 映像本身。Windows SIM does not modify the Windows image itself. 您只能使用 Windows SIM 來建立回應檔案。You use Windows SIM only to create an answer file. 在 Windows 安裝程式期間,回應檔案會將設定套用至 Windows 安裝。During Windows Setup, the answer file applies the settings to the Windows installation. Windows SIM 不會修改 Windows 映像 ( .wim) 檔中的設定。Windows SIM does not modify the settings in a Windows image (.wim) file.

常見的 Windows SIM 案例Common Windows SIM Scenarios

建立 Windows 映像的類別目錄檔案Create a Catalog File for a Windows Image

建立回應檔案之前,您必須先建立 ( .clg) 檔案的目錄。Before you can create an answer file, you must create a catalog (.clg) file. 類別目錄檔案包含單一 Windows 映像中所有可設定的設定,以及每個設定的目前值。Catalog files contain all of the configurable settings in a single Windows image and the current values of each setting.

當您建立類別目錄檔案時,建議您使用32位版本的 Windows SIM。We recommend that you use the 32-bit version of Windows SIM when you create your catalog files. 下表顯示 Windows SIM 的架構和支援的 Windows 映像架構。The following table shows the architectures of Windows SIM and the supported Windows image architectures.

Windows SIM 架構Windows SIM architecture 可以建立下列架構類型的 Windows 映像目錄Can create catalogs for Windows images of the following architecture types

x86 版本的 SIMx86 version of SIM

x86 系統、x64 型系統和 Windows® RT ARM 型系統x86-based systems, x64-based systems, and Windows® RT ARM-based systems

x64 版本的 SIMx64 version of SIM

僅以 x64 為基礎的系統x64-based systems only

### 建立 Windows 映像的新回應檔案Create a New Answer File for a Windows Image

您可以使用 Windows SIM 來建立要在 Windows 安裝程式期間使用的回應檔案。You can use Windows SIM to create an answer file to be used during Windows Setup. 您可以查看 Windows 映像中所有可用的元件、將元件設定新增至您的回應檔案,以及選擇何時套用元件設定,方法是將它新增至特定的設定階段。You can view all of the components that are available in a Windows image, add component settings to your answer file, and choose when to apply a component setting by adding it to a particular configuration pass.

將元件設定新增至自動回應檔案之後,您可以針對每個元件查看和自訂可用的設定。After you add component settings to an unattended answer file, you can view and customize the available settings for each component. 如需詳細資訊,請參閱 回應檔案總覽For more information, see Answer Files Overview.

編輯現有的回應檔案Edit an Existing Answer File

您可以使用 Windows SIM 將元件、套件或其他更新新增至現有的回應檔案。You can use Windows SIM to add components, packages, or other updates to an existing answer file. 您也可以針對 Windows 映像驗證現有的回應檔案,以確保可以將該回應檔案中的設定套用至特定 Windows 映像。You can also validate an existing answer file against a Windows image to ensure that the settings in that answer file can be applied to a specific Windows image. 回應檔案通常與特定的 Wiindows 映像關聯。An answer file is typically associated with a specific Windows image. 您可以使用 Windows SIM 開啟 Windows 映像、開啟現有的回應檔案,然後對回應檔案進行變更。By using Windows SIM, you can open the Windows image, open an existing answer file, and then make changes to the answer file.

Windows SIM 會根據 Windows 映像中可用的設定來驗證回應檔案中的元件設定。Windows SIM validates the component settings in the answer file against the settings that are available in the Windows image. 如需詳細資訊,請參閱 如何驗證回應檔案。For more information, see How to Validate an Answer File.

將設備磁碟機新增至回應檔案Add Device Drivers to an Answer File

您可以使用 Windows SIM 在 Windows 安裝期間新增裝置驅動程式。You can add device drivers during Windows Setup by using Windows SIM. Windows 安裝程式會使用下列類型的驅動程式:Windows Setup uses the following types of drivers:

  • 內建驅動程式In-box drivers. Windows 安裝程式處理現成的驅動程式與處理套件的方式相同。Windows Setup handles in-box drivers the same way that it handles packages.
  • 現成的驅動程式Out-of-box drivers. 藉由使用 Windows SIM,您可以在 Windows 安裝程式期間,將預設的驅動程式 (以 INF 為基礎的) 。By using Windows SIM, you can add out-of-box drivers (INF-based) during Windows Setup. 一般而言,這些預設驅動程式會在 auditSystem 設定階段期間處理。Typically, these out-of-box drivers are processed during the auditSystem configuration pass. 您 .inf 型的現成驅動程式必須位於稱為非預設驅動程式的發佈共用子資料夾中。Your .inf-based out-of-box drivers must be in a distribution share subfolder that is called Out-of-Box Drivers. 如需詳細資訊,請參閱 如何管理發佈共用中的檔案和資料夾For more information, see How to Manage Files and Folders in a Distribution Share.
  • 隨 Windows Installer 檔案安裝的內建驅動程式In-box drivers that are installed with a Windows Installer file. 需要 Windows Installer 檔案的隨用隨的驅動程式會以新增應用程式的相同方式加入。In-box drivers that require a Windows Installer file are added the same way that applications are added.

注意

藉由使用 microsoft-windows-pnpcustomizationswinpe 元件,您必須在 windowsPE 設定階段期間新增安裝所需的開機關鍵設備磁碟機。By using the Microsoft-Windows-PnpCustomizationsWinPE component, you must add boot-critical device drivers that are required for installation during the windowsPE configuration pass. 如需詳細資訊,請參閱 如何使用 Windows 安裝程式新增設備磁碟機For more information, see How to Add Device Drivers by Using Windows Setup. 您也可以使用部署映射服務與管理 ( DISM ) 將設備磁碟機新增至離線映射。You can also use Deployment Image Servicing and Management ( DISM ) to add device drivers to an offline image. 如需詳細資訊,請參閱 如何離線新增和移除驅動程式For more information, see How to Add and Remove Drivers Offline.

將應用程式或驅動程式新增至回應檔案Add Applications or Drivers to an Answer File

您可以使用 Windows SIM,在 Windows 安裝程式期間使用發佈共用來新增要安裝的應用程式或驅動程式。You can use Windows SIM to add applications or drivers to be installed during Windows Setup by using a distribution share. 您可以使用發佈共用來儲存您在 Windows 安裝程式期間提供的所有應用程式、設備磁碟機、腳本或其他資源。You use a distribution share to store all applications, device drivers, scripts, or other resources that you make available during Windows Setup.

您可以使用資料影像來新增更多應用程式、腳本和其他二進位檔。You can add more applications, scripts, and other binary files by using a data image. 資料影像的封裝方式類似于 Windows 映像。A data image is packaged in a way that is similar to a Windows image. 藉由使用 DISM 工具 ( DISM.exe ) ,您可以在) 期間,捕捉包含必須新增至 Windows (或電腦上另一個磁碟分割之資源的資料夾結構。By using the DISM tool ( DISM.exe ), you can capture a folder structure that contains the resources that you must add to Windows (or another partition on the computer) during Windows Setup. 您可以使用 Microsoft Windows 安裝程式 元件中的 DataImage 設定,指定套用資料影像的位置。You can specify where the data image is applied by using the DataImage setting in the Microsoft-Windows-Setup component. 如需詳細資訊,請參閱 如何建立資料影像For more information, see How to Create a Data Image.

您也可以使用 $OEM$ 資料夾結構,在 Windows 安裝程式期間將二進位檔案和其他應用程式放在特定位置。You can also use $OEM$ folder structures to place binary files and other applications in specific locations during Windows Setup. 應用程式是透過中的子資料夾從發佈共用新增的 $OEM$Applications are added from distribution shares through subfolders in $OEM$. 您也必須將 RunSynchronous 設定新增至回應檔案,以開啟 Windows Installer 檔案或安裝應用程式的 .exe 檔案。You must also add a RunSynchronous setting to the answer file to open the Windows Installer file or the .exe file that installs the application. 如需詳細資訊,請參閱 如何管理發佈共用中的檔案和資料夾For more information, see How to Manage Files and Folders in a Distribution Share.

將離線更新新增至 Windows 映像Add Updates to a Windows Image Offline

Windows SIM 可將離線更新新增至 Windows 映像。Windows SIM enables the addition of offline updates to a Windows image. 這些更新包括 Microsoft 提供的軟體更新、設備磁碟機、語言套件及其他套件。These updates include software updates, device drivers, language packs, and other packages, which Microsoft provides.

DISM.exe 是您使用的工具(不論是否有回應檔案),以將套件套用至 Windows。DISM.exe is the tool that you use, with or without an answer file, to apply packages to Windows. 系統會將回應檔案中的任何套件安裝、移除或修改套用至 Windows 映像。Any package installation, removal, or modification in the answer file is applied to the Windows image. 如需詳細資訊,請參閱 如何離線新增或移除封裝For more information, see How to Add or Remove Packages Offline.

存在於 offlineServicing 設定階段中的套件會套用至離線 Windows 映像。Packages that exist in the offlineServicing configuration pass are applied to the offline Windows image. 如需詳細資訊,請參閱 Windows 影像檔案和目錄檔案總覽For more information, see Windows Image Files and Catalog Files Overview.

Create a Configuration SetCreate a Configuration Set

組態集是發佈共用中可用的檔案子集,在回應檔案中明確呼叫。A configuration set is a subset of files that are available in a distribution share that is explicitly called in an answer file. 當您建立設定集時,回應檔案中所參考之發佈共用中的任何檔案都會儲存至特定資料夾。When you create a configuration set, any files in a distribution share that are referenced in the answer file are saved to a specific folder. 在回應檔案中會更新這些檔案的路徑以指向特定資料夾。Paths to these files are updated in the answer file to point to the specific folder.

設定集是發佈共用的較小、更便攜的版本。Configuration sets are smaller, more portable versions of a distribution share. 組態集非常適用於無法存取發佈共用的安裝。A configuration set is ideal for installations that cannot access a distribution share. 如需詳細資訊,請參閱 發佈共用和設定集總覽For more information, see Distribution Shares and Configuration Sets Overview.

將封裝匯入發佈共用Import Packages to a Distribution Share

Windows SIM 將不是 Windows 映像檔案一部分的封裝匯入至一組稱為「發佈共用」的選擇性資料夾。Windows SIM imports packages that are not part of a Windows image file to an optional set of folders called a distribution share. 然後,您可以從發佈共用將套件新增至回應檔案。You can then add packages to an answer file from the distribution share. 若要將封裝匯入至發佈共用,您必須使用 Windows SIM 工具或元件平台介面 (CPI) Api。To import a package to a distribution share, you must use the Windows SIM tool or the Component Platform Interface (CPI) APIs. 如需詳細資訊,請參閱 發佈共用和設定集總覽For more information, see Distribution Shares and Configuration Sets Overview.

您也可以直接將封裝匯入回應檔案中。You can also import a package directly into an answer file. 回應檔案包括封裝路徑的指標。The answer file includes a pointer to the path of the package.

Windows 安裝程式技術參考Windows Setup Technical Reference

部署映射服務與管理 (DISM) 技術參考Deployment Image Servicing and Management (DISM) Technical Reference

系統準備 (Sysprep) 技術參考System Preparation (Sysprep) Technical Reference