啟用 S 模式

本主題說明如何將 S 模式新增至支援的 Windows 桌上出版本。 下列資訊僅適用于 Windows 10 1803 版或更新版本。

概觀

從 Windows 10 1803 版開始,您可以在支援的版本上啟用 S 模式。 這是舊版 Windows 的變更,Windows 10 S 是其本身的基底媒體版本。 若要啟用 S 模式,您將建立自動安裝檔案,然後使用 DISM 將自動安裝檔案套用至掛接的 Windows 映像。

建議您同時啟用 S 模式,並新增您的製造金鑰。 我們會示範如何在 S 模式部署實驗室中執行這項操作,以及在 Windows 桌上出版實驗室的 OEM 部署 中執行這項操作。

啟用 S 模式

若要在 Windows 映像中啟用 S 模式,請使用在 Pass 2 - offlineServicing 中設定的自動安裝檔案,並使用 DISM 將它套用至掛接的 Windows 映像。

  1. 掛接您的 Windows 映像。

  2. 使用 Windows SIM 建立或修改自動安裝檔案。

  3. amd64_Microsoft_Windows_CodeIntegrity 元件新增至傳遞 2 個離線服務。

  4. 將 amd64_Microsoft_Windows_CodeIntegrity\SkuPolicyRequired 設定為 1 。 unattend.xml檔案中的離線服務傳遞看起來應該像這樣:

    <settings pass="offlineServicing">
    <component name="Microsoft-Windows-CodeIntegrity" 
                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">
        <SkuPolicyRequired>1</SkuPolicyRequired>
    </component>
    </settings>
    
  5. 將回應檔案儲存在 Windows\Panther 掛接映射的 資料夾中,作為unattend.xml。

  6. 使用 DISM 來套用自動安裝檔案並啟用 S 模式:

    dism /image:C:\mount\windows /apply-unattend:C:\mount\windows\windows\panther\unattend.xml
    

    注意

    使用 DISM 套用自動安裝檔案時,只會處理傳遞 2 - 離線服務。

S 模式現在會套用至 Windows 映像。 當電腦開機時,將會在您的 Windows 安裝上強制執行程式碼完整性原則。 如果您要將電腦開機進入稽核模式,則必須啟用製造模式。 啟用製造模式 描述如何執行此作業。