<?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; registry</title>
	<atom:link href="http://www.ntsysv.com/index.php/tag/registry/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ntsysv.com</link>
	<description>La théorie rejoint la pratique</description>
	<lastBuildDate>Fri, 02 Dec 2011 13:33:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<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 [...]]]></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_1869189151"
			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_1869189151"
			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_1184339354"
			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_1184339354"
			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>
		<item>
		<title>How To Disable Autorun In Windows Systems : The Effective Way</title>
		<link>http://www.ntsysv.com/index.php/howto-disable-autorun-windows-systems-effective-way</link>
		<comments>http://www.ntsysv.com/index.php/howto-disable-autorun-windows-systems-effective-way#comments</comments>
		<pubDate>Wed, 21 Jan 2009 09:44:06 +0000</pubDate>
		<dc:creator>ElMehdi</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[autorun]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[virus]]></category>

		<guid isPermaLink="false">http://www.ntsysv.com/?p=287</guid>
		<description><![CDATA[Having Autorun enabled in Microsoft Windows systems may help the spread of viruses. This is true because autorun can start any arbitrary code without user interaction. In a previous article we saw how to disable low dik space warnings in Windows systems, in this article we will talk about Autorun. Microsoft Windows come with the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Having <strong>Autorun </strong>enabled in <strong>Microsoft Windows</strong> systems may help the <strong>spread of viruses</strong>. This is true because <strong>autorun can start any arbitrary code without user interaction</strong>.<span id="more-287"></span></p>
<p style="text-align: justify;">In a previous article we saw <a href="http://www.ntsysv.com/index.php/tutoriel-video-desactivation-des-alertes-espace-disque-faible-sous-windows" target="_blank">how to disable low dik space warnings</a> in Windows systems, in this article we will talk about Autorun.</p>
<p style="text-align: justify;">Microsoft Windows come with the <strong>AutoRun </strong>feature which make applications start <strong>automaticaly </strong>when inserting a CD/DVD, mapping a network drive or plugging a USB key. This is the worst case because everyone can plug a usb key to move data, to get pictures from a friend, to copy music &#8230;etc.</p>
<p style="text-align: justify;">When a <strong>Removable Device</strong> is connected to computer, either the autorun launches the exe/.com file to witch a Autorun.inf file point to, or the user double click on the icon to browse the device content. In both cases, a hidden execution happens and make the computer infected. As an example, the Malicious software <a href="http://www.symantec.com/security_response/writeup.jsp?docid=2008-112203-2408-99" target="_blank"><strong>W32.Downadup</strong></a> uses this technique to spread.</p>
<p style="text-align: justify;">In Microsoft, we can read many articles, such :</p>
<ul style="text-align: justify;">
<li><a href="http://support.microsoft.com/?scid=kb%3Ben-us%3B953252&amp;x=17&amp;y=17" target="_blank">How to correct &#8220;disable Autorun registry key&#8221; enforcement in Windows</a> : which details also how to <strong>disable autorun useing Group Policy Object</strong>s (GPO)</li>
<li><a href="http://support.microsoft.com/?scid=kb%3Ben-us%3B155217&amp;x=18&amp;y=12" target="_blank">How to Enable or Disable Automatically Running CD-ROMs</a></li>
<li><a href="http://support.microsoft.com/?scid=kb%3Ben-us%3B823732&amp;x=16&amp;y=11" target="_blank">How to disable the use of USB storage devices</a> (more radical solution!)</li>
</ul>
<p style="text-align: justify;">Today I received an <a href="http://www.cert.org" target="_blank">US-CERT</a> notification to say that those solutions are not effective when a media is first time connected to computer. In the <a href="http://www.us-cert.gov/cas/techalerts/TA09-020A.html" target="_blank">Technical Cyber Security Alert TA09-020A</a> we can read :</p>
<p style="text-align: justify;">
<blockquote>
<p style="text-align: justify;">The <strong>Autorun </strong>and <strong>NoDriveTypeAutorun </strong>registry values are both ineffective for  fully disabling AutoRun capabilities on Microsoft   Windows systems. Setting  the Autorun registry value to 0 <strong>will not prevent newly connected devices</strong> from automatically running code specified in the Autorun.inf file. It will,  however, disable Media Change Notification (MCN) messages, which may  prevent Windows from detecting when a CD or DVD is changed. According to  Microsoft, setting the NoDriveTypeAutorun registry value to 0xFF  &#8220;disables Autoplay on all types of drives.&#8221; Even with this value set,  Windows may execute arbitrary code when the user clicks the icon for  the device in Windows Explorer.</p>
</blockquote>
<p style="text-align: justify;">The proposed solution is to set the following value to registry :</p>
<blockquote><p>Path : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows  NT\CurrentVersion\IniFileMapping\Autorun.inf</p>
<div style="direction: ltr;">Value : @=&#8221;@SYS:DoesNotExist&#8221;</div>
</blockquote>
<div style="direction: ltr;">You can copy past the following code to a blank text file, and save it as .reg file, name it for example &#8220;disable-autorun.reg&#8221;, you will just have to double click on it to register the value.</div>
<blockquote>
<div style="direction: ltr;">REGEDIT4<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]<br />
@=&#8221;@SYS:DoesNotExist&#8221;</div>
</blockquote>
<div style="direction: ltr;">To have this configuration taken into account, you&#8217;ll have to reboot your system. If it is not possible, you&#8217;ll have to clean pre-cached mounted devices by deleting the following key:</div>
<blockquote>
<div style="direction: ltr;">HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2</div>
</blockquote>
<p style="text-align: justify;">Hope you found this post useful, and I&#8217;d like to invite you to subscribe to my feed to keep in touch with future posts.</p>
Copyright <b> <a href="http://www.ntsysv.com">Ntsysv.com </a></b>]]></content:encoded>
			<wfw:commentRss>http://www.ntsysv.com/index.php/howto-disable-autorun-windows-systems-effective-way/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

