RestartSystem forces a system reboot or triggers reboots based on pending reboot conditions (Windows Update, CBS, file rename, computer rename).
Use this resource when your DSC configuration requires a reboot between steps, such as after installing Windows features, renaming the computer, or applying updates. It can also detect and act on pending reboot conditions from Component-Based Servicing, Windows Update, or pending file renames.
The DSC resource supports only one system reboot inside the DSC configuartion of a node. You can control the system reboot time by ordering the activated configurations in the YAML files (e.g. RestartSystem at last if you want a restart at the end of your configuration).
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
ForceReboot |
Boolean |
Force a system reboot Only one reboot after first start of a DSC configuration is supported. |
|
|
PendingReboot |
Boolean |
Checks for pending system reboots |
|
|
SkipComponentBasedServicing |
Boolean |
Specifies whether to skip pending reboots triggered by the Component-Based Servicing component. |
|
|
SkipWindowsUpdate |
Boolean |
Specifies whether to skip pending reboots triggered by Windows Update. |
|
|
SkipPendingFileRename |
Boolean |
Specifies whether to skip pending file rename reboots. |
|
|
SkipPendingComputerRename |
Boolean |
Specifies whether to skip pending reboots triggered by a pending computer rename. |
|
|
SkipCcmClientSDK |
Boolean |
Specifies whether to skip pending reboots triggered by the ConfigMgr client. |
|
RestartSystem:
ForceReboot: true
PendingReboot: true
SkipCcmClientSDK: false