reboot()
Unconditionally reboots the managed machine. To warn the user first, use the isYesFromUser() command before this command. A isYesFromUser() command prompts the user before rebooting their machine.
Example
reboot("All Operating Systems", "Halt on Fail")
NOTE Reboot() or rebootWithWarning() must be the last statement in a procedure. If other statements are defined after it, the procedure may not be marked as complete before the agent goes offline and may execute again after the reboot. This can cause the reboot loop. If other activities need to be done after reboot, they should be defined in a separate procedure which can be called using a scheduleProcedure() statement prior the Reboot() or rebootWithWarning() statement.