ForceShutdownNow
ForceShutdownNow
specifies whether the computer shuts down immediately after the Mode setting is applied.
The following table provides scenarios for each combination of configuration pass, mode, and forced shutdown behavior.
Configuration pass | Mode value | ForceShutdownNow value | Result |
---|---|---|---|
auditSystem |
Audit |
false |
The auditSystem pass starts. |
auditSystem |
Audit |
true |
Prepares the operating system to start in auditSystem, and shuts the computer down immediately with no user interaction. |
auditSystem |
OOBE |
false |
The oobeSystem pass starts. |
auditSystem |
OOBE |
true |
Prepares the operating system to start in oobeSystem, and shuts the computer down immediately with no user interaction. |
auditUser |
Audit |
false |
The computer restarts into the auditSystem pass at the end of the auditUser pass. |
auditUser |
Audit |
true |
Prepares the operating system to start in auditSystem, and shuts the computer down immediately with no user interaction. |
auditUser |
OOBE |
false |
The computer restarts into the oobeSystem pass at the end of the auditUser pass. |
auditUser |
OOBE |
true |
Prepares the operating system to start in oobeSystem, and immediately shuts the computer down without any end-user interaction at the end of the auditUser pass. |
oobeSystem |
Audit |
false |
The auditSystem pass starts. |
oobeSystem |
Audit |
true |
Prepares the operating system to start in auditSystem, and shuts the computer down immediately with no user interaction. |
oobeSystem |
OOBE |
false |
The oobeSystem pass starts. |
oobeSystem |
OOBE |
true |
Prepares the operating system to start in oobeSystem, and shuts the computer down immediately with no user interaction. |
Reseal
is a special-case setting. For the auditSystem and oobeSystem passes, it is manually processed before the actual configuration pass is instantiated. For example, if the configuration pass is auditSystem, Reseal
is processed before instantiating the pass and determines whether oobeSystem runs instead and manages the transition. If the configuration pass is oobeSystem, this means that all remaining oobeSystem settings, such as FirstLogonCommands, are ignored if the Mode value is Audit and ForceShutdownNow is set to false.
For the auditUser pass, it is processed after all other answer file settings in that pass.
Values
true |
The computer shuts down immediately after the |
false |
The computer does not shut down immediately after the |
The default value for Mode and ForceShutdownNow
depends on the configuration pass that is running.
During the auditSystem configuration pass, the default values are:
- Mode: Audit
ForceShutdownNow
: false
During the oobeSystem configuration pass, the default values are:
- Mode: OOBE
ForceShutdownNow
: false
During the auditUser configuration pass, if Mode is not specified, the computer will show the Sysprep user interface (UI).
Valid Passes
Parent Hierarchy
Microsoft-Windows-Deployment | Reseal | ForceShutdownNow
Applies To
For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Deployment.
XML Example
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>