“模式”Mode

ModeForceShutdownNow 设置一起使用,以指示计算机是在审核模式下启动,还是在 (OOBE) 的现成体验下启动。Mode is used with the ForceShutdownNow setting to indicate whether the computer starts in audit mode or Out-of-Box-Experience (OOBE). 有关模式的详细信息,请参阅 配置阶段 主题。For more information about modes, see the Configuration Passes topic.

Reseal 是特殊情况下的设置。Reseal is a special-case setting. 它在配置阶段中的任何其他设置之前进行处理。It is processed before any other setting in the configuration pass. 在某些情况下,它会指示 Windows 安装程序处理或忽略该配置阶段中的所有其他设置,然后再开始另一个配置阶段。In some scenarios, it instructs Windows Setup either to process or to ignore all other settings in that configuration pass before starting another 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

审核Audit

falsefalse

启动 auditSystem 配置阶段。Starts the auditSystem configuration pass.

auditSystemauditSystem

审核Audit

truetrue

警告 Caution

不支持。Unsupported. 请勿使用。Do not use. 将计算机设置为重新启动循环。Sets the computer into a loop of reboots.

auditSystemauditSystem

OOBEOOBE

falsefalse

  1. 忽略 auditSystem 配置阶段中的所有其他设置。Ignores all other settings in the auditSystem configuration pass.

  2. 启动 oobeSystem 配置阶段。Starts the oobeSystem configuration pass.

auditSystemauditSystem

OOBEOOBE

truetrue

  1. 忽略 auditSystem 配置阶段中的所有其他设置。Ignores 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

审核Audit

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

审核Audit

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

审核Audit

falsefalse

  1. 忽略 oobeSystem 配置阶段中的所有其他设置。Ignores all other settings in the oobeSystem configuration pass.

  2. 启动 auditSystem 配置阶段。Starts the auditSystem configuration pass.

oobeSystemoobeSystem

审核Audit

truetrue

  1. 忽略 oobeSystem 配置阶段中的所有其他设置。Ignores 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

警告 Caution

不支持。Unsupported. 请勿使用。Do not use. 将计算机设置为重新启动循环。Sets the computer into a loop of reboots.

Values

审核Audit

指定计算机在审核模式下启动。Specifies that the computer starts in audit mode.

OOBEOOBE

指定计算机在 OOBE 模式下启动。Specifies that the computer starts in OOBE mode.

(无值/默认值) (no value / default)

  • auditSystem 配置阶段期间,如果 Mode 未指定,则 Mode 默认为 " 审核"。During the auditSystem configuration pass, if Mode is not specified, then Mode defaults to Audit.

  • auditUser 配置阶段期间,如果 Mode 未指定,则计算机将显示 Sysprep 工具's 用户界面 (UI) ,并提示用户在 审核OOBE 模式之间进行选择。During the auditUser configuration pass, if Mode is not specified, then the computer shows the Sysprep tool's user interface (UI), prompting the user to select between Audit or OOBE mode.

  • oobeSystem 配置阶段期间,如果 Mode 未指定,则 Mode 默认为 oobe.xmlDuring the oobeSystem configuration pass, if Mode is not specified, then Mode defaults to OOBE.

有效的配置阶段Valid Configuration Passes

auditSystemauditSystem

auditUserauditUser

oobeSystemoobeSystem

父层次结构Parent Hierarchy

Microsoft-Windows 部署 | 重新 封装 | 模式Microsoft-Windows-Deployment | Reseal | Mode

应用于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>

ResealReseal

ForceShutdownNowForceShutdownNow