PatchZone in Application & ServerWhere is this forum or group located?

Log in to follow, share, and participate in this community. Not a member? Join Now!

HTML

Browse Patchzone Discussion Categories

Recent Blog Posts

Refresh this widget

On Thursday (May 9) Microsoft announced the forthcoming content for Patch Tuesday – May 14, 2013.


You can have Microsoft's security bulletins sent directly to you:

To receive automatic notifications whenever Microsoft Security Bulletins are issued, subscribe to Microsoft Technical Security Notifications.


Microsoft also hosts a webcast where they discuss the releases, typically the Wednesday after Patch Tuesday:

Microsoft will host a webcast to address customer questions on the security bulletins on May 15, 2013, at 11:00 AM Pacific Time (US & Canada).

Register now for the May Security Bulletin Webcast. After this date, the webcast is available on-demand.


You can also follow the MSRC team at @MSFTSecResponse.

Number of Releases: 10

Critical Security Updates: 2 addressing vulnerabilities in Windows and Internet Explorer.

Important Security Updates: 8 addressing vulnerabilities in Windows, Windows RT, Lync Server 2013, Lync 2010, Communicator 2007 R2,  Word 2003, Publisher 2003/2007/2010, Visio 2003/2007/2010, Windows Essentials 2011/2012


Updates are typically released by Microsoft at 10am PT (6pm UTC).

Configuring WSUS servers to synchronize relative to that time can be helpful in expediting availability of these security updates.

Over the previous weeks,  I‘ve posted a series of articles about the configuration options available for the Windows Update Agent, but knowing what those options are is only half the battle. One of the most significant challenges new WSUS Administrators face while implementing WSUS is getting the clients configured to communicate with the WSUS server. In this article, we’re going to walk through the steps necessary to make this happen.

Configure the WSUS Server as a Client

Before you dive down into Active Directory, OrgUnits, and Group Policy, always start with the simplest option – configuring the WSUS Server itself as a client. This provides two notable opportunities:

  • Since we’re going to use Local Policy, it eliminates all of the complications that are created by Active Directory and Group Policy.
  • Because the WSUS Server is the client, it also eliminates network communications as a complication.

 

In all of the configuration settings described in previous posts, only one of them is required to configure a system as a client of a WSUS server.

 

Log onto the WSUS Server as the local administrator and run GPEDIT.MSC.

Navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update

WSUSPolicySettings-LocalPolicyEditor.png

 

Specify Intranet Microsoft Update Service Location

Specify Intranet Microsoft Update Service Location - Policy.png

Enable this policy and provide the URL of your WSUS server in both fields of the dialog. The URL should be in the form http://servername. You also need to know whether WSUS was installed to port 80 or port 8530. If it was installed to port 8530, there is a virtual directory named “WSUS Administration” in IIS. In this case, the URL should be http://servername:8530. This information is also presented during WSUS installation on a dialog.

WSUS URL in Installer.png

Since we’re configuring a server, there is a second setting for which we should specify a non-default setting.

Configure Automatic Updates

Configure Automatic Updates - Policy.png

Enable this policy and set the dropdown to Option #3 – Auto download and notify for install. This will allow the WSUS server to transfer the installation files for approved updates from the “server” to the “client”, so they’re ready for installation when you choose to actually update the server.

 

Close the policy editor.

Apply the Policy to the System

Open a Command Prompt and run the command gpupdate /force /target:computer

 

This will apply the two settings you just configured to the system. Also, because the Windows Update Agent is aware of policy change events, this will automatically trigger an immediate detection event with the WSUS server configured in the URL.

Confirm the Policy Was Applied

One of the most common errors I see in configuring a client is assuming that the policy was applied. There are three ways you can verify policy settings have been applied.

1. Inspect the Registry

Open the Registry Editor, and navigate to HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

If the policy applied correctly, these five registry values will be present. (There may be others, but they don’t matter at this point.)

  • AUOptions – should be ‘3’
  • NoAutoUpdate – should be ‘1’
  • UseWUServer – should be ‘1’
  • WUServer – should be the value you entered in the policy settings dialog (e.g. http://servername or http://servername:8530)
  • WUStatusServer – should be identical to WUServer

2. Review the WindowsUpdate.log

At the time you ran the GPUPDATE command earlier, or anytime the Windows Update service is started, these entries of immediate interest will be made to the WindowsUpdate.log:

  • The current client version (if a successful connection was made to the WSUS server after applying the policy, the minimum WUAgent version should be v7.6. On Win8/Win2012 systems this will be v7.8.)
  • The URL of the WSUS server
  • The option chosen in Configure Automatic Updates (Option #3 = “Pre-install notify”)

 

3. Use the Free SolarWinds Diagnostic Tool for the WSUS Agent

This tool will inspect your registry, display all of the significant values found, and identify if any are inconsistent.

Confirm the WSUS Server Appears in the WSUS Console

Finally, after confirming the system has been properly configured, you should review the WSUS console to verify that the WSUS server is listed in the All Computers group.

Add Other Clients

Okay, so we’re done with the hard part. The easy part is just reproducing the above using Group Policy. The first step in using Group Policy is to understand your Active Directory Organizational Unit structure. The second step is to create a Group Policy Object (GPO). While the WSUS GPO can be linked at the domain level, it’s much more realistic that you will have more than one GPO (desktops, servers) and they will be linked by Organizational Unit. Survey your OrgUnits so that you know where the various  machine types are contained. Also consider additional behavioral configurations of the Windows Update Agent that may drive your need for additional GPOs.

Configure a Group Policy Object

Configuring a GPO is identical to the process you used for configuring the WSUS server via Local Policy, except now instead of using the local policy editor you’ll use the Group Policy Management Console (GPMC) with a domain administrator account. The GPO is hosted on the domain controllers and acquired by a client system when the machine logs onto the domain.

 

After configuring the GPO you’ll need to link it to one or more Organizational Units, where those OrgUnits hold the machines that are appropriate for the settings in the GPO.

 

And, like you did for the local policy on the WSUS server, you’ll also need to confirm that the policy is successfully applied by inspecting the registry and/or the WindowsUpdate.log.

Troubleshooting Group Policy

A full discussion on troubleshooting Group Policy issues is beyond the scope of this article, so if you’ve not explored this concept, I would encourage you to do so. If your GPO does not get applied to a client system, this typically happens for one of the following reasons:

  • The client system is not joined to the domain.
  • The client system is not assigned to the correct Organizational Unit.
  • The Group Policy is not linked to the correct Organizational Unit(s).
  • A conflicting policy is overriding the settings in your GPO.
  • Some other (typically more severe) data communication issue is at work. In these scenarios the client is likely not getting any group policy settings, rather than just not getting the WSUS settings.

Use Policy Management & Monitoring tools

You can also use GPResult or RSOP (Resultant Set of Policy) to verify the policy has been applied. RSOP is useful when you need to troubleshoot why a policy is not being applied, or when conflicting policy settings are being applied. For simply confirming that the right settings have been applied, however, reading the registry or the WindowsUpdate.log is much simpler and faster.

LGarvin

The State of Java ... redux in PatchZone

Posted by LGarvin Apr 24, 2013

About 3 months ago we took an in-depth look at the state of Java with respect to the number of reported/fixed vulnerabilities, and how that impacted earlier versions of Java. Since that time, three additional Java security updates have been released, plus some very interesting research has been published on what versions of Java are still in use. We're going to cover both of those in this update.

 

Recap

Let's start by adding the vulnerability counts for the three most recent updates. To recap, after the release of JRE7u13, which was almost entirely a patch for historical vulnerabilities (only 6 of the 39 fixes applied to JRE7-only vulnerabilities), research showed that over 80% of the reported/fixed vulnerabilities in JRE7 previously existed in JRE6, and almost half of them existed in JRE5:

JRE7u13 vulnerability counts.png

 

JRE7u21

Since that time, another 49 vulnerabilities have been patched -- 42 of them in JRE7u21, which was released just last week. Of those 49, 29 of them also existed in JRE6 (59.2%), and 21 of them existed in JRE5 (42.8%).

 

This brings the total counts for all of the security vulnerabilities identifed in JRE7 up to 172, with 128 (74.4%) present in JRE6, and 82 (47.7%) present in JRE5.

JRE7 total vulnerabilities (thru JRE7u21).png

So, let me say this as loudly and clearly as I can.... it is **NOT** safer to keep running Java 6 or Java 5. If you need to have the Java Runtime Environment installed, then you **NEED** to upgrade to JRE7 immediately, and uninstall any earlier versions of the Java Runtime Environment.

 

Sadly, as recently published research shows, it seems that very few are actually getting that message.

 

Who's not running JRE7?

Recently, Websense added Java version detection capabilities to their Advanced Classification Engine (ACE™) and pushed it through the Websense ThreatSeeker® Network to get real-time information about what versions of Java were in use. A month ago they published their findings. This analysis includes data from TENS of MILLIONS of users, so don't consider this a "representative sample"... this is the Real World folks, and you're quite likely part of it.

 

You can view the multi-colored rainbow-moired pie-chart -or- read the entire article but let me share some of the scariest numbers with you:

  • 8.7% of those tens of millions (that's almost a million browsers), still have versions prior to JRE5 installed. (More on this below!)
  • 2.5% are still using JRE5 (about a quarter million)
  • 3.7% are still using JRE6u7 -- the last version released that was not automatically uninstalled with a patch upgrade
  • 66.4% of browsers are running some variant of JRE6
  • 22.4% have upgraded to JRE7, but only 5.2% were using the current patch level of JRE7 (7u17 at the time of the study)

 

That's over ten million (at least!) systems running an instance of the JRE with known vulnerabilities that are being actively exploited. Websense also notes that "the largest single exploited vulnerability is the most recent one" -- one of the two fixed in JRE7u17! (and also present in JRE6u41 and earlier).

 

JRE5???

What about these million systems actively using a version of JRE prior to 5? Where did they come from? To first grasp this we need to call attention to the fact that JRE5 was originally released in September, 2004. So, by definition, this group includes a lot of Windows XP machines, and even scarier, probably some machines older than Windows XP. It's remotely possible that some of these systems are Windows 2000 or Win9x systems running the Microsoft Java Virtual Machine (JVM) which was based on Java v1.1. One thing I can tell you for certain -- they're probably infested, and most likely are part of a botnet. But consider this ... the data came through Websense, which means the machines are sitting behind a Websense appliance! These are not home systems (well, unless their ISP is running Websense appliances on the front-end) ... these are corporate, governmental, and organizational systems!

 

You need a JRE patching strategy!

Here are some questions to consider in your JRE patching strategy:

  • Have you validated the need to have the JRE installed, and uninstalled it from machines where it is not needed?
  • On the systems where it is needed, have you upgraded to JRE7?
  • On your JRE7 systems, do you have a patch management strategy in place to ensure the latest version of JRE7 is installed?

 

Software Vendors and JRE "compatiblity"

Finally, something I hear a lot -- "My vendor says their software won't work with newer versions of JRE."

 

For those systems where another software vendor claims compatibility issues with newer versions of the JRE:

  • Have you verified that the vendor is not just blowing smoke up your nose because they haven't tested their software against the newest versions of JRE and certified compatibility?
  • What value is "support" from a vendor that can't even keep up with the latest security guidance?
  • Is your network's security and your organization's ability to continue to operate, more important than following the guidance of a software vendor that can't be bothered?

 

Do your own testing!! If it works, then upgrade the JRE, be secure, and then go hold that vendor's feet to the fire for doing the same. Do not let your organization be held hostage to critical security risks by a non-responsive software vendor!

 

There are ten million PLUS systems on the Internet *today* running a version of Java that is known to have active exploits. Do not be part of the problem ... be part of the SOLUTION!

On Thursday (Apr 4) Microsoft announced the forthcoming content for Patch Tuesday – Apr 9, 2013.


You can have Microsoft's security bulletins sent directly to you:

To receive automatic notifications whenever Microsoft Security Bulletins are issued, subscribe to Microsoft Technical Security Notifications.


Microsoft also hosts a webcast where they discuss the releases, typically the Wednesday after Patch Tuesday:

Microsoft will host a webcast to address customer questions on the security bulletins on April 10, 2013, at 11:00 AM Pacific Time (US & Canada).

Register now for the April Security Bulletin Webcast. After this date, this webcast is available on-demand.


You can also follow the MSRC team at @MSFTSecResponse.

 

Number of Releases: 9

Critical Security Updates: 2 addressing vulnerabilities in Windows and Internet Explorer.

Important Security Updates: 7 addressing vulnerabilities in Windows, InfoPath 2010, Sharepoint Server 2010/2013, Sharepoint Foundation 2010, Groove Server 2010, Office Web Apps 2010, and Windows Defender for Win8/WinRT.


Updates are typically released by Microsoft at 10am PT (6pm UTC).

Configuring WSUS servers to synchronize relative to that time can be helpful in expediting availability of these security updates.

Configuring the Windows Update Agent - Overview

Configuring the Windows Update Agent - General Settings Part 1

Configuring the Windows Update Agent - General Settings Part 2

Configuring the Windows Update Agent - WSUS Settings

 

7. WUA Policies related to scheduled installations only

A number of settings are related explicitly, and exclusively, to scheduled installations. For these settings, a scheduled installation is an installation initiated by the WUAgent when AUOption=’4’ at the ScheduledInstallationDay and ScheduledInstallationTime specified in the settings. Any other installation is considered an unscheduled installation and these settings are not relevant.

 

Delay Restart for Scheduled Installations

This setting allows the configuration of how long the WUAgent waits after the completion of the installation event before launching the restart sequence. Generally this option would only have significance when installations are scheduled to occur during the workday and the user may be impacted. The default value is 5 minutes. It can be set from 1 to 30 minutes.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

RebootWarningTimeoutEnabled

0-1

0x0–0x1

If enabled, uses the delay specified in the RebootWarningTimeout value

RebootWarningTimeout

1-30

0x1–0x1e

 

Delay Restart for Scheduled Installations - Registry.pngDelay Restart for Scheduled Installations - Policy.png

 

No Auto-Restart with Logged On Users for Scheduled Automatic Updates Installations

When a scheduled installation occurs with a logged on non-administrative user on Windows XP (or Windows Server 2003), that user will be forced to restart the system. This setting allows the non-administrative user to interactively launch the installation, rather than it occurring automatically. It does not grant the non-administrative user the ability to defer or cancel the restart. Admin users always have the option to initiate or defer the restart. Generally this option would only be used for scheduled installation events that occur during the workday. Enabling this option with overnight scheduled installations can interfere with the expected system restart if a user failed to log off of the system at the end of the workday. All users on Vista and newer systems are prompted with a dialog to control when the restart occurs, unless the setting to block this functionality has been enabled. On Vista and newer systems, the user is given three choices when deferring the restart: 10 minutes, 1 hour, or 4 hours. This setting has no functional significance on Vista and newer systems.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

NoAutoRebootWithLoggedOnUsers

0-1

0x0–0x1

If enabled, allows a non-admin user to initiate the restart, rather than having it forced by the WUAgent

No Auto-Restart with Logged On User - Registry.pngNo Auto-Restart with Logged On User - Policy.png

Re-prompt for Restart with Scheduled Installations

When a user on Windows XP/2003 is presented the option to “Reboot Later,” the duration of the delay before the user is prompted again is determined by this setting. The default delay is 10 minutes. The delay can be configured from 1 to 1440 minutes (24 hours). On Vista and newer systems, the delay is selected by the user from one of three choices: 10 minutes, 1 hour, or 4 hours.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

RebootRelaunchTimeoutEnabled

0-1

0x0 – 0x1

If enabled, allows the configuration of the time delay before the restart dialog is presented to the user

RebootRelaunchTimeout

1-1440

0x1 – 0x5a0

 

Re-prompt for Restart With Scheduled Installation - Registry.pngRe-prompt for Restart With Scheduled Installation - Policy.png

 

Reschedule Automatic Updates scheduled installations

This setting determines whether updates are installed at system startup when the scheduled installation event is missed and how long the delay after startup is before installation begins. The default behavior is to install updates 1 minute after startup (as a matter of practicality, this is 1 minute after the Windows Updates service startup). The installation at startup can be disabled, or it can be configured to occur from 1 to 60 minutes after startup.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

RescheduleWaitTimeEnabled

0-1

0x0 – 0x1

If enabled, allows the configuration of the time delay after restart; If disabled, installation at startup will not occur

RescheduleWaitTime

1-60

0x1 – 0x3c

 

Reschedule Automatic Updates Scheduled Installations - Registry.pngReschedule Automatic Updates Scheduled Installations - Policy.png

 

Enable Windows Update Power Management to automatically wake up the system to install scheduled updates

For systems that are in sleep or hibernation mode, this setting allows the system to wake up at the scheduled installation event to install updates. If deadlines are configured, and expire, the system will wake up when the deadline expires. If the system is running on battery power, it will be returned to hibernation.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

AUPowerManagement

0-1

0x0 – 0x1

If enabled, allows the system to wake up to install updates.

Enable Windows Update Power Management - Registry.pngEnable Windows Update Power Management - Policy.png

Configuring the Windows Update Agent - Overview

Configuring the Windows Update Agent - General Settings Part 1

Configuring the Windows Update Agent - General Settings Part 2

 

6. Policies exclusive to WSUS environments

In this section, we’ll look at the three configuration settings that are exclusive to the WSUS environment.

 

Specify Intranet Microsoft update service location

This setting defines a client as a WSUS client. If this option is Disabled or has never been configured, the client system will use AU/WU/MU for detection. When this option is Enabled, the URL specifies the WSUS server to be used. Only the WUServer value needs to be specified in the setting; the v7.x Windows Update Agents ignore the WUStatusServer value. The WUServer value must be a URL of the form http://nameOfWSUSServer.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

UseWUServer

0-1

0x0 – 0x1

If enabled, defines the system as a WSUS client and uses the WUServer value as the assigned WSUS server

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

Registry Value

Valid String Value

Notes

WUServer

http://nameofWSUSServer

Identifies the URL of the assigned WSUS server. Must be defined as an http:// or https:// URL

Specify Intranet Microsoft Update Service Location - Policy.pngSpecify Intranet Microsoft Update Service Location - Registry.png

 

Enable client-side targeting

WSUS uses groups to provide approvals to client systems for the installation of updates. Groups must be created in the WSUS console, but membership in those groups can be assigned from the console or by using policy settings. In addition to this policy setting, the Options|Computers dialog in the WSUS console must be set to the correct value. The default configuration is “server-side targeting” and group memberships are managed from the WSUS console. When using server-side targeting, this policy setting should be set to Disabled to ensure clients do not attempt to exert authority over their group memberships. If this policy setting is Enabled, the group(s) that a client is assigned to are defined in the policy setting using a semi-colon delimited list. The client becomes authoritative for these group memberships as configured in the policy setting. Do not specify “All Computers” or “Unassigned Computers” in this setting. The Options|Computers setting must also be set to “Use Group Policy…” so that the WSUS server knows the client is authoritative. This setting also disables the ability to change group memberships from the console.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

TargetGroupEnabled

0-1

0x0 – 0x1

If enabled, identifies the assigned WSUS group(s) that the client belongs to. If disabled, the WSUS console is used to assign group memberships

TargetGroup

Semicolon delimited string

 

Enable Client-Side Targeting - Policy.pngEnable Client-Side Targeting - Registry.png

 

Allow signed updates from an intranet Microsoft update service location

When a WSUS server is used to distribute locally published updates to client systems, this setting must be Enabled to permit the WUAgent to validate the packages using an alternate code-signing certificate (one not issued by the Microsoft WU infrastructure).

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

AcceptTrustedPublisherCerts

0-1

0x0 – 0x1

If enabled, allows the WUAgent to install locally published updates validated by an alternate code-signing certificate

Allow Signed Updates - Policy.pngAllow Signed Updates - Registry.png

 

Configuring the Windows Update Agent - Scheduled Installations

Configuring the Windows Update Agent - Overview

Configuring the Windows Update Agent - General Settings Part 1

 

In this third part of our five-part series, we're continuing our look at the general settings of the Windows Update Agent.

 

Allow Automatic Updates & immediate installation

An option that is quite often overlooked, but probably not really relevant until the introduction of Windows Defender in 2006, is the ability to allow immediate installation of updates that cannot trigger system or service restarts. Unfortunately, there’s no way to visually identify one of these updates in the WSUS console. Generally speaking, this group includes Definition Updates. An update listed with a Reboot Behavior of “Never restarts” may install with this option, but even updates that should have that option set typically do not. What’s important to note is that the Windows Update Agent knows how to identify these updates, and they will be handled automatically if you allow that.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

AutoInstallMinorUpdates

0-1

0x0 – 0x1

If enabled, allows the WUAgent to immediately install any update with the Impact attribute set to “Minor”

Allow Automatic Updates Immediate Installation - Registry.pngAllow Automatic Updates Immediate Installation - Policy.png

Allow non-administrators to receive update notifications

This is mostly a legacy option, beneficial primarily to non-administrative users on Windows XP systems, where interacting with the Windows Update Agent UI requires administrative permissions. This option restricts that requirement and allows the WUA to present the UI to a non-administrative user.

 

Here are a couple of additional pedantic notes:

  • It also applies to Windows Server 2003 systems, but inasmuch as the only non-admin users on a Windows Server 2003 system would be Terminal Services clients, it has no practical application.
  • Windows Vista and newer systems grant full access for the Control Panel WUApp to all users. This option has no practical application on Vista or newer systems.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

ElevateNonAdmins

0-1

0x0 – 0x1

If enabled, allows the WUAgent to interact with non-administrative users on a Windows XP system

Allow Non-Administrators to Receive Update Notifications - Policy.pngAllow Non-Administrators to Receive Update Notifications - Registry.png

Remove links & access to Windows Update

In Windows XP/2003 and earlier systems, there was a Start Menu option, a Taskbar icon, and on Internet Explorer 6 and earlier versions, a menu option to launch Windows Update. This setting removes those menu options (although it did not preclude a creative user from typing the URL into the browser address bar). They have no relevance on Vista or newer systems. This option is a user option, not a computer option, and will be found in the UserTemplates\Start Menu and Taskbar node of the policy editor.

 

HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

NoWindowsUpdate

0-1

0x0 – 0x1

If enabled, blocks access to the Start Menu and Internet Explorer menu options, and the Taskbar icon

 

Remove access to use all Windows Update features

This setting is generally applicable to pre-Vista systems to block access to the Windows Update Agent functionality, including the notification boxes and the ability to install updates interactively. There is also an option to configure the type of notifications that are suppressed. The user can have all notifications blocked, or be provided with restart-required notifications. This update is a user setting, and care should be taken when configuring it so as to not block access to all users. Typically a separate GPO filtering out Domain Admins is recommended for using this setting. The setting is found in the UserTemplates\Windows Components\Windows Update node of the policy editor.

 

HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

DisableWindowsUpdateAccess

0-1

0x0 – 0x1

If enabled, blocks access to all Windows Update Agent UI functionality

DisableWindowsUpdateAccessMode

0-1

0x0 – 0x1

If enabled, allows the display of restart required notifications

Remove Access to Use All Windows Update Features - Policy.pngRemove Access to Use All Windows Update Features - Registry.png

 

Turn off access to all Windows Update features

This is the current incarnation of the option to block access to client-side update management functionality. The setting configures WSUS as the only update source and fully blocks access to AU, WU, and MU. It is a computer setting, and will override any user-based settings (e.g. if you enabled restart required notifications in the previous user setting, this one will shut them off). This setting is found in the ComputerTemplates\System\Internet Communication Management\Internet Communication Settings node of the policy editor.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

DisableWindowsUpdateAccess

0-1

0x0 – 0x1

If enabled, blocks access to all Windows Update Agent UI functionality

Turn Off Access to All Windows Update Features - Policy.pngTurn Off Access to All Windows Update Features - Registry.png

 

Configuring the Windows Update Agent - WSUS Settings

Configuring the Windows Update Agent - Overview

5. WUA General Settings

The first group of settings to be familiar with are the general settings. These settings apply to all systems regardless of how they obtain updates. While generally not used for non-WSUS clients, it’s important to know that Automatic Updates (AU) clients can be configured, and these settings actually predate the creation of SUS/WSUS.

 

Configure Automatic Updates

On non-WSUS systems, this value is typically configured at installation, or by a user via the Control Panel. The setting provides five valid options which determine how updates are downloaded and installed. The options are:

  • Option 1: Not used
  • Option 2: Notify before download / Notify before installation
  • Option 3: Download automatically / Notify before installation
  • Option 4: Download automatically / Schedule installation
  • Option 5: Allow local administrator to choose the configuration

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

AUOptions

2-5

0x2 – 0x5

Set according to the option configured

ScheduledInstallDay

0-7

0x0 – 0x7

Ignored if AUOption!=’4’; defines the day(s) in which updates can be installed

ScheduledInstallTime

0-23

0x0 – 0x17

Ignored if AUOption!=’4’; defines the hour of the day in which updates will be installed

NoAutoUpdate

0-1

0x0 – 0x1

If the policy is Disabled, this value is False, and the system will not perform any automatic updates functions

Configure Automatic Updates - Registry.pngConfigure Automatic Updates - Policy.png

Automatic Updates Detection Frequency

This value specifies how often the system checks for updates. The default value is 22 hours, but this value includes a random negative offset of 0-20%. So in actuality, the system checks every 17.6-22 hours, and the interval varies with each detection event. The most significant factor in setting this value is to make it consistent with your WSUS server synchronization schedule. If your WSUS server only synchronizes once per day, there’s minimal value in changing this value from the default; however, if your WSUS server is synchronizing multiple times per day, having the client check in more often can be quite useful. Do not set this value to 1 hour. While it is a valid value that may be useful for limited diagnostic purposes, a regular 1-hour detection interval will interfere with the expiration of the targeting cookie (which has a 60-minute time-to-live).

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

DetectionFrequency Enabled

0-1

0x0 – 0x1

If enabled, allows the customization of the detection frequency

DetectionFrequency

1-22

0x1 – 0x16

Ignored if DetectionFrequencyEnabled!=’1’

Automatic Updates Detection Frequency - Registry.pngAutomatic Updates Detection Frequency - Policy.png

Do Not Display “Install Updates and Shutdown” Option

The default behavior is to always present this feature when applicable. The setting allows the option to be removed from the shutdown menu. On Windows 7 and Windows Server 2008 R2 systems with Service Pack 1, the user no longer has a menu choice – installation of updates is forced upon the user when executing a shutdown from the Start Menu. (The installation can be bypassed by launching a shutdown from the command line using shutdown /s /t 0.) The setting can be configured either as a computer option (affecting all users) or a user option (only affecting domain users). Implementing it as a user option can be effectively used to override the behavior for regular domain users, but still allow launching of the capability via a local account.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

HKCU\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

NoAUShutdownOption

0-1

0x0 – 0x1

If enabled, blocks access to select the “Install Updates and Shutdown” option from the Start Menu.

Do Not Display Install Updates and Shutdown Option - Registry.pngDo Not Display Install Updates and Shutdown Option - Policy.png

Do Not Adjust Default Option to “Install Updates and Shutdown”

This setting preserves the existence of the option to install updates at shutdown but does not display it as the default option. The setting is really only relevant on Windows XP/2003 systems where the dialog box presents a dropdown menu of choices. As noted previously for Windows 7/2008R2 SP1 systems, this is the only option presented via the Start Menu. On Vista/2008 SP2 systems, the options are presented as a fly-out menu. Like the setting to suppress the option, this setting can be configured either as a computer option or a user option.

 

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

HKCU\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry Value

Valid Decimal Values

Valid Hex Values

Notes

NoAUAsDefaultShutdownOption

0-1

0x0 – 0x1

If enabled, does not force the display of the option as the default in the Windows XP/2003 shutdown dialog.

Do Not Adjust Install Updates and Shutdown Option - Registry.pngDo Not Adjust Install Updates and Shutdown Option - Policy.png

 

Configuring the Windows Update Agent - General Settings Part 2

Configuring the Windows Update Agent - WSUS Settings

On Thursday (Mar 7) Microsoft announced the forthcoming content for Patch Tuesday – Mar 12, 2013.


You can have Microsoft's security bulletins sent directly to you:

To receive automatic notifications whenever Microsoft Security Bulletins are issued, subscribe to Microsoft Technical Security Notifications.


Microsoft also hosts a webcast where they discuss the releases, typically the Wednesday after Patch Tuesday:

Microsoft will host a webcast to address customer questions on the security bulletins on March 13, 2013, at 11:00 AM Pacific Time (US & Canada). Register now for the March Security Bulletin Webcast. After this date, this webcast is available on-demand.


You can also follow the MSRC team at @MSFTSecResponse.

 

Number of Releases: 7

Critical Security Updates: 4 addressing vulnerabilities in Windows, Internet Explorer, Silverlight v5, Office 2010, Visio 2010, and Sharepoint Server 2010.

Important Security Updates: 3 addressing vulnerabilities in Windows, OneNote 2010, and Office for Mac (2008 and 2011).


Updates are typically released by Microsoft at 10am PT (6pm UTC).

Configuring WSUS servers to synchronize relative to that time can be helpful in expediting availability of these security updates.

Over the next few five weeks (I'm still sorting out exactly how many posts this will actually take), I'm going to take us on a tour of the configuration options for the Windows Update Agent. Some of these capabilities are documented in the WSUS Deployment Guide (with some errata that complicates it a bit), but some are not discussed at all. In addition, there are certain considerations that you just don't get from the cut-and-dried technical specifications found in that document. This content was originally presented as a webcast in the Summer, 2010, and has been derived from that original outline. The sections are numbered in this series of posts as they're also being aggregated for publication as a comprehensive white paper.


1. What is the Windows Update Agent (WUA)

The Windows Update Agent is the native software in a Windows operating system that communicates with Automatic Updates, Windows Update, Microsoft Update, or a WSUS server to determine what updates are available for installation, initiates the download of those updates, initiates the installation of those updates, and, in the case of WSUS, reports the status of those events back to the WSUS server.

The WUA has functionally existed since Windows 98, although prior to the introduction of WSUS in 2005, it was actually known as the “Automatic Updates Client”. Regardless of its name, the behavior of the WUA has always been configurable via the registry, and starting with the introduction of Active Directory and Group Policy in Windows 2000, via Group Policy or Local Policy.

It wasn’t really until the introduction of WSUS, however, that configuring the WUA really became of interest; otherwise, clients of Automatic Updates just did their thing at 3am on the day (or two) after patches were released by Microsoft, or whenever a logged-in user browsed to Windows Update via Internet Explorer.


2. Methodologies: Policy vs. Registry

As noted, originally the AU Client could only be configured via registry settings, but since they didn’t actually exist in the registry unless manually created, and nobody had documented them, nobody actually knew they existed. Our first real awareness of the ability to configure the AU Client came with the release of WSUS in 2005, and the availability of a Group Policy template that contained those settings.

Today you can configure the WUA using either Group Policy, Local Policy, or directly editing the registry. In an Active Directory environment, Group Policy is the best choice; but for non-Active Directory environments it’s a bit more complicated. The preferred methodology is to use Local Policy to configure a reference machine, and then export the WUA registry key to be imported into other systems.

You can also obtain pre-made registry files online, or build your own, but the biggest risk with importing directly to the registry, or editing the registry directly, is the risk of making errors in the process. If the registry values are incorrectly named, the wrong data type, or have invalid values, the WUA will ignore the registry value and revert to its built-in default settings.

One of the most common errors resulting in invalid registry values is entering decimal values instead of hexadecimal values. In the registry charts in the coming posts I will highlight the cells where common mistakes are made, typically from confusing decimal and hex values when entering them into the registry.


3. General Considerations

There are three general points I’d like to call attention to before we look at individual settings in the coming posts:
  • The Policy settings and registry values that we will discuss in this article are documented in the WSUS Deployment Guide. Except where expressly noted, all policy settings are found in the Computer Configuration\Administrative Templates\Windows Components\Windows Update node of the policy editor. In the interests of brevity, all future policy setting references will be identified as one of the following:
    • ComputerTemplates- \Computer Configuration\Administrative Templates
    • UserTemplates- \User Configuration\Administrative Templates
  • All WUA computer policy settings are manifested in one of these two registry keys:
    • HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate
    • HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU
  • All WUA user policy settings are manifested in one of these two registry keys:
    • HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    • HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate


4. WUA default behavior

  • Checks for updates from Automatic Updates every 17.6-22.0 hours.
  • Downloads updates automatically upon detection of availability and schedules the installation to occur at 3am the next day.
  • Restarts the system five minutes after the completion of the installation.
  • If the system is powered off at 3am, the downloaded updates are automatically installed the next time the system is powered on.
  • On Windows XP and Windows Server 2003 systems, if the logged-on user has administrative privileges, that user can
    • Select which updates to install.
    • Initiate the installation of updates before the scheduled installation time.
    • Choose whether to reboot the system after the installation is completed, or reboot the system later. If later is chosen, the user is re-prompted every 10 minutes until the user chooses to reboot the system, or the user logs off. If the user logs off, the reboot occurs within 10 minutes.
  • On Windows Vista and all newer systems, all users have privileges to select which updates to install, when they are installed, and whether the system is restarted after installation.
Starting next week... we'll look at how to change the behaviors of the Windows Update Agent.
More