Register-SystemShutdown
PackageDeployment Module Help |
Package Deployment Module |
Register-SystemShutdown Cmdlet |
Version 4.0.0.5 |
Register-SystemShutdown
Synopsis
Initiate System Shutdown
Syntax
Register-SystemShutdown [[-Timeout] <Int32>] [[-Message] <String[]>] [[-Context] <String>] [-AskUser] [-ContinueOnError] [-ForceLogoff] [-Restart] [<CommonParameters>]
Description
Use this command to shut down a Windows workstation and optionally reboot it.
Parameters
-AskUser <SwitchParameter> |
||||||
Ask user before shutting down Windows. |
||||||
|
-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 |
||||||
|
-ForceLogoff <SwitchParameter> |
||||||
Currently running applications will be shut down and all unsaved data will be lost. The system will shut down without the user being prompted once more; the user cannot prevent the shutdown. |
||||||
|
-Message <String[]> |
||||||
Enter an additional message that will be displayed when a Windows workstation shuts down. |
||||||
|
-Restart <SwitchParameter> |
||||||
The workstation will be rebooted after shutdown. |
||||||
|
-Timeout <Int32> |
||||||
Enter the time in seconds before the Windows NT workstation will shut down. |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |