重新封裝Reseal

Reseal 指出電腦是否在下一次啟動時,電腦是否以 audit 模式或 Windows 全新體驗執行 (OOBE) 。Reseal indicates whether the computer runs in audit mode or Windows Out-of-Box Experience (OOBE) when the computer is next started. 如需模式的詳細資訊,請參閱設定 階段For more information about modes, see Configuration Passes.

在 Windows 10 之前, Reseal 是特殊案例設定,會導致在 auditSystem 或 oobeSystem 設定階段中指定時,略過相同設定階段中的所有其他設定。Prior to Windows 10, Reseal was a special-case setting which caused all other settings in the same configuration pass to be skipped when specified in the auditSystem or oobeSystem configuration passes. 在 Windows 10 中,重新封裝一律會在相同設定階段中的所有其他設定之後處理。In Windows 10, Reseal is always processed after all other settings in the same configuration pass.

下表提供每個設定階段、模式和強制關機行為組合的案例。The following table provides scenarios for each combination of configuration pass, mode, and forced-shutdown behavior. 當設定階段有一個以上的結果時,資料表會依所發生的順序來列出結果。When a configuration pass has more than one result, the table lists the results in the order that they take place.

設定階段Configuration pass 模式值Mode value ForceShutdownNow 值ForceShutdownNow value 結果Result

auditSystemauditSystem

AuditAudit

falsefalse

啟動 auditSystem 設定階段。Starts the auditSystem configuration pass.

auditSystemauditSystem

AuditAudit

truetrue

  1. 處理 auditSystem 設定階段中的所有其他設定。Processes all other settings in the auditSystem configuration pass.

  2. 準備 Windows 安裝程式以啟動 auditUser 設定階段。Prepares Windows Setup to start the auditUser configuration pass.

  3. 立即關閉電腦,無終端使用者互動。Shuts the computer down immediately with no end-user interaction.

auditSystemauditSystem

OOBEOOBE

falsefalse

  1. 處理 auditSystem 設定階段中的所有其他設定。Processes all other settings in the auditSystem configuration pass.

  2. 啟動 oobeSystem 設定階段。Starts the oobeSystem configuration pass.

auditSystemauditSystem

OOBEOOBE

truetrue

  1. 處理 auditSystem 設定階段中的所有其他設定。Processes all other settings in the auditSystem configuration pass.

  2. 準備 Windows 安裝程式以啟動 oobeSystem 設定階段。Prepares Windows Setup to start the oobeSystem configuration pass.

  3. 立即關閉電腦,無終端使用者互動。Shuts the computer down immediately with no end-user interaction.

auditUserauditUser

AuditAudit

falsefalse

  1. 處理 auditUser 設定階段中的所有其他設定。Processes all other settings in the auditUser configuration pass.

  2. 準備 Windows 安裝程式以啟動 auditSystem 設定階段。Prepares Windows Setup to start the auditSystem configuration pass.

  3. 重新啟動電腦。Restarts the computer.

auditUserauditUser

AuditAudit

truetrue

  1. 處理 auditUser 設定階段中的所有其他設定。Processes all other settings in the auditUser configuration pass.

  2. 準備 Windows 安裝程式以啟動 auditSystem 設定階段。Prepares Windows Setup to start the auditSystem configuration pass.

  3. 立即關閉電腦,無終端使用者互動。Shuts the computer down immediately with no end-user interaction.

auditUserauditUser

OOBEOOBE

falsefalse

  1. 處理 auditUser 設定階段中的所有其他設定。Processes all other settings in the auditUser configuration pass.

  2. 準備 Windows 安裝程式以啟動 oobeSystem 設定階段。Prepares Windows Setup to start the oobeSystem configuration pass.

  3. 重新啟動電腦。Restarts the computer.

auditUserauditUser

OOBEOOBE

truetrue

  1. 處理 auditUser 設定階段中的所有其他設定。Processes all other settings in the auditUser configuration pass.

  2. 準備 Windows 安裝程式以啟動 oobeSystem 設定階段。Prepares Windows Setup to start the oobeSystem configuration pass.

  3. 立即關閉電腦,無終端使用者互動。Shuts the computer down immediately with no end-user interaction.

oobeSystemoobeSystem

AuditAudit

falsefalse

  1. 處理 oobeSystem 設定階段中的所有其他設定。Processes all other settings in the oobeSystem configuration pass.

  2. 啟動 auditSystem 設定階段。Starts the auditSystem configuration pass.

oobeSystemoobeSystem

AuditAudit

truetrue

  1. 處理 oobeSystem 設定階段中的所有其他設定。Processes all other settings in the oobeSystem configuration pass.

  2. 準備 Windows 安裝程式以啟動 auditSystem 設定階段。Prepares Windows Setup to start the auditSystem configuration pass.

  3. 立即關閉電腦,無終端使用者互動。Shuts the computer down immediately with no end-user interaction.

oobeSystemoobeSystem

OOBEOOBE

falsefalse

啟動 oobeSystem 設定階段。Starts the oobeSystem configuration pass.

oobeSystemoobeSystem

OOBEOOBE

truetrue

  1. 處理 oobeSystem 設定階段中的所有其他設定。Processes all other settings in the oobeSystem configuration pass.

  2. 準備 Windows 安裝程式在 OOBE) (執行 Windows 全新體驗。Prepares Windows Setup to run the Windows Out-of-Box Experience (OOBE).

  3. 立即關閉電腦,無終端使用者互動。Shuts the computer down immediately with no end-user interaction.

子元素Child Elements

設定Setting 描述Description
ForceShutdownNowForceShutdownNow 指定是否要在套用設定後立即關閉電腦 ModeSpecifies whether the computer shuts down immediately after the Mode setting is applied.
ModeMode 指定電腦是以 audit 模式或 OOBE 啟動。Specifies whether the computer starts in audit mode or OOBE.

有效的設定階段Valid Configuration Passes

auditSystemauditSystem

auditUserauditUser

oobeSystemoobeSystem

父階層Parent Hierarchy

Microsoft-Windows-部署 | 重新 封裝Microsoft-Windows-Deployment | Reseal

套用至Applies To

如需此元件所支援的 Windows 版本和架構清單,請參閱 Microsoft windows-部署For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-Deployment.

XML 範例XML Example

下列 XML 輸出顯示沒有非同步或同步命令的部署。The following XML output shows a deployment with no asynchronous or synchronous commands.

<AuditComputerName>
   <MustReboot>true</MustReboot>
   <Name>MyComputer</Name>
</AuditComputerName>
<ExtendOSPartition>
   <Extend>true</Extend>
</ExtendOSPartition>
<Reseal>
   <ForceShutdownNow>true</ForceShutdownNow>
   <Mode>Audit</Mode>
</Reseal>

Microsoft-Windows-DeploymentMicrosoft-Windows-Deployment