restart
The restart command will restart the computer. If the optional <delay seconds> parameter is provided, the shutdown will happen automatically after the specified delay.
If a user is logged in, a dialog will be displayed that shows the delay counting down. In this case, the interface will have a Restart Now button instead of a Cancel button. Also, when the Client UI is showing, there is a 60 second minimum delay before restarting.
If the delay parameter is not specified, the user is prompted to press a button to restart the computer.
Syntax
restart [<delay seconds>]
Where delay seconds is an optional parameter to provide a lag before restarting.
Example
restart 180
Restarts the computer in three minutes.
Note
The delayed restart is a forced restart; it will not prompt the user to save changes to documents, etc. The machine will restart without further prompting.
Version 5.1 and above