<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lithik Systems &#187; gpmc</title>
	<atom:link href="http://www.lithik.com/tag/gpmc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lithik.com</link>
	<description>Transforming businesses by bending technology to the will of our clients</description>
	<lastBuildDate>Thu, 26 Jan 2012 15:28:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Configuring Windows Automatic Updates with Group Policy</title>
		<link>http://www.lithik.com/2009/11/16/configuring-windows-automatic-updates-with-group-policy/</link>
		<comments>http://www.lithik.com/2009/11/16/configuring-windows-automatic-updates-with-group-policy/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 22:01:36 +0000</pubDate>
		<dc:creator>Karl Fox</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[automatic updates]]></category>
		<category><![CDATA[autoupdate]]></category>
		<category><![CDATA[gpmc]]></category>
		<category><![CDATA[gpo]]></category>
		<category><![CDATA[group policy]]></category>
		<category><![CDATA[group policy management console]]></category>
		<category><![CDATA[group policy object]]></category>
		<category><![CDATA[mbsa]]></category>
		<category><![CDATA[microsoft baseline security analyzer]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[patches]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.lithik.com/?p=413</guid>
		<description><![CDATA[Keeping your computer systems well-defended against the latest attacks is a daunting task, but fortunately, one of the most important defenses is really quite easy to maintain. Microsoft has provided some powerful tools that can keep your Windows systems patched with very little ongoing effort. If the idea of configuring Windows Group Policy makes you [...]]]></description>
			<content:encoded><![CDATA[<p>Keeping your computer systems well-defended against the latest attacks is a daunting task, but fortunately, one of the most important defenses is really quite easy to maintain.  Microsoft has provided some powerful tools that can keep your Windows systems patched with very little ongoing effort.</p>
<p>If the idea of configuring Windows Group Policy makes you break out in a sweat, be afraid no longer. We&#8217;ll go step-by-step through the process so that even a relative neophyte can get good results.<span id="more-413"></span></p>
<h2>GPMC</h2>
<p>GPMC (Group Policy Management Console) is an excellent tool for configuring and managing Group Policy.  If you don&#8217;t already have it installed, you can get it from <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;familyid=0a6d4c24-8cbd-4b35-9272-dd3cbfc81887" target="_blank">here</a>. Fire it up by clicking <em>Start</em>, selecting <em>Run&#8230;</em>, then typing <code>gpmc.msc</code> and clicking <em>OK</em>.</p>
<p>Navigate through the domain tree in the left pane to <em>Forest</em> (for your domain), <em>Domains</em>, then open your domain, then open <em>Group Policy Objects</em>. You should find at least two GPOs (Group Policy Objects) there, among them being <em>Default Domain Controllers Policy</em> and <em>Default Domain Policy</em>. Click on one of these policies to open it in the right pane. Select the <em>Settings</em> tab to display the rules that make up the policy. Click on <em>show all</em> in the upper right corner to expand the rule hierarchy. Look through these policies to see if you already have rules governing Automatic Updates. If so, you can modify them in place, but we will proceed assuming a clean slate.</p>
<h2 style="font-size: 1.5em;">Create GPOs</h2>
<p>Right-click on <em>Group Policy Objects</em> in the left pane and select <em>New</em>. Assign a name like <em>Automatic Updates-Desktops</em> and click <em>OK</em>. Now right-click your new policy in the left pane and select <em>Edit</em>. This will start up the <em>Group Policy Object Editor</em>.</p>
<p>In the left pane, drill down to <em>Computer Configuration</em> -&gt; <em>Administrative Templates</em> -&gt; <em>Windows Components</em> -&gt; <em>Windows Update</em>. All Automatic Updates settings will appear in the right pane. As you click on each one, a description of the item will appear adjacent to the list. We won&#8217;t set every value, but we will set most of them. Open a setting by double-clicking its entry to open a configuration window. Each configuration window also has an <em>Explain</em> tab to help you understand the meaning of each aspect of the setting.</p>
<p>Let&#8217;s walk through the first one. Double click <em>Configure Automatic Updates</em>. Select the <em>Enabled</em> radio button. Set the first pull-down to <em>4 &#8211; Auto download and schedule the install</em>. Set the install day to <em>0 &#8211; Every day</em>. Set the scheduled install time to whatever you prefer. Finally, click <em>OK</em> to save the settings and close the box.</p>
<p>Here&#8217;s how I typically set it up:</p>
<ul>
<li>Configure Automatic Updates
<ul>
<li>Enabled</li>
<li>Configure automatic updating: 4 &#8211; Auto download and schedule the install</li>
<li>Scheduled install day: 0 &#8211; Every day</li>
<li>Scheduled install time: 11:00</li>
</ul>
</li>
<li>Specify intranet Microsoft update service location
<ul>
<li>Disabled</li>
</ul>
</li>
<li>Reschedule Automatic Updates scheduled installations
<ul>
<li>Enabled</li>
<li>Wait after system startup (minutes): 5</li>
</ul>
</li>
<li>No auto-restart with logged on users for scheduled automatic updates installations
<ul>
<li>Disabled</li>
</ul>
</li>
<li>Automatic Updates detection frequency
<ul>
<li>Enabled</li>
<li>Check for updates at the following interval (hours): 4</li>
</ul>
</li>
<li>Allow Automatic Updates immediate installation
<ul>
<li>Enabled</li>
</ul>
</li>
<li>Delay Restart for scheduled installations
<ul>
<li>Enabled</li>
<li>Wait the following period before proceeding with a scheduled restart (minutes): 5</li>
</ul>
</li>
<li>Re-prompt for restart with scheduled installations
<ul>
<li>Enabled</li>
<li>Wait the following period before prompting again with a scheduled restart (minutes): 480</li>
</ul>
</li>
<li>Allow non-administrators to receive update notifications
<ul>
<li>Enabled</li>
</ul>
</li>
<li>Enabling Windows Update Power Management to automatically wake up the system to install scheduled updates
<ul>
<li>Enabled</li>
</ul>
</li>
</ul>
<p>A few notes on the above values: You&#8217;ve got to let Automatic Updates reboot the computer; time and time again I&#8217;ve seen installations go literally <em>months</em> without applying patches because a user doesn&#8217;t want to be bothered with maintaining his machine.  That&#8217;s OK; we&#8217;ll do it for him.  Don&#8217;t check for updates more often than 3 or 4 hours; Microsoft says it can cause problems, and I, for one, don&#8217;t need any more problems with Windows than I already have. The 480 minute re-prompt number works out to 8 hours; I figure if someone actually doing their job sees a notice, they don&#8217;t need to be nagged again. Let it update once they&#8217;ve gone home. The power management setting is mostly wishful thinking on my part. Maybe someday I&#8217;ll go around and set up <a href="http://en.wikipedia.org/wiki/Wake-on-LAN">Wake-on-LAN</a> in the BIOS on all those machines.</p>
<p>That was a lot of work, but there&#8217;s still plenty to do. Create a nearly identical GPO called <em>Automatic Updates-Servers</em>. The only change I make is to set the <em>Configure Automatic Updates</em> value to <em>3 &#8211; Auto download and notify for install</em>. This prevents the possibility of a server rebooting while in use, disrupting work flow and generally wreaking havoc, but it also prevents the server from staying up to date unless you put forth an effort to keep it so. Hint: A particularly easy way to complete 90% of the work on your second GPO is to duplicate, then rename, the first one.</p>
<p>You can now close the <em>Group Policy Object Editor</em>.</p>
<h2 style="font-size: 1.5em;">Tie GPOs to Machines</h2>
<p>So far, nothing we have done has affected any machine, but that&#8217;s about to change. What we&#8217;d like to see is for the server policy to apply to all of our servers and for the desktop policy to apply to everything else. The first step in making that happen is to define which machines are servers.</p>
<p>Open up <em>Active Directory Users and Computers</em>. If you can&#8217;t find it under <em>Start</em> -&gt; <em>Administrative Tools</em>, then go to <em>Start</em> -&gt; <em>Run</em>, enter <code>dsa.msc</code> and click <em>OK</em>. Navigate in the left pane down through your domain to the <em>Computers</em> folder. Right-click on the <em>Computers</em> folder and select <em>New</em> -&gt; <em>Group</em>. Name the group <em>Servers</em>, leave the scope and type as a global security group, then click <em>OK</em>. It should show up in the list in the right pane.</p>
<p>Double-click your new group and select the <em>Members</em> tab. Add each server, one-by-one using the <em>Add</em> button and making sure the <em>Select this object type</em> field contains the word <em>Computers</em>. You can change it by clicking the <em>Object Types</em> button. Click <em>OK</em> when complete, then close the <em>Active Directory Users and Computers</em> window.</p>
<p>Next, we tie the <em>Automatic Updates-Servers</em> GPO to our new <em>Servers</em> security group. Back in GPMC, select the servers GPO and click on the <em>Scope</em> tab. In the bottom window, click the <em>Add</em> button and type <code>Servers</code> into the window, then click <em>OK</em>. Your security group should now be listed in the <em>Security Filtering</em> table. Highlight the other entry in the table (<em>Authenticated Users</em>) and click <em>Remove</em>, then <em>OK</em>. Now servers and only servers will be able to use the <em>Automatic Updates-Servers</em> GPO.</p>
<p>Last but certainly not least, link your new GPOs to the domain. In the left pane of GPMC, locate your domain name; it should be directly under the folder called <em>Domains</em>. Right-click your domain and choose <em>Link an Existing GPO</em>. Highlight both of your new GPOs with shift-click then click <em>OK</em>.</p>
<p>You are now in business.  Your policies are complete and in place.</p>
<h2 style="font-size: 1.5em;">Check Your Work</h2>
<p>If you log on to a domain member machine and look at the <em>Automatic Updates</em> page of the control panel, all the settings should be grayed out, but should match the values you set in your policies. If they&#8217;re not grayed out, you can wait, or you can give your policies a push.</p>
<p>Group policy flows gradually to domain member machines. They update at reboot time, but sometimes it takes more than one reboot for new policies to take effect. If you are impatient, or if a machine seems to get stuck, you can hurry along the process by running the command <code>gpupdate /force</code> from within a command window on the stuck machine. That, and maybe a reboot, usually get things moving along.</p>
<p>Another way to check is by examining the Windows Registry. Nearly all Group Policy operates by forcing certain registry settings on member computers, which then modify the computer&#8217;s behavior. Enter the following in a command window on any computer:</p>
<p style="padding-left: 30px;"><code>reg query hklm\Software\Policies\Microsoft\Windows\WindowsUpdate\AU /v AUOptions</code></p>
<p>and it should display the value <em>0&#215;3</em> on servers and <em>0&#215;4</em> on all other machines. You can run all your queries from one machine if you prepend each query target with its IP address or hostname, as follows:</p>
<p style="padding-left: 30px;"><code>reg query \\</code><em>hostname</em><code>\hklm\Software\Policies\Microsoft\Windows\WindowsUpdate\AU /v AUOptions</code></p>
<p>If the value is not found, try the <em>gpupdate</em> trick or a reboot. If it is found but does not match what you expected, make sure your <em>Servers</em> security group contains the right machine names; also make sure it is properly linked to the server GPO.</p>
<h2 style="font-size: 1.5em;">Maintaining Patched Systems</h2>
<p>Your GPOs will do a reasonably thorough job of keeping your systems up to date, but you still have work to do. Put Patch Tuesday on your calendar—Microsoft publishes new security updates on the second Tuesday of every month. Your desktops should automatically update themselves within a day or two, but you&#8217;ll have to patch the servers yourself. On each one, either go to <em>Start</em> -&gt; <em>All programs</em> -&gt; <em>Windows Update</em>, or find the yellow shield in the systray (the row of tiny icons in the lower right corner of your screen) and apply the patches that should be downloaded and ready to install.</p>
<p>I also recommend checking the patch state of each machine with MBSA, the Microsoft Baseline Security Analyzer (of which the latest version, currently 2.1.1, is available <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=b1e76bbe-71df-41e8-8b52-c871d012ba78&amp;displaylang=en">here</a>). MBSA can scan a single machine, all machines on your domain, or a LAN segment. It displays quite a bit of information, but the most critical is the list of missing patches. If a machine is chronically behind, it may be more than just group policy slowness. Many malware infections disable automatic updates, so a reformat and reinstall may be in order.</p>
<h2 style="font-size: 1.5em;">Congratulations!</h2>
<p>Your machines are patched. You have taken a critical step that every security policy framework and every set of security regulations requires. And you have eliminated much of your vulnerability to the most popular current malware attacks. And you are no longer a Group Policy newbie!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lithik.com/2009/11/16/configuring-windows-automatic-updates-with-group-policy/feed/</wfw:commentRss>
		<slash:comments>78</slash:comments>
		</item>
	</channel>
</rss>

