This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computing:windows:reboot [2012/01/27 13:55] gcooper created |
computing:windows:reboot [2017/05/06 12:00] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Reboot a Windows Server ====== | + | ====== |
- | ===== Reboot Now ===== | + | ===== From Linux ===== |
- | ===== Reboot Later ===== | + | :!: Use a username with admin privileges. |
+ | |||
+ | :!: You will need the '' | ||
+ | |||
+ | * '' | ||
+ | |||
+ | < | ||
+ | net rpc shutdown -r -f -I xxx.xxx.xxx.xxx -U username | ||
+ | </ | ||
+ | |||
+ | ===== Do It Now ===== | ||
+ | |||
+ | Reboot | ||
+ | |||
+ | < | ||
+ | shutdown -r -t 0 | ||
+ | </ | ||
+ | |||
+ | Shutdown now showing a dialog box with a timer (in seconds): | ||
+ | |||
+ | < | ||
+ | shutdown -s -t 60 | ||
+ | </ | ||
+ | |||
+ | With a timer and a message: | ||
+ | |||
+ | < | ||
+ | shutdown -s -t 120 -c " | ||
+ | </ | ||
+ | |||
+ | Shutdown another computer in your domain: | ||
+ | |||
+ | < | ||
+ | shutdown -s -m \\computername -t 10 | ||
+ | </ | ||
+ | |||
+ | Cancel a shutdown: | ||
+ | < | ||
+ | |||
+ | shutdown -a | ||
+ | </ | ||
+ | |||
+ | ===== Do It Later ===== | ||
==== Using the ' | ==== Using the ' | ||
- | Download and extract the [[http:// | + | Download and extract the [[http:// |
Use the ' | Use the ' | ||
Line 32: | Line 74: | ||
==== Using the Task Scheduler ==== | ==== Using the Task Scheduler ==== | ||
+ | |||
+ | === Windows 2003/2008 === | ||
http:// | http:// | ||
+ | === Windows 2008 R2 === | ||
+ | |||
+ | http:// | ||
+ | |||
+ | **Task Scheduler -> Action -> Create Task -> General** | ||
+ | |||
+ | - **Name** the task '' | ||
+ | - Use the '' | ||
+ | - **Select** '' | ||
+ | - **Configure** for '' | ||
+ | |||
+ | **Task Scheduler -> Action -> Create Task -> Triggers** | ||
+ | |||
+ | - **On a schedule** | ||
+ | - **One time** | ||
+ | |||
+ | :!: We add two actions, one to warn users and the other to reboot the server. | ||
+ | |||
+ | **Task Scheduler -> Action -> Create Task -> Actions** | ||
+ | |||
+ | - Set the **Action** to '' | ||
+ | - Set the **Program** to '' | ||
+ | - Set the **Arguments** to '' | ||
+ | |||
+ | **Task Scheduler -> Action -> Create Task -> Actions** | ||
+ | |||
+ | - Set the **Action** to '' | ||
+ | - Set the **Program** to '' | ||
+ | - Set the **Arguments** to ''/ | ||
+ | - Set **Start in** to '' | ||
+ | - Set the **Comments** to '' | ||
+ | |||
+ | === Windows 2012 R2 === | ||
+ | |||
+ | **Task Scheduler -> Action -> Create Task -> General** | ||
+ | |||
+ | - **Name** the task '' | ||
+ | - **Use** the '' | ||
+ | - **Select** '' | ||
+ | - **Configure** for '' | ||
+ | |||
+ | **Task Scheduler -> Action -> Create Task -> Triggers** | ||
+ | |||
+ | - **New** | ||
+ | - **On a schedule** | ||
+ | - **One time** | ||
+ | - Set the **date and time** of the desired reboot | ||
+ | - **Stop task if it runs longer than** '' | ||
+ | - **OK** | ||
+ | |||
+ | :!: We add two actions, one to warn users and the other to reboot the server. | ||
+ | |||
+ | **Task Scheduler -> Action -> Create Task -> Actions** | ||
+ | |||
+ | - **New** | ||
+ | - Set the **Action** to '' | ||
+ | - Set the **Program** to '' | ||
+ | - Set the **Arguments** to '' | ||
+ | - **OK** | ||
+ | |||
+ | **Task Scheduler -> Action -> Create Task -> Actions** | ||
+ | - **New** | ||
+ | - Set the **Action** to '' | ||
+ | - Set the **Program** to '' | ||
+ | - Set the **Arguments** to ''/ | ||
+ | - Set **Start in** to '' | ||
+ | - **OK** | ||
+ | :!: You can easily export saved tasks to be imported to other machines. |