System.Reboot
Top  Previous  Next


Reboots 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.Reboot 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 reboots immediately. Otherwise, the computer is rebooted when the timer expires.  

Message
Message to display in the reboot 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
Reboot \\maggie in 20 seconds, prompt user to close applications

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

[Machines_Begin]
\\MAGGIE
[Machines_End]

[Batch_Begin]
System.Reboot 20,Scheduled maintenance.,No   
[Batch_End]