Register-SystemRestart
PackageDeployment Module Help |
Package Deployment Module |
Register-SystemRestart Cmdlet |
Version 4.0.0.5 |
Register-SystemRestart
Synopsis
System Reset
Syntax
Register-SystemRestart [[-Context] <String>] [-AlwaysAskUser] [-ContinueOnError] [<CommonParameters>]
Description
Use this command to shut down Windows and restart the computer.
Parameters
-AlwaysAskUser <SwitchParameter> |
||||||
If the package is executed interactively, the user always needs to confirm the restart. If the package is executed automatically and you want the user to confirm the restart anyway, you must select this option when adding the command to the script. |
||||||
|
-Context <String> |
||||||
User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
||||||
|
-ContinueOnError <SwitchParameter> |
||||||
Continues script execution in spite of errors in the respective command |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |