Window update auto reboot schedule

Posted on 2014-10-19
Last Modified: 2014-10-23
I have configure Window Update setting to "Install Update automatically (recommended). Is it possible to configure a reboot schedule , say make sure it reboot during the weekend ? I'm have Window 2008 & 2012 servers,

Question by:AXISHK
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
LVL 13

Expert Comment

by:Norm Dickinson
ID: 40391208
You should be able to control this from Control Panel > Windows Updates. Click on Change Settings. Choose the day and time you wish to use.

Author Comment

ID: 40391217
Attached please find the setting on my Window 2012. I can't find a setting related to reboot time. Tks
LVL 35

Expert Comment

by:Seth Simmons
ID: 40391225
configure group policy
computer configuration -> administrative templates -> windows components -> windows update
change 'configure automatic updates' to 4 for auto download and schedule the install
then choose the scheduled day and time
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

LVL 29

Assisted Solution

becraig earned 200 total points
ID: 40391227
You can schedule a reboot but I would suggest you check for a pending reboot then restart the computer.

You can set a scheduled task to run each weekend and have it check for a pending reboot.

Here is an easy script you can schedule:
# Filename:      CheckForPendingReboot.ps1
# Description:   Imports a list of computers from a CSV file and then checks each of the
#                computers for the RebootPending registry key. If the key is present, 
#                the script restarts the computer upon confirmation from the user.

$CSVPath = "C:\myscripts\computers.csv"
$Computers = Import-CSV -Path $CSVPath 

ForEach ($Machine in $Computers)
   $baseKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMachine", $Machine.computername)
   $key = $baseKey.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\")
   $subkeys = $key.GetSubKeyNames()

   If ($subkeys | Where {$_ -eq "RebootPending"}) 
      Write-Host "There is a pending reboot for" $Machine.computername
      Restart-Computer -ComputerName $Machine.computername -confirm
      Write-Host "No reboot is pending for" $Machine.computername

Open in new window


Author Comment

ID: 40391228
To configure group policy, can I just configure it on the local policy (ie, a single server itself) rather than the Domain policy ?  

LVL 35

Accepted Solution

Seth Simmons earned 300 total points
ID: 40391232
group policy makes it easier if you have a large number of systems but if there is only a small number and you don't mind touching individually you can do that also.  just open gpedit.msc and navigate to the same place i mentioned earlier
LVL 13

Expert Comment

by:Norm Dickinson
ID: 40391670
Alternately you can always set it to not be automatic and instead require interaction before installation of the updates.

Author Closing Comment

ID: 40399194

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The reason that corporations and businesses use Windows servers is because it supports custom modifications to adapt to the business and what it needs. Most individual users won’t need such powerful options. Here I’ll explain how you can enable Wind…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question