<?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>LaslowNET &#187; GPO</title>
	<atom:link href="http://laslow.net/tag/gpo/feed/" rel="self" type="application/rss+xml" />
	<link>http://laslow.net</link>
	<description></description>
	<lastBuildDate>Thu, 10 May 2012 20:19:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Short: Sticky Group Policies That Just Won&#8217;t Leave You Alone</title>
		<link>http://laslow.net/2011/07/07/short-sticky-group-policies-that-just-wont-leave-you-alone/</link>
		<comments>http://laslow.net/2011/07/07/short-sticky-group-policies-that-just-wont-leave-you-alone/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 21:05:29 +0000</pubDate>
		<dc:creator>Laslow</dc:creator>
				<category><![CDATA["It's a Feature"]]></category>
		<category><![CDATA[Makes Sense]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Short]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[GPO]]></category>

		<guid isPermaLink="false">http://laslow.net/?p=1262</guid>
		<description><![CDATA[The other day I was testing a Group Policy Object (GPO) on a system and resides in an isolated Organizational Unit (OU) with Block Inheritance set. After I finished testing, I applied the GPO to the production OUs and promptly forgot about it. Fast forward to today. I was messing around on that system and [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I was testing a Group Policy Object (GPO) on a system and resides in an isolated Organizational Unit (OU) with Block Inheritance set. After I finished testing, I applied the GPO to the production OUs and promptly forgot about it.</p>
<p>Fast forward to today. I was messing around on that system and discovered that I left that one particular GPO in place. I fired up the Group Policy Management tool and removed the link to that GPO, did a <em>gpupdate /force</em> on that system, rebooted and went about my business. A few minutes later, I discovered that GPO was still in effect. I double-checked that the GPO wasn&#8217;t linked to that OU anymore, and that inheritance was still blocked, and did another <em>gpupdate /force,</em> but to no avail. A quick check of <strong>HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy\History</strong> showed that yes, the GPO was still being applied.</p>
<p>I did a little head scratching, and then found the answer. As it turns out, after linking the GPO to the other production OUs, I selected the &#8216;Enforce&#8217; option. By doing that, even after unlinking a GPO from an OU it will continue to be applied. I simply disabled the &#8216;Enforce&#8217; option, ran yet another <em>gpupdate /force</em>, and all was well.</p>
<p><strong>TL;DR Version: If you unlink a GPO from an OU, update the system, and the GPO is still being applied, disable the &#8216;Enforce&#8217; option on that policy and do another gpupdate.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://laslow.net/2011/07/07/short-sticky-group-policies-that-just-wont-leave-you-alone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Folder Redirection to Mapped Network Drives: Frakking Stupid</title>
		<link>http://laslow.net/2011/03/08/folder-redirection-to-mapped-network-drives-frakking-stupid/</link>
		<comments>http://laslow.net/2011/03/08/folder-redirection-to-mapped-network-drives-frakking-stupid/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 02:10:51 +0000</pubDate>
		<dc:creator>Laslow</dc:creator>
				<category><![CDATA["It's a Feature"]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Makes Sense]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[Stupidity]]></category>
		<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">http://www.laslow.net/?p=1140</guid>
		<description><![CDATA[While updating a set of public computers to have private file shares (making use the Home Directory account property in AD to automagically map the drive), I ran in to an issue with folder redirection. I wanted to redirect all of the standard personal folders (Documents, Pictures, Music, et al&#8230;) to the same share, so [...]]]></description>
			<content:encoded><![CDATA[<p>While updating a set of public computers to have private file shares (making use the Home Directory account property in AD to automagically map the drive), I ran in to an issue with folder redirection. I wanted to redirect all of the standard personal folders (Documents, Pictures, Music, et al&#8230;) to the same share, so I setup folder redirection in a Group Policy Object to point those folders to the users home drive (for this example, we&#8217;ll say drive Z: was mapped to \serversharefolder).</p>
<p>I gave the user full rights to the share, and assigned it Owner status as well (all through the Security tab, as standard), and then configured the GPO as appropriate. After rebooting the client computer, however, I checked the Documents folder only to find that it was still pointing at the default location. A quick peek in to Event Viewer revealed the following error:</p>
<blockquote><p>Failed to apply policy and redirect folder &#8220;Documents&#8221; to &#8220;\serversharefolder&#8221;.</p>
<p>Redirection options=0&#215;80009211.</p>
<p>The following error occurred: &#8220;Can not create folder &#8220;\serversharefolder&#8221;".</p>
<p>Error details: &#8220;Access is denied.&#8221;.</p></blockquote>
<p>Which was very strange indeed, as a brief check confirmed that yes, the domain user did in fact have full access to both the folder and the share.</p>
<p>Then, something I saw (and stupidly, ignored) when setting up the GPO came back to me. I fired up the GPO editor and and browsed back to the Documents folder redirection section (User ConfigurationPoliciesWindows SettingsFolder Redirection). After double-clicking the Documents option, and then switching to the Settings tab (shown below), I noticed the top two boxes (&#8220;Grant User Exclusive Rights to Documents&#8221; and &#8220;Move the Contents of Documents to the New Location&#8221;) were selected by default. Given that this was an &#8216;Access Denied&#8217; error, I figured one of these two settings must be at fault, so I unchecked them.</p>
<p><a href="http://www.laslow.net/wp-content/uploads/2011/03/folder_redirection_stupidity.png"><img class="aligncenter size-medium wp-image-1142" title="Folder Redirection Stupidity" src="http://www.laslow.net/wp-content/uploads/2011/03/folder_redirection_stupidity-300x212.png" alt="Folder Redirection Stupidity" width="300" height="212" /></a>After rebooting the client computer, the Documents folder redirected to the Home Drive as expected.</p>
<p>Here&#8217;s where it gets stupid, though. On the &#8216;Target&#8217; tab in the Documents properties window (visible in the screenshot above), if you have the &#8216;Target folder location&#8217; set to &#8216;Redirect to the users home directory&#8217;, it explicitly adds a note that says &#8220;This settings ignores the value of the &#8216;Grant User Exclusive Rights to Documents&#8217;  option on the settings page.</p>
<p>Apparently not, Microsoft. Apparently not.</p>
<p><strong>TL;DR Version: If Folder Redirections aren&#8217;t applying correctly, Event Viewer is showing &#8216;Access Denied&#8217; messages, and you&#8217;re using Home Folders specified in the user account, disable &#8216;Grant User Exclusive Rights to Documents&#8217;  option on the settings page of the GPO. </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://laslow.net/2011/03/08/folder-redirection-to-mapped-network-drives-frakking-stupid/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Howto: Google Desktop on Vista x64 via GPO</title>
		<link>http://laslow.net/2009/05/13/howto-google-desktop-enterprise-on-vista-x64-via-gpo/</link>
		<comments>http://laslow.net/2009/05/13/howto-google-desktop-enterprise-on-vista-x64-via-gpo/#comments</comments>
		<pubDate>Wed, 13 May 2009 22:26:30 +0000</pubDate>
		<dc:creator>Laslow</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[GDS]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[x64]]></category>

		<guid isPermaLink="false">http://www.laslow.net/?p=106</guid>
		<description><![CDATA[Edited to remove references to Enterprise edition when not appropriate. Google Desktop has been in use at our organization long before I started here, however one of the things that&#8217;s irked me about it is the lack of official 64-bit support. Specifically, installation is possible on 64-bit editions of Windows, however a flag (specifically, the [...]]]></description>
			<content:encoded><![CDATA[<p><em>Edited to remove references to Enterprise edition when not appropriate.</em></p>
<p>Google Desktop has been in use at our organization long before I started here, however one of the things that&#8217;s irked me about it is the lack of official 64-bit support. Specifically, installation is possible on 64-bit editions of Windows, however a flag (specifically, the &#8216;/force&#8217; flag) is required when running the installer to get it to actually install.</p>
<p>So although I can manually install the app on workstations, it&#8217;s a bit of a pain as a lot of the 64-bit machines were missed when they were originally setup. As such, I whipped up a nice little GPO that takes care of everything for me, and has some flexibility for installation detection. There are probably easier ways of doing this, but I was in a rush when I wrote the script, and it works very well.</p>
<p><span style="text-decoration: underline;">Instructions</span></p>
<p>To start, download the <a href="http://desktop.google.com/enterprise/index.html">Google Desktop Enterprise package</a>. This contains a .ADM file that can be used in both Server 2003 and Server 2008 Group Policy Management consoles. Create a new GPO, and import the .adm in to the <em>User ConfigurationPoliciesAdministrative Templates</em> object (Server 2003 doesn&#8217;t have the <em>Policies</em> folder, it just goes right to <em>Administrative Templates</em>). It&#8217;s important to do it on the User side rather than the computer side, given the actual installation process.</p>
<p>After the import, it&#8217;s important to note that Server 2008 will place the Google object under <em>Classic Administrative Templates (ADM)</em>, instead of just in the <em>Administrative Templates</em> folder. Now configure the settings you want for GDE, and you&#8217;re almost set.</p>
<p>Here&#8217;s the fun part now &#8211; the actual installation. Download the <a href="http://desktop.google.com">Google Desktop Setup</a> file from Google. Because I&#8217;m too lazy to make a transform for the .MSI, I dug back in to my DOS knowledge and made a batch file to map a drive to a server with a publically-available share, run the Google Desktop installer from the mapped drive with the <em>/force</em> switch, and then disconnect the drive.</p>
<p>The main advantage to doing this if I want to update the installer with a newer version later, I just have to swap out the file &#8211; I don&#8217;t have to screw around with transforms again. The script goes as follows:</p>
<blockquote><p>@ECHO OFF<br />
Color 1F<br />
Title Google Desktop Installer<br />
c:<br />
cd \windows\system32<br />
if exist &#8220;gds_installed&#8221; GOTO End<br />
ECHO Installing Google Desktop Search<br />
ECHO.<br />
net use x: \\public\installs &gt;nul<br />
start /wait x:\GDE\GoogleDesktopSetup.exe /force /silent<br />
net use x: /delete &gt;nul<br />
echo Installed &gt; gds_installed<br />
exit</p>
<p>:End<br />
ECHO Google Desktop Search already installed! Exiting!<br />
exit</p></blockquote>
<p>Alter the server name (<em>public</em> in the example) and path to the installer, and then save the file with the .BAT or .CMD extension in the domains <em>scripts</em> folder, or somewhere accessable to users that will be running the script. Remember, users have to have Read and Execute permission to the folder containing the setup executable and the script.</p>
<p>Once saved, add the batch file to the GPO&#8217;s logon script (again, under User Configuration). Once done, link the GPO to the Organizational Units (OU&#8217;s) that you want GDE installed. Presto! You&#8217;re done!</p>
<p><span style="text-decoration: underline;">The Script Explained</span></p>
<p>The very first part makes the window a nice blue with white writing and gives it a title, just in case the user happens to see it (although typically it runs before Explorer loads, and even then it&#8217;s usually minimized). Immediately after, it makes sure it&#8217;s in the C Drive and changes to the <em>Windows\System32</em> folder and uses an <em>IF EXIST</em> to see if a file named <em>gde_installed</em> is present. If it is, it uses a <em>GOTO</em> to skip the installation and end the batch job.</p>
<p>If <em>gde_installed</em> isn&#8217;t in the <em>system32</em> folder, it maps <em>\publicinstalls</em> (the globally-available share) to the X Drive, which isn&#8217;t used in our organization. It then changes to X:, runs the GDS installer with the <em>/force</em> and <em>/silent</em> flags to install it unattendedly, then it disconnects the X: drive so the users won&#8217;t see it, and creates the <em>gde_installed</em> file in the <em>system32 </em>folder.</p>
<p><span style="text-decoration: underline;">Details</span></p>
<p>In the batch file, you&#8217;ll note the use of <em>&gt;nul</em>. This simply directs console output into nothingness so the command window, if seen, only shows what I have <em>ECHO</em>&#8216;ed to it. You&#8217;ll also notice that the <em>GoogleDesktopSetup.exe</em> program is executed using <em>start /wait</em>. This forces the batch process to wait for the installation to finish before moving on. Without it, it will try to disconnect the X: drive too soon, which will it to prompt the user to forcefully disconnect the drive. As this is a fully automated process, and console output is sent to <em>nul</em>, we don&#8217;t want this to happen, hense the <em>/wait </em>flag.</p>
]]></content:encoded>
			<wfw:commentRss>http://laslow.net/2009/05/13/howto-google-desktop-enterprise-on-vista-x64-via-gpo/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing a Font via GPO (Server 2003/2008)</title>
		<link>http://laslow.net/2009/02/23/installing-a-font-via-gpo-server-20032008/</link>
		<comments>http://laslow.net/2009/02/23/installing-a-font-via-gpo-server-20032008/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 18:59:59 +0000</pubDate>
		<dc:creator>Laslow</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[.msi]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[Server 2003]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Windows Installer]]></category>

		<guid isPermaLink="false">http://www.laslow.net/?p=29</guid>
		<description><![CDATA[I was approached today by a manager requesting that I install the Eco Font on our 60+ workstations. Not being big on manual installations, and definately not wanting to take the &#8216;email the font as an attachment with installation instructions&#8217;, I opt&#8217;ed for the only route that made sense &#8211; installation via Group Policy Object! [...]]]></description>
			<content:encoded><![CDATA[<p>I was approached today by a manager requesting that I install the <a href="http://www.ecofont.eu">Eco Font</a> on our 60+ workstations. Not being big on manual installations, and definately not wanting to take the &#8216;email the font as an attachment with installation instructions&#8217;, I opt&#8217;ed for the only route that made sense &#8211; installation via Group Policy Object!</p>
<p>This process is fairly straight forward, with the only potentially annoying portion being the creation of the actual <em>.msi</em> file to install the font. Sure, you can create batch startup scripts that copy the file to the fonts folder and update the registry, but this is a lot cleaner.</p>
<p>To create the <em>.msi</em> package used to install the font, I grabbed a free copy of <a href="http://www.scalable.com/WinInstall_LE.aspx">WinInstall LE</a>. Unfortunately registration with a non-free (read: Hotmail, Gmail, etc&#8230; accounts not accepted) email address is required. I tend to create throw-away accounts (eg, <em>a9s6dfa9@my_domain.com</em>) that I promptly delete afterwords. I get enough spam as it is.</p>
<p>Once downloaded and installed, there isn&#8217;t that much to do: launch the app, then create a new package by right-clicking on <em>Windows Installer Packages </em>in the top middle and click on <em>New Package</em>. Give it a name and description and you&#8217;re ready to start. Expand the package you just created, and you&#8217;ll see a new line item called <em>New Feature</em>. Select it, then change the name and description in the right-hand pane. No other changes required.</p>
<p>Next, expand the feature line that you just renamed, and you&#8217;ll get another line itm with a GUID (eg, <em>{82B7A2B4-45E8-497A-AFB5-D182960CABF1}</em>) &#8211; go ahead and delete it by right-clicking and choosing <em>Delete</em>. Now right-click on your feature and choose <em>Add Files to Feature</em>. Leave the <em>Source</em> line at it&#8217;s default value, but change the <em>Target</em> line by pressing the browse button (&#8220;&#8230;&#8221;).  From the list, select <em>[WindowsFolder]</em>, then in both the <em>Long folder path</em> and <em>Short folder path</em> boxes add <em>Fonts</em>, so they read &#8220;<em>[WindowsFolder]\Fonts</em>&#8221; (without the quotes, of course). Now click OK. All we need to do now is add the file, which can be done by clicking the Add File button directly under the <em>Target</em> box. Browse to find your font and click Open. Now click OK, and you&#8217;ll see two new GUIDs under your feature.</p>
<p>The last thing we need to do is make this .<em>msi</em> package install without prompting the user. Simply click on the package line (not the feature), and click on the <em>Install Modes</em> tab on the right. Select <em>Install only per machine</em> and check the <em>Show basic user interface only (simple progress and error handling)</em> box.</p>
<p>Now all you need to do is compress the package &#8211; this will physically include the font inside the <em>.msi</em> package so that you only need the <em>.msi</em> file itself, rather than the <em>.msi</em> and the font files. To do this, simply select the Windows Installer Package inside WinINSTALL LE (not the feature or the components) and choose &#8216;Compress&#8217; from the &#8216;Action&#8217; (or right-click) menu. In the new window, simply press &#8216;Compress&#8217;, and you&#8217;re done!</p>
<p>By default, the <em>.msi</em> packages you create with WinInstall LE are located at <span style="text-decoration: underline;">\&lt;Computer Name&gt;\WinInstallPackages\&lt;Package Name&gt;</span> on the computer you created them. Although the permissions on their share are very relaxed, we want the installer package to be in a high-availability location so that we can be sure the GPO we&#8217;ll create in just a short while will always be able to access it. I suggest copying it to <span style="text-decoration: underline;">\&lt;Domain Controller&gt;\SYSVOL\&lt;Domain Name&gt;\scripts</span>. The guarentees that all of the clients will be able to access it.</p>
<p>Now login in to one of your Domain Controllers and fire up Group Policy Management. Create a new GPO and link it to whatever computer groups you may have, then right-click it and choose <em>Edit</em>. We&#8217;ll be working under the <em>Computer Configuration </em>header &#8211; if you&#8217;re using Server 2008, select <em>Policies</em>, then <em>Software Settings</em> &#8211; Server 2003 users just select <em>Software Settings</em>. Now right-click on <em>Software Installation</em> and choose <em>New</em> -&gt; <em>Package</em>. Browse for your .<em>msi</em> package, select it, and choose OK. Selected <em>Assigned</em>, then OK.</p>
<p>You&#8217;re done! Just allow time for the GPO to propagate through your domain, and the next time your domain-joined systems reboot the font will be installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://laslow.net/2009/02/23/installing-a-font-via-gpo-server-20032008/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

