This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:windows:reboot [2012/01/28 11:24] gcooper |
computing:windows:reboot [2017/05/06 12:00] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Shut Down or Reboot a Windows Server ====== | ====== Shut Down or Reboot a Windows Server ====== | ||
+ | |||
+ | ===== From Linux ===== | ||
+ | |||
+ | :!: 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 ===== | ===== Do It Now ===== | ||
Line 6: | Line 18: | ||
< | < | ||
- | shutdown -r | + | shutdown -r -t 0 |
</ | </ | ||
Line 62: | 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. |