<?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>New Technologies System Virtualisation &#187; GPO</title>
	<atom:link href="http://www.ntsysv.com/index.php/tag/gpo/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ntsysv.com</link>
	<description>La théorie rejoint la pratique</description>
	<lastBuildDate>Mon, 18 Jan 2010 11:18:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Deploy Registry Key Using Group Policy Object</title>
		<link>http://www.ntsysv.com/index.php/deploy-registry-key-using-group-policy-object</link>
		<comments>http://www.ntsysv.com/index.php/deploy-registry-key-using-group-policy-object#comments</comments>
		<pubDate>Sun, 25 Jan 2009 21:30:07 +0000</pubDate>
		<dc:creator>ElMehdi</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[registry]]></category>

		<guid isPermaLink="false">http://www.ntsysv.com/?p=298</guid>
		<description><![CDATA[Setting specific values for registry keys is a usual task for administrators, either to manage users profiles, specific applications settings&#8230;etc. In this article I will give a basic but yet useful example to deploy such configuration using Group Policy Objects (GPO).
In a previous article I talked about disabling Autorun facility in Windows using a registry [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Setting specific values for <strong>registry </strong>keys is a usual task for administrators, either to <strong>manage users profiles</strong>, specific applications settings&#8230;etc. In this article I will give a basic but yet useful example to deploy such configuration using<strong> Group Policy Objects</strong> (GPO).<span id="more-298"></span></p>
<p style="text-align: justify;">In a <a href="http://www.ntsysv.com/index.php/howto-disable-autorun-windows-systems-effective-way" target="_blank">previous article</a> I talked about <strong>disabling Autorun</strong> facility in Windows using a <strong>registry value </strong>suggested by US-CERT. To remind the reader, the key and value are :</p>
<blockquote><p>Path : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf<br />
Value : @=&#8221;@SYS:DoesNotExist&#8221;</p></blockquote>
<p style="text-align: justify;">To <strong>deploy this configuration using GPO</strong>, we need to create a new, or may be update an existing one, administration file. Administration files are normally located in folder :</p>
<blockquote><p>%systemroot%\inf</p></blockquote>
<p style="text-align: justify;">and have .adm extension.</p>
<p style="text-align: justify;">I will not go into details of ADM files syntax, version control and Operating System filtering, as it will need more than one article, but anyway : here is a prototype you can always use with Windows XP (and above?) and you can change the key and values but keep the same syntax. For interested readers, I recommend this document : &#8220;<strong>Using Administrative Template Files with Registry-Based Group Policy</strong>&#8221; from <a href="http://technet.microsoft.com/en-us/library/cc779567.aspx" target="_blank">Microsoft site</a>.</p>
<p>So, the ADM file I propose for this configuration:</p>
<blockquote><p>CLASS MACHINE<br />
CATEGORY !!category<br />
KEYNAME &#8220;SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf&#8221;<br />
POLICY !!policynameautorun<br />
ACTIONLISTON<br />
VALUENAME &#8220;@&#8221;        VALUE &#8220;@SYS:DoesNotExist&#8221;<br />
END ACTIONLISTON<br />
ACTIONLISTOFF<br />
VALUENAME &#8220;@&#8221;        VALUE &#8220;&#8221;<br />
END ACTIONLISTOFF<br />
END POLICY<br />
END CATEGORY<br />
[strings]<br />
category=&#8221;Custom Policy Settings&#8221;<br />
policynameautorun=&#8221;Disable autorun&#8221;</p></blockquote>
<p style="text-align: justify;">save this lines as &#8220;customPolicies.adm&#8221; for example, and import it as an administrative template. To do so, develop &#8220;<strong>computer configuration</strong>&#8220;, then right click on &#8220;<strong>administrative templates</strong>&#8221; group,  and choose &#8220;Add/Remove templates&#8221;, click on &#8220;Add&#8221; and browse for your file. Once selected, validate and close; You&#8217;ll see your new group of policies (that is named &#8220;category&#8221; in the adm file) in the groups tree. You can see this steps in this video.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_add-administrative-template-file_2145061770"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="http://www.ntsysv.com/wp-content/uploads/2009/01/add-administrative-template-file.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.ntsysv.com/wp-content/uploads/2009/01/add-administrative-template-file.swf"
			name="fm_add-administrative-template-file_2145061770"
			width="400"
			height="300">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p style="text-align: justify;">One done, you man not see the new policy as there&#8217;s a default filtering. To disable filtering, right click on &#8220;administrative templates&#8221;, select &#8220;Display&#8221; menu and then &#8220;Filtering&#8221;; uncheck all checkboxes. Have a look here :</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_disable-policy-display-filtering_1888272151"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="http://www.ntsysv.com/wp-content/uploads/2009/01/disable-policy-display-filtering.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.ntsysv.com/wp-content/uploads/2009/01/disable-policy-display-filtering.swf"
			name="fm_disable-policy-display-filtering_1888272151"
			width="400"
			height="300">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p style="text-align: justify;">Some explanations about parameters used in the above example :</p>
<ul style="text-align: justify;">
<li><strong>KEYNAME</strong> : Registry key to change/create.</li>
<li><strong>ACTIONLISTON</strong> : actions to perform when the policy is enabled</li>
<li><strong>ACTIONLISTOFF</strong> : actions to perform when policy is disabled</li>
<li><strong>strings</strong> section : values for substitution variables, noted with double exclamation mark (!!category for example). These varibales are used for portability between different language versions of Windows.</li>
</ul>
<p style="text-align: justify;">Having the adm file imported does not mean it is in use and applied. You need to create a new strategy (or update an existing one) to use the policy. Then you have to link this strategy to the Organisational Unit (OU) you want.</p>
<p style="text-align: justify;">In the client side, you need to run <strong>gpupdate </strong>in the command prompt if you want the modifications to be applied right at the moment without waiting any longer. Gpupdate command replaces <strong>secedit </strong>command available in Windows 2000 and older versions. Please refer to the help of these commands for more details.</p>
<p style="text-align: justify;">I hope you enjoyed reading and it was useful.</p>
Copyright <b> <a href="http://www.ntsysv.com">Ntsysv.com </a></b>]]></content:encoded>
			<wfw:commentRss>http://www.ntsysv.com/index.php/deploy-registry-key-using-group-policy-object/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
