System.Shutdown
Top  Previous  Next


Shuts down a machine

Notice: if you get an "Access is denied." error message you are probably using an admin account without sufficient privileges on the remote machine; please check "local security settings">"user rights assignment">force shutdown from a remote system" on the remote machine.

Category
General

Script section
All

System.Shutdown Timeout, Message, ForceAppsClosed

Timeout
Range: 0 - 86400 (86400 seconds = 24 hours)  
Specifies the time (in seconds) to wait for the user to log off. During the timeout, a dialog box is displayed with a timer and the message specified in the below message parameter. If the user logs off, the system shuts down immediately. Otherwise, the computer is shut down when the timer expires.  

Message
Message to display in the shutdown dialog box.  

ForceAppsClosed
Options: Yes | No  
Specifies whether applications with unsaved changes are to be forcibly closed. If "No", a dialog box is displayed prompting the user to close the applications.  

Other parameters
This command is executed on the current machine in the [Machines] section.  

Example
Shut down \\maggie immediately, do not prompt user to close applications

[Settings_Begin]
//At least one line here
[Settings_End]

[Machines_Begin]
\\MAGGIE
[Machines_End]

[Batch_Begin]
System.Shutdown 0,,Yes   
[Batch_End]