User Tools

Site Tools


computing:windows:reboot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:windows:reboot [2015/03/26 15:54]
gcooper
computing:windows:reboot [2017/05/06 12:00] (current)
gcooper
Line 85: Line 85:
 **Task Scheduler -> Action -> Create Task -> General** **Task Scheduler -> Action -> Create Task -> General**
  
-  - Name the task "Reboot" +  - **Name** the task ''Scheduled Reboot'' 
-  - Use the following user account "SYSTEM" +  - Use the ''SYSTEM'' **user account** 
-  - Select "Run with highest privileges" +  - **Select** ''Run with highest privileges'' 
-  - Configure for "Windows 2008 R2"+  - **Configure** for ''Windows 2008 R2''
  
 **Task Scheduler -> Action -> Create Task -> Triggers** **Task Scheduler -> Action -> Create Task -> Triggers**
  
-  - //On a schedule// +  - **On a schedule** 
-  - //One time//+  - **One time**
  
 :!: We add two actions, one to warn users and the other to reboot the server. :!: We add two actions, one to warn users and the other to reboot the server.
Line 99: Line 99:
 **Task Scheduler -> Action -> Create Task -> Actions** **Task Scheduler -> Action -> Create Task -> Actions**
  
-  - Set the //Action// to ''Start a program'' +  - Set the **Action** to ''Start a program'' 
-  - Set the //Program// to ''C:\Windows\System32\msg.exe'' +  - Set the **Program** to ''C:\Windows\System32\msg.exe'' 
-  - Set the //Arguments// to ''* "Please log out now.  This server is rebooting in 5 minutes!"''+  - Set the **Arguments** to ''* "Please log out now.  This server is rebooting in 5 minutes!"''
  
 **Task Scheduler -> Action -> Create Task -> Actions** **Task Scheduler -> Action -> Create Task -> Actions**
  
-  - Set the //Action// to ''Start a program'' +  - Set the **Action** to ''Start a program'' 
-  - Set the //Program// to ''C:\Windows\System32\shutdown.exe'' +  - Set the **Program** to ''C:\Windows\System32\shutdown.exe'' 
-  - Set the //Arguments// to ''/r /f /t 300 /c "Scheduled Reboot" /d p:4:1'' +  - Set the **Arguments** to ''/r /f /t 300 /c "Scheduled Reboot" /d p:4:1'' 
-  - Set //Start in// to ''c:\windows\system32''+  - Set **Start in** to ''c:\windows\system32'' 
 +  - Set the **Comments** to ''Reboot in 5 minutes with reason as 'Application: Maintenance (Planned)'''
  
 === Windows 2012 R2 === === Windows 2012 R2 ===
Line 114: Line 115:
 **Task Scheduler -> Action -> Create Task -> General** **Task Scheduler -> Action -> Create Task -> General**
  
-  - Name the task "Reboot" +  - **Name** the task ''Scheduled Reboot'' 
-  - Use the following user account "SYSTEM" +  - **Use** the ''SYSTEM'' user account 
-  - Select "Run with highest privileges" +  - **Select** ''Run with highest privileges'' 
-  - Configure for "Windows 2012 R2"+  - **Configure** for ''Windows 2012 R2''
  
 **Task Scheduler -> Action -> Create Task -> Triggers** **Task Scheduler -> Action -> Create Task -> Triggers**
  
-  - ''New'' +  - **New** 
-  - ''On a schedule'' +  - **On a schedule** 
-  - ''One time'' +  - **One time** 
-  - Set the date and time of the desired reboot +  - Set the **date and time** of the desired reboot 
-  - ''Stop task if it runs longer than'' 30 minutes +  - **Stop task if it runs longer than** ''30 minutes'' 
-  - OK+  - **OK**
  
 :!: We add two actions, one to warn users and the other to reboot the server. :!: We add two actions, one to warn users and the other to reboot the server.
Line 132: Line 133:
 **Task Scheduler -> Action -> Create Task -> Actions** **Task Scheduler -> Action -> Create Task -> Actions**
  
-  - Set the ''Action'' to ''Start a program'' +  - **New** 
-  - Set the ''Program'' to ''C:\Windows\System32\msg.exe'' +  - Set the **Action** to ''Start a program'' 
-  - Set the ''Arguments'' to ''* "Please log out now.  This server is rebooting in 5 minutes!"''+  - Set the **Program** to ''C:\Windows\System32\msg.exe'' 
 +  - Set the **Arguments** to ''* "Please log out now.  This server is rebooting in 5 minutes!"'' 
 +  - **OK**
  
 **Task Scheduler -> Action -> Create Task -> Actions** **Task Scheduler -> Action -> Create Task -> Actions**
  
-  - ''New'' +  - **New** 
-  - Set the ''Action'' to ''Start a program'' +  - Set the **Action** to ''Start a program'' 
-  - Set the //Program// to ''C:\Windows\System32\shutdown.exe'' +  - Set the **Program** to ''C:\Windows\System32\shutdown.exe'' 
-  - Set the //Arguments// to ''/r /f /t 300 /c "Scheduled Reboot" /d p:4:1'' +  - Set the **Arguments** to ''/r /f /t 300 /c "Scheduled Reboot" /d p:4:1'' 
-  - Set //Start in// to ''c:\windows\system32''+  - Set **Start in** to ''c:\windows\system32'' 
 +  - **OK**
  
 +:!: You can easily export saved tasks to be imported to other machines.
computing/windows/reboot.1427406869.txt.gz · Last modified: 2015/03/26 15:54 by gcooper