Solved

Automatic reboot after Windows Update

Posted on 2011-02-17
3
459 Views
Last Modified: 2012-05-11
We are having an issue with Windows Update on a fresh Windows 7 image. According to the registry additions (see attached) we're pushing with the setup script, we believe after Windows Update is finished with the patches received from WSUS, the client SHOULD automatically reboot.  But it isn't--it waits for someone to do it manually or approve a reboot.

Has anyone experienced this before and can you tell us if our reg hack looks right?


reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
/v ElevatenNonAdmins /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
/v WUServer /t REG_SZ /d http://wsus.gallaudet.edu /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
/v WUStatusServer /t REG_SZ /d http://wsus.gallaudet.edu /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v AUOptions /t REG_DWORD /d 4 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v AUPowerManagement /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v AutoInstallMinorUpdates /t REG_DWORD /d 0 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v DetectionFrequency /t REG_DWORD /d 6 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v DetectionFrequencyEnabled /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v IncludeRecommendedUpdates /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v NoAutoUpdate /t REG_DWORD /d 0 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 0 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v RebootWarningTimeout /t REG_DWORD /d 5 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v RebootWarningTimeoutEnabled /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v RescheduleWaitTime /t REG_DWORD /d 5 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v RescheduleWaitTimeEnabled /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v ScheduledInstallDay /t REG_DWORD /d 0 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v ScheduledInstallTime /t REG_DWORD /d 3 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v UseWUServer /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v RebootRelaunchTimeout /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v RebootRelaunchTimeoutEnabled /t REG_DWORD /d 1 /f

Open in new window

0
Comment
Question by:ITS-DCO
  • 2
3 Comments
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 34918399
You have this key "reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
/v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 0"


Set correctly, so unless the updates specifically require a reboot(Not all do) then clients wont reboot.

So it's a matter of whether or not a reboot is needed by the updates themselves.
0
 

Author Comment

by:ITS-DCO
ID: 34942307
Okay, thanks. We will test and report back!
0
 
LVL 47

Accepted Solution

by:
Donald Stewart earned 500 total points
ID: 34943789
If you are curious and want to detect if clients are in a pending reboot state you could use the script at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wua_sdk/wua/using_wua_to_scan_for_updates_offline.asp and replace "IsInstalled=0" with "RebootRequired=1".

0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RDP Error - An Internal Error Has Occurred 7 24
Upgrading Windows 7 2 24
Network adapter disconnected 4 19
GPO to push shortcuts to computers in the domain 5 18
So many times I have seen the words written in a question "if only I could show you" or " I know how hard it is for you since you can't see it" in any zone. That has inspired me to write about this tool in windows 7 called "Problem Steps Recorder…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

821 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