<?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; group policy</title>
	<atom:link href="http://www.lithik.com/tag/group-policy/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>
		<item>
		<title>Disabling the Windows AutoRun Feature</title>
		<link>http://www.lithik.com/2009/10/22/disabling-the-windows-autorun-feature/</link>
		<comments>http://www.lithik.com/2009/10/22/disabling-the-windows-autorun-feature/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 20:46:51 +0000</pubDate>
		<dc:creator>Karl Fox</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[auto-play]]></category>
		<category><![CDATA[auto-run]]></category>
		<category><![CDATA[autoplay]]></category>
		<category><![CDATA[autorun]]></category>
		<category><![CDATA[cd-rom]]></category>
		<category><![CDATA[cdrom]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[disabling]]></category>
		<category><![CDATA[group policy]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.lithik.com/?p=339</guid>
		<description><![CDATA[We often help organizations test how well their staff knows their security policy by performing social engineering tests.  In one, we drop hacked USB drives around the premises that notify our home server when inserted into a Windows computer.  Such tests are a lot of fun when they&#8217;re just tests, but when a real hacker [...]]]></description>
			<content:encoded><![CDATA[<p>We often help organizations test how well their staff knows their security policy by performing social engineering tests.  In one, we drop hacked USB drives around the premises that notify our home server when inserted into a Windows computer.  Such tests are a lot of fun when they&#8217;re just tests, but when a real hacker leaves such a tasty tidbit in your parking lot, you can bet it&#8217;s going to do a lot more mischief than phone home when an employee plugs it into one of your computers.</p>
<p>AutoRun and the companion feature AutoPlay are components of the Microsoft Windows operating system that dictate what actions the system takes when a drive is mounted.  The main purpose of AutoRun is to provide helpful actions and capabilities when removable media or network shares are mounted.  When such a device is mounted, the <code>autorun.inf</code> file from the media is parsed. This file specifies which commands the system should run. Many companies use this functionality to automatically start up their installers when a CD-ROM is inserted, but attackers can also use it to run data extraction sessions or automatic installations of malware.<br />
<span id="more-339"></span><br />
AutoRun and AutoPlay can be friendly features, but they are almost never necessary in an enterprise environment.  The security risk typically far outweighs any benefit.</p>
<p>All AutoRun/AutoPlay features are controlled by values stored in the Windows registry.  There are a number of ways to set these values, including</p>
<ul>
<li>Group Policy</li>
<li>Double-clicking a <code>.REG</code> file containing registry settings</li>
</ul>
<h2>Disabling AutoRun Using Group Policy</h2>
<p>If you think that Windows Group Policy would be the most convenient and thorough way to distribute such a policy, you&#8217;d be partly right.  The only gotcha is that a number of people report that it doesn&#8217;t always get every machine.  I&#8217;d recommend both belt and suspenders—use a GPO to catch future machines, but set each existing machine by hand to make sure none fall through the cracks today.</p>
<p>Before configuring Group Policy, you must ensure that one of the following updates has been applied to each of the machines you intend to configure.  Note that only one update applies to each machine.</p>
<ul>
<li>Update for Windows Server 2003 for Itanium-based Systems (KB967715)</li>
<li>Update for Windows Server 2003 x64 Edition (KB967715)</li>
<li>Update for Windows Server 2003 (KB967715)</li>
<li>Update for Windows XP x64 Edition (KB967715)</li>
<li>Update for Windows 2000 (KB967715)</li>
<li>Windows Vista-based and Windows Server 2008-based systems must have update 950582 (Security bulletin MS08-038) installed to take advantage of the registry key settings that disable AutoRun.</li>
</ul>
<p>This update will create a new registry entry, <code>HonorAutorunSetting</code>.  Without the update, <code>autorun.inf</code> gets read even with AutoRun disabled, but simply does not execute any AutoPlay commands inside.  This still allows attacks to be made using <code>autorun.inf</code>, and <code>HonorAutorunSetting</code> should be set to <code>1</code> to disable this. The default is <code>1</code> after the patch is applied.</p>
<p>To disable all AutoRun features in Windows Server 2003, Windows XP Professional and Windows 2000,</p>
<ul>
<li>Click <strong>Start</strong>, click <strong>Run</strong>, type <code>gpmc.msc</code> in the <strong>Open</strong> box, and then click <strong>OK</strong>.  If you don&#8217;t yet have <a href="http://www.microsoft.com/DownLoads/details.aspx?FamilyID=0a6d4c24-8cbd-4b35-9272-dd3cbfc81887&amp;displaylang=en">GPMC</a> installed, do so first.</li>
<li>Choose an appropriate Group Policy Object in the left pane (or create a new one and attach it in the appropriate place), right-click it, and select <strong>Edit</strong>.</li>
<li>Under <strong>Computer Configuration</strong>, expand <strong>Administrative Templates</strong>, and then click <strong>System</strong>.</li>
<li>In the <strong>Settings</strong> pane, right-click <strong>Turn off Autoplay</strong>, and then click <strong>Properties</strong>. Note: In Windows 2000, the policy setting is named <strong>Disable Autoplay</strong>.</li>
<li>Click <strong>Enabled</strong>, and then select <strong>All drives</strong> in the <strong>Turn off Autoplay</strong> box to disable Autorun on all drives.</li>
<li>Click <strong>OK</strong> to close the <strong>Turn off Autoplay Properties</strong> dialog box.</li>
</ul>
<p>Windows will propagate the group policy settings to all machines controlled by the edited Group Policy Object.  Once the settings have been applied to a computer, it must be rebooted before the changes take effect.</p>
<h2>Disabling AutoRun Using a Registry File</h2>
<p>Create a file called <code>autorun.reg</code> containing the following lines.  Some of the lines here are long; make sure you don&#8217;t break them in the middle somewhere when you cut and paste the text below.</p>
<blockquote><p><code>Windows Registry Editor Version 5.00</code></p>
<p><code>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]<br />
@="@SYS:DoesNotExist"</code></p>
<p><code>[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2]</code></p>
<p><code>[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]<br />
"HonorAutorunSetting"=dword:00000001<br />
"NoDriveAutoRun"=dword:03ffffff<br />
"NoDriveTypeAutoRun"=dword:000000ff</code>
</p></blockquote>
<p>On each computer to be updated, browse to this file and double-click it.  The computer must be rebooted for the changes to take effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lithik.com/2009/10/22/disabling-the-windows-autorun-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

