<?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>Andrew Morgan &#187; Group policy</title>
	<atom:link href="http://andrewmorgan.ie/tag/group-policy/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewmorgan.ie</link>
	<description>Grumpy ramblings</description>
	<lastBuildDate>Fri, 30 Jun 2017 09:24:25 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0</generator>
	<item>
		<title>Controlling the creation of Libraries in Windows 7 / Server 2008 R2.</title>
		<link>http://andrewmorgan.ie/2011/07/controlling-the-creation-of-libraries-in-windows-7-server-2008-r2/</link>
		<comments>http://andrewmorgan.ie/2011/07/controlling-the-creation-of-libraries-in-windows-7-server-2008-r2/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 20:51:02 +0000</pubDate>
		<dc:creator><![CDATA[andyjmorgan]]></dc:creator>
				<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Server Based Computing]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Group policy]]></category>
		<category><![CDATA[Libraries]]></category>
		<category><![CDATA[Server 2008 r2]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=495</guid>
		<description><![CDATA[Following on from my previous post about libraries, I have found you can actually control library creation, but there is a two fairly large caveats I&#8217;ll cover later in this post. To Block Library creation, you can create a user group policy blocking the known folder ID. You may argue a login script can simply delete the unwanted libraries, and you would be right, but a shell context menu exists to restore these libraries on user request. The method below ensure&#8217;s they [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="/wp-content/uploads/2011/05/libicon.png"><img class="alignright size-full wp-image-440" title="libicon" src="/wp-content/uploads/2011/05/libicon.png" alt="" width="109" height="119" /></a>Following on from my previous post about libraries, I have found you can actually control library creation, but there is a two fairly large caveats I&#8217;ll cover later in this post.</p>
<p>To Block Library creation, you can create a user group policy blocking the known folder ID. You may argue a login script can simply delete the unwanted libraries, and you would be right, but a shell context menu exists to restore these libraries on user request. The method below ensure&#8217;s they are never created.</p>
<p>For every default windows directory, these directories have known folder names and GUID&#8217;s. A great reference site for these GUIDS can be found here:</p>
<p><a href="http://msdn.microsoft.com/en-us/library/dd378457(VS.85).aspx">http://msdn.microsoft.com/en-us/library/dd378457(VS.85).aspx</a></p>
<p>In our case, we&#8217;re interested in the following five Known Folders:</p>
<p>FOLDERID_DocumentsLibrary   GUID{7B0DB17D-9CD2-4A93-9733-46CC89022E7C}<br />
FOLDERID_MusicLibrary             GUID{2112AB0A-C86A-4FFE-A368-0DE96E47012E}<br />
FOLDERID_PicturesLibrary         GUID{A990AE9F-A03B-4E80-94BC-9912D7504104}<br />
FOLDERID_VideosLibrary            GUID{491E922F-5643-4AF4-A7EB-4E7A138D8174}</p>
<p>and the little known:</p>
<p>FOLDERID_RecordedTVLibrary  GUID{1A6FDBA2-F42D-4358-A798-B74D745926C5}</p>
<p>Once we know which folders we wish to block, open group policy and navigate to the following policy:</p>
<p>User Configuration &gt; Policies &gt; Administrative Templates &gt; Windows Components &gt; Windows Explorer.</p>
<p>In this section, you will find a <strong>Disable Known Folders</strong> Setting.</p>
<p>Enable the policy and click show, here you can configure the libraries you wish to block:</p>
<p>(below I&#8217;m blocking the creation of Video&#8217;s and Music.)</p>
<p><a href="/wp-content/uploads/2011/07/configknownfolders.png"><img class="aligncenter size-full wp-image-496" title="configknownfolders" src="/wp-content/uploads/2011/07/configknownfolders.png" alt="" width="600" height="477" /></a></p>
<p>Configuring the value above will leave you with libraries as so:</p>
<p><a href="/wp-content/uploads/2011/07/libresult.png"><img class="size-full wp-image-497 aligncenter" title="libresult" src="/wp-content/uploads/2011/07/libresult.png" alt="" width="185" height="176" /></a></p>
<p><strong>Caveat&#8217;s:</strong></p>
<p><em>It&#8217;s a once off thing&#8230;</em> Blocking the creation of a library will only take effect on the first login, aka the profile creation. There is no microsoft solution available to control these libraries after the fact. You could make do with login scripts, but its messy.</p>
<p><em>It&#8217;s not the size, its the contents that matter&#8230;</em> You cannot control the cotents of libraries, i.e. you cannot block the link to the shared folders libraries. This is really silly, as you would assume that were you to block the known folder PublicDocuments aka {ED4824AF-DCE4-45A8-81E2-FC7965083634}. This would stop it being created in the profile on first load<strong>, you&#8217;d be very wrong, blocking this known folder causes the library to not be created. </strong>Not sure who thought that was a good idea, but I digress.</p>
<p>So that&#8217;s it in a nutshell, for more information on locking down the server 2008 r2 profile check in later or follow me on twitter @andyjmorgan.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewmorgan.ie/2011/07/controlling-the-creation-of-libraries-in-windows-7-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Problems using Group Policy to set a mandatory profile&#8230;</title>
		<link>http://andrewmorgan.ie/2008/10/using-a-group-policy-to-set-a-mandatory-profile/</link>
		<comments>http://andrewmorgan.ie/2008/10/using-a-group-policy-to-set-a-mandatory-profile/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 21:29:32 +0000</pubDate>
		<dc:creator><![CDATA[andyjmorgan]]></dc:creator>
				<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Server Based Computing]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Group policy]]></category>
		<category><![CDATA[Terminal Services]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=129</guid>
		<description><![CDATA[Here&#8217;s a weird one i came across this week while configuring a mandatory profile, I was using my local laptop to configure group policy over the domain and could set the mandatory profile, but could not set the &#8220;Do not append the user name to the profile path&#8221; as it was missing from the group policy object! After much head scratching we discovered an extra registry setting embedded in the group policy: HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTTerminal ServicesWFDontAppendUserNameToProfile dword = 1. Still none [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img class="alignright" src="http://media.arstechnica.com/journals/microsoft.media/Remote_desktop_connection_icon.png" alt="" width="49" height="49" />Here&#8217;s a weird one i came across this week while configuring a mandatory profile, I was using my local laptop to configure group policy over the domain and could set the mandatory profile, but could not set the &#8220;<strong>Do not append the user name to the profile path&#8221; </strong>as it was missing from the group policy object!</p>
<p><img class="aligncenter size-full wp-image-140" title="jpg1" src="/wp-content/uploads/2008/10/jpg1.jpg" alt="" width="402" height="454" /></p>
<p>After much head scratching we discovered an <strong>extra registry setting</strong> embedded in the group policy:</p>
<p>HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTTerminal<br />
ServicesWFDontAppendUserNameToProfile dword = 1.</p>
<p>Still none the wiser to the issue we found the following article http://support.microsoft.com/kb/908011. With this we put two and two together, and logged into a 2003 domain controller (sp2) and low and behold the policy setting was available.</p>
<p><a href="/wp-content/uploads/2008/10/2003gp.jpg"><img class="aligncenter size-full wp-image-162" title="2003gp" src="/wp-content/uploads/2008/10/2003gp.jpg" alt="" width="404" height="432" /></a></p>
<p>It seems the group policy were updated in service pack 2 to reflect an issue when trying to configure mandatory profiles, I do aim to copy the policies to my laptop and see if i can update them to reflect the change but I&#8217;ve been to lazy so far <img src="http://andrewmorgan.ie/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p>
<p><em><strong>Update:</strong> Well i got around to testing the policy copy, if you copy the .adm files from the domain controller to your local machine with the problem, it will resolve the issue.</em></p>
<p>Heres an example of scripting the change:</p>
<p style="padding-left:30px;">pushd domaincontrollerc$windowsinf<br />
copy *.adm %windir%inf<br />
popd</p>
<p>That&#8217;s it. reload gpedit.msc and you should see hte entries correctly.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewmorgan.ie/2008/10/using-a-group-policy-to-set-a-mandatory-profile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how do i create custom .adm / group policy files?</title>
		<link>http://andrewmorgan.ie/2008/02/how-do-i-create-custom-adm-group-policy-files/</link>
		<comments>http://andrewmorgan.ie/2008/02/how-do-i-create-custom-adm-group-policy-files/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 11:49:50 +0000</pubDate>
		<dc:creator><![CDATA[andyjmorgan]]></dc:creator>
				<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Group policy]]></category>
		<category><![CDATA[Internet explorer]]></category>

		<guid isPermaLink="false">http://joekickass.wordpress.com/?p=35</guid>
		<description><![CDATA[&#160; Update: With thanks to some great help and troubleshooting from Steven we have resolved the line 46 &#8220;Categor&#8221; error. In order for the adm to parse the ending y in this file an additional two blank lines or &#8220;carriage returns&#8221; are necessary at the base of the adm file. The download file has been updated, Thanks again Steven. A .adm file, is a group policy file that specifies policies outside of Microsoft&#8217;s default options. Basically they are policies you [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<p><em><strong>Update:</strong> With thanks to some great help and troubleshooting from Steven we have resolved the line 46 &#8220;Categor&#8221; error. In order for the adm to parse the ending y in this file an additional two blank lines or &#8220;carriage returns&#8221; are necessary at the base of the adm file. The download file has been updated, Thanks again Steven.</em></p>
<p>A <em>.adm</em> file, is a group policy file that specifies policies outside of Microsoft&#8217;s default options. Basically they are policies you can put in place that Microsoft in their infinite wisdom forgot to put in before launch.</p>
<p>I had a situation recently where we have external users coming into our network, and using our CAG&#8217;s to access the the citrix environment. Once in there they needed access to an internal webpage that we published with internet explorer. The problem therein lied that these users could browse the local lan for resources with the address bar and many other wonderful utilities Microsoft put into internet explorer but failed to lock down efficiently.</p>
<p>All i really cared about (and for the interest of this post) was locking down the address bar in Internet Explorer 6.1. Nowhere could i find an option to do this, and i was getting nowhere fast. Searching internet explorer did bring back a few &#8220;helpful&#8221; articles on technet that i just couldnt understand, and i did find a piece of software that used to do it for free, until <strong>microsoft bought the company, stole its code </strong>for server 2008 and<strong> stopped people using </strong>or <strong>downloading the application. nice one microsoft&#8230;</strong></p>
<p>I have attached the policy settings and ADM files for reference on how to lock down internet explorer 6 completely, hopefully i will save somebody else 7 hours of their time.</p>
<p><span id="more-3067"></span></p>
<p>Long story short, no policy existed, no helpful application and because i needed this policy to only affect the users (and not the servers where internal staff use internet explorer too) i had to create the adm file myself.</p>
<p>I opened the word2003 adm file you get with ork 2003 and set about bodgeing the code to suit myself, The below entries disable the address and link bars by using registry entries. Remember you must still lock the toolbar in group policy to restrict these users from changing the tool bars.</p>
<blockquote><p>CLASS USER</p>
<p>CATEGORY &#8220;Internet Explorer Lockdown&#8221;<br />
KEYNAME &#8220;SoftwarePoliciesMicrosoftInternet ExplorerToolbarsRestrictions&#8221;<br />
POLICY &#8220;Disable internet explorer address bar&#8221;<br />
PART &#8220;Check to enforce setting on; uncheck to enforce setting off&#8221; CHECKBOX<br />
VALUENAME NoAddressBar<br />
VALUEON NUMERIC 1<br />
VALUEOFF NUMERIC 0<br />
END PART<br />
END POLICY<br />
POLICY &#8220;Disables internet explorer links bar&#8221;<br />
PART &#8220;Check to enforce setting on; uncheck to enforce setting off&#8221; CHECKBOX<br />
VALUENAME NoLinksBar<br />
VALUEON NUMERIC 1<br />
VALUEOFF NUMERIC 0<br />
END PART<br />
END POLICY<br />
END CATEGORY</p></blockquote>
<p>and to disable the other lockdowns i required (not covered in group policy&#8230;./sigh) disabling the search function, disabling the help bar and disabling mail/news are listed below.</p>
<blockquote><p>CATEGORY &#8220;Internet Explorer Lockdown&#8221;<br />
KEYNAME &#8220;SoftwarePoliciesMicrosoftInternet ExplorerRestrictions&#8221;<br />
POLICY &#8220;Disable internet explorer help bar&#8221;<br />
PART &#8220;Check to enforce setting on; uncheck to enforce setting off&#8221; CHECKBOX<br />
VALUENAME NoHelpMenu<br />
VALUEON NUMERIC 1<br />
VALUEOFF NUMERIC 0<br />
END PART<br />
END POLICY<br />
POLICY &#8220;Disable Mail&amp;News option&#8221;<br />
PART &#8220;Check to enforce setting on; uncheck to enforce setting off&#8221; CHECKBOX<br />
VALUENAME RestGoMenu<br />
VALUEON NUMERIC 1<br />
VALUEOFF NUMERIC 0<br />
END PART<br />
END POLICY<br />
END CATEGORY<br />
CATEGORY &#8220;Internet Explorer Lockdown&#8221;<br />
KEYNAME &#8220;SoftwareMicrosoftWindowsCurrentVersionPoliciesexplorer&#8221;<br />
POLICY &#8220;Disable Search Access&#8221;<br />
PART &#8220;Check to enforce setting on; uncheck to enforce setting off&#8221; CHECKBOX<br />
VALUENAME NoFind<br />
VALUEON NUMERIC 1<br />
VALUEOFF NUMERIC 0<br />
END PART<br />
END POLICY<br />
END CATEGORY</p></blockquote>
<p>Once i had the above all in one text document, saved it as a .adm file and imported it into group policy. Checked the options and hey presto, users were locked down. It took me over 8 hours to achieve the above (and the other default policy settings) realistically it shouldn&#8217;t have taken more than 2.</p>
<p>Files are <a href="http://www.4shared.com/file/49478948/c94b090c/Internet_explorer_Lockdown.html" target="_blank">here:</a></p>
]]></content:encoded>
			<wfw:commentRss>http://andrewmorgan.ie/2008/02/how-do-i-create-custom-adm-group-policy-files/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
