<?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>Techspedia™ &#187; GPO</title>
	<atom:link href="http://techspedia.com/tag/gpo/feed/" rel="self" type="application/rss+xml" />
	<link>http://techspedia.com</link>
	<description>A Compilation Of The Best Sources Of Computer Knowledge At Your Fingertips!</description>
	<lastBuildDate>Mon, 05 Sep 2011 17:17:00 +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>Group Policy Object Modeling in Windows Server 2008</title>
		<link>http://techspedia.com/2010/04/19/group-policy-object-modeling-in-windows-server-2008/</link>
		<comments>http://techspedia.com/2010/04/19/group-policy-object-modeling-in-windows-server-2008/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 03:08:34 +0000</pubDate>
		<dc:creator>Techspedia</dc:creator>
				<category><![CDATA[Advanced Topics]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[How To Setup]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tips & Techniques]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[GPO Modeling]]></category>
		<category><![CDATA[Group Policy Modeling]]></category>
		<category><![CDATA[Group Policy Object]]></category>
		<category><![CDATA[WinServer 2008 GPO]]></category>
		<guid isPermaLink="false">http://techspedia.com/?p=876</guid>
		<description><![CDATA[If you have ever done much work with group policies, then you have undoubtedly found out that managing group policies are an organization wide basis can be a complicated endeavor. That&#8217;s primarily due to the hierarchical nature of group policies. Group policy settings can be applied at the OU, site, domain, and local computer levels. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F19%2Fgroup-policy-object-modeling-in-windows-server-2008%2F' data-shr_title='Group+Policy+Object+Modeling+in+Windows+Server+2008'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F19%2Fgroup-policy-object-modeling-in-windows-server-2008%2F' data-shr_title='Group+Policy+Object+Modeling+in+Windows+Server+2008'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F19%2Fgroup-policy-object-modeling-in-windows-server-2008%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you have ever done much work with group policies, then you have undoubtedly found out that managing group policies are an organization wide basis can be a complicated endeavor. That&#8217;s primarily due to the hierarchical nature of group policies. Group policy settings can be applied at the OU, site, domain, and local computer levels. All of these various group policy objects combine to form the effective policy.</p>
<p>As if combining settings for multiple group policy objects were not enough, contradictory settings can, and often do exist within the various group policy objects. Not only can two separate group policy objects contained directly contradictory settings, the group policy settings that apply to the computer can sometimes also contradict with group policy settings applied to a user.</p>
<p>Windows has all kinds of rules for automatically dealing with contradictory group policy settings. Even so, you as an administrator need to know the outcome of these conflict resolutions and what the effective policy look like once the various policy elements have been combined. In Windows Server 2003 this was known as the resultant set of policy. In Windows Server 2008, Microsoft has changed the name to group policy modeling.<span id="more-876"></span></p>
<p>Why Do Group Policy Modeling?</p>
<p>There are several different reasons why you might want to engage in group policy modeling. For starters, even if everything appears to be running smoothly is a good idea to periodically use group policy modeling just to make sure that group policies are being applied in the way that you think that they are. Group policy modeling is also extremely useful in situations in which you are reorganizing the Active Directory or creating new group policy objects.</p>
<p>Performing Group Policy Modeling</p>
<p>To perform group policy modeling begin by opening the Group Policy Management Console. When the console opens, right-click on the Group Policy Modeling container and choose the Group Policy Modeling Wizard command from the shortcut menu. When you do, Windows will launch the Group Policy Modeling Wizard.</p>
<p>Click Next to bypass the wizard&#8217;s welcome screen, and you will be taken to the Domain Controller Selection screen, shown in Figure A. As you can see in the figure, the screen asks you to choose the domain that you want to analyze, and then asks you to either choose a domain controller or specify that any domain controller can be used.</p>
<p><img src="http://www.petri.co.il/images/group-policy-object-modeling-in-windows-server-2008-1_small.jpg" alt="" width="329" height="346" /><br />
Figure A You must specify the domain that you want to analyze.</p>
<p>Click Next, and you will be taken to a screen that asks which user and/or computer you want to simulate the policy settings for. In both cases, you can either specify a particular container or an individual user and/or computer. That way, you can either evaluate a specific user and/or computer, or you can about your weight all of the users and/or computers within a particular container. You can see what this screen looks like in Figure B.</p>
<p><img src="http://www.petri.co.il/images/group-policy-object-modeling-in-windows-server-2008-2_small.jpg" alt="" width="329" height="346" /><br />
Figure B This is where you specify the Active Directory objects that you want to evaluate.</p>
<p>Click Next, and you will be taken to a page that gives you the chance to select a particular site. If you do not have any non-default sites defined, then you can just skip this page by clicking Next.</p>
<p>The next page that you will see allows you to enter alternate network location for a user and computer containers. The basic idea behind this screen is that it allows you to perform various what if scenarios. For example, you can see what would happen to the group policy settings if you were to move the computer in question to a different Active Directory container. Of course you do not have to specify an alternate location unless there is a particular location that you need to test.</p>
<p>When you click Next, you will see a screen listing all of the security groups that the currently selected user is a member of. You have the option of simulating changes to the users group membership if you want. When you&#8217;re done entering any desired changes, click Next. You will now be given the chance to entering WMI filters that you want to use. Add any desired filters, and click Next.</p>
<p>You should now see a summary screen listing the options that you have specified. Make sure that everything looks okay, and then click Next, followed by Finish. When you do, Windows will display a screen similar to the one that is shown in Figure C. This screen allows you to see the outcome of your proposed configuration.</p>
<p><img src="http://www.petri.co.il/images/group-policy-object-modeling-in-windows-server-2008-3_small.jpg" alt="" width="329" height="346" /><br />
Figure C Your proposed changes are displayed in the Group Policy Management Console.</p>
<p>Conclusion</p>
<p>In this article, I have explained that it is sometimes difficult to evaluate the outcome of changes to the group policy. I then went on to show you how to use group policy modeling as a way of testing your proposed changes before you actually implement them.</p>
<p>source:<br />
<a href="http://www.petri.co.il/group-policy-object-modeling-windows-server-2008.htm"> http://www.petri.co.il/group-policy-object-modeling-windows-server-2008.htm </a></p>
<div class="shr-publisher-876"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://techspedia.com/2010/04/19/group-policy-object-modeling-in-windows-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Group Policy Central Store</title>
		<link>http://techspedia.com/2010/04/19/creating-a-group-policy-central-store/</link>
		<comments>http://techspedia.com/2010/04/19/creating-a-group-policy-central-store/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 03:08:32 +0000</pubDate>
		<dc:creator>Techspedia</dc:creator>
				<category><![CDATA[Advanced Topics]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Tips & Techniques]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[GPO Central Store]]></category>
		<category><![CDATA[Group Policy Object]]></category>
		<guid isPermaLink="false">http://techspedia.com/?p=872</guid>
		<description><![CDATA[One of the issues that sometimes made managing group policies difficult in Windows XP and in Windows Server 2003 was the non centralized nature of the group policy template files. For example, Microsoft offers downloadable templates that allow you to manage Microsoft Office via group policy. Even so, these templates are not automatically available from [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F19%2Fcreating-a-group-policy-central-store%2F' data-shr_title='Creating+a+Group+Policy+Central+Store'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F19%2Fcreating-a-group-policy-central-store%2F' data-shr_title='Creating+a+Group+Policy+Central+Store'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F19%2Fcreating-a-group-policy-central-store%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>One of the issues that sometimes made managing group policies difficult in Windows XP and in Windows Server 2003 was the non centralized nature of the group policy template files. For example, Microsoft offers downloadable templates that allow you to manage Microsoft Office via group policy. Even so, these templates are not automatically available from every domain controller.</p>
<p>In Windows Vista and Windows Server 2008, Microsoft decided to make life easier for network administrators by introducing the concept of centralized group policy storage. This storage repository, known as a central store, can be created in domains containing Windows Server 2003 and / or Windows Server 2008 domain controllers. Even though Windows Server 2003 does not technically support centralized group policy storage, Windows Vista does, and this allows you to store the central store on Windows Server 2003 domain controllers if necessary, but manage the central store through Windows Vista.<span id="more-872"></span></p>
<p>How Does a Central Store Work?</p>
<p>As you may have gathered from the previous paragraph, there is really nothing special about the central store itself. It is nothing more than a folder on a server. The reason why a central store can work the way that it does is because of the way that the store is used by Windows Vista and Windows Server 2008.</p>
<p>When an administrator attempts to create or edit a group policy template, Windows checks the domain controller to which it is connected for the existence of a central store. If a central store exists, then Windows will use that central store by default. Otherwise, local copies of the template files are used.</p>
<p>Creating a Central Store</p>
<p>Creating a central store is actually a rather simple process. The first thing that you will have to do is to log onto a computer that is running either Windows Vista or Windows Server 2008. If you have one particular machine that has all of your group policy template files installed on it, then that machine is a good candidate.</p>
<p>The next thing that you must do is to open Windows Explorer, and then go into the C:\Windows folder. Locate the PolicyDefinitions folder, right click on it, and then choose the Copy command from the shortcut menu. This will copy the folder and its contents to the Windows clipboard.</p>
<p>The next step in the process is to map a network drive letter to the sysvol folder on a domain controller. The full path that you will need to access on the domain controller is c:\Windows\SYSVOL\domain\Policies. Finally, copy the PolicyDefinitions folder to the \Windows\SYSVOL\domain\Policies folder on the domain controller. You can see what this looks like in Figure A.</p>
<p><img src="http://www.petri.co.il/images/Creating%20a%20Group%20Policy%20Central%20Store%20-1_small.jpg" alt="" width="372" height="294" /><br />
Figure A Copy the PolicyDefinitions  folder to the domain controller’s \Windows\Sysvol\Domain\Policies  folder.</p>
<p>Testing Your Central Store</p>
<p>In order to gain the maximum benefit from the central store that you have created, I recommend that you periodically run tests to make sure that the central store is actually being used. Fortunately, testing a your central store is even  easier to do than creating the central store was. To do so, open the Group Policy Management console. Now, navigate through the console tree to Forest | Domains | your domain | Group Policy Objects | Default Domain Controller Policy. Upon selecting this policy container, the pane on the right side of the console should display a series of tabs. Go to the Settings tab, and look at the Administrative Templates section. It should confirm that the policy definitions (the ADMX files) have been retrieved from the central store.</p>
<p>One thing that you must keep in mind about this technique is that you may occasionally run into situations in which the Settings tab for a particular group policy template does not even contain an Administrative Templates section, let alone tell you that the template was retrieved from the central store. The reason why this occasionally happens is that the Administrative Templates section is only displayed if the group policy object contains at least one setting.</p>
<p>Conclusion</p>
<p>As you can imagine, keeping group policy templates in a central location can be a significant management issue for companies. However, Windows Server 2008’s (and Windows Vista’s) ability to create a central store greatly simplified the process of keeping track of the various group policy objects that are in use within your company.</p>
<p>source:<br />
<a href="http://www.petri.co.il/creating-group-policy-central-store.htm"> http://www.petri.co.il/creating-group-policy-central-store.htm </a></p>
<div class="shr-publisher-872"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://techspedia.com/2010/04/19/creating-a-group-policy-central-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing Up Group Policy Objects</title>
		<link>http://techspedia.com/2010/04/19/backing-up-group-policy-objects/</link>
		<comments>http://techspedia.com/2010/04/19/backing-up-group-policy-objects/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 03:08:31 +0000</pubDate>
		<dc:creator>Techspedia</dc:creator>
				<category><![CDATA[Advanced Topics]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[How To Keep Secure]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[GPO Backup]]></category>
		<category><![CDATA[Group Policy Object]]></category>
		<guid isPermaLink="false">http://techspedia.com/?p=868</guid>
		<description><![CDATA[Introduction Not too long ago I got a call from a friend who was having some problems related to group policy objects on his network. My friend made a habit of backing up his domain controllers on a regular basis. Even so, someone in the organization have made some changes to some group policy objects, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F19%2Fbacking-up-group-policy-objects%2F' data-shr_title='Backing+Up+Group+Policy+Objects'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F19%2Fbacking-up-group-policy-objects%2F' data-shr_title='Backing+Up+Group+Policy+Objects'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F19%2Fbacking-up-group-policy-objects%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Introduction</p>
<p>Not too long ago I got a call from a friend who was having some problems related to group policy objects on his network. My friend made a habit of backing up his domain controllers on a regular basis. Even so, someone in the organization have made some changes to some group policy objects, and my friend needed to return them to their previous state. The catch was that he didn&#8217;t want to have to perform an authoritative restoration of the entire Active Directory just to recover a few group policy settings.</p>
<p>Fortunately, there is a way that you can backup your group policy settings separately from the rest of the Active Directory. Of course you have to do this before the need to restore your group policy settings arises.</p>
<p>Backing Up the Group Policy Objects</p>
<p>Begin the process by logging on to a Windows Server 2008 domain controller, and opening the Group Policy Management console. Now, navigate through the console tree to Group Policy Management | Forest:  | Domains |  | Group Policy Objects. When you do, the details pane should display all of the group policy objects that are associated with the domain. In Figure A there are only two group policy objects, but in a production environment you may have many more.<span id="more-868"></span></p>
<p>Figure A<br />
<img src="http://www.petri.co.il/wp-content/uploads/backing_up_group_policy_objects-1-300x209.jpg" alt="" /><br />
The Group Policy Objects container stores all of the group policy objects for the domain.</p>
<p>Now, right-click on the Group Policy Objects container, and choose the Back Up All command from the shortcut menu. When you do, Windows will open the Back Up Group Policy Object dialog box. As you can see in Figure B, this dialog box requires you to provide the path to which you want to store the backup files. You can either store the backups in a dedicated folder on a local drive, or you can place them in a folder on a mapped network drive. The dialog box also contains a Description field that you can use to provide a description of the backup that you are creating.</p>
<p>Figure B<br />
<img src="http://www.petri.co.il/wp-content/uploads/backing_up_group_policy_objects-2.jpg" alt="" width="290" height="304" /><br />
You must provide the path to which you want to store your backup of the group policy objects.</p>
<p>To initiate the backup process, just click the Back Up button. When the backup process completes, you should see a dialog box that tells you how many group policy objects were successfully backed up. Click OK to close the dialog box, and you&#8217;re all done.</p>
<p>Backing Up Individual Group Policy Objects</p>
<p>In case you&#8217;re wondering, Windows Server 2008 does allow you to backup individual group policy objects. The process for doing so is very similar to what I just showed you. The difference is that when you select the Group Policy Objects container, shown in Figure A, you would right-click on an individual Group Policy Object rather than on the Group Policy Objects container. From there, you would choose the Back Up command from the shortcut menu. The rest of the process is identical to what you have already seen.</p>
<p>The Anatomy Of The Back Up</p>
<p>When you create a backup, Windows creates individual folders within the target folder. Each of these individual folders bears the GUID of the Group Policy Object that contains. This is true whether you are backing up an individual Group Policy Object, or all of the Group Policy Objects in the entire domain. You can see what the backup folder looks like in Figure C.</p>
<p>Figure C<br />
<img src="http://www.petri.co.il/wp-content/uploads/backing_up_group_policy_objects-31-300x225.jpg" alt="" /><br />
Windows creates a separate folder for each Group Policy Object.</p>
<p>The Restoration Process</p>
<p>When it comes to restoring a backup of any Group Policy Object, you have two options. The first option is to right-click on the Group Policy Object, and choose the Restore From Backup command from the shortcut menu. When you do this, Windows will remove all of the individual settings from the Group Policy Object, and then implement the settings found in the backup.</p>
<p>Your other option is to right-click on the Group Policy Object you want to restore, and choose the Import Settings option. This option works more like a merge than a restore. Any settings that presently reside within the Group Policy Object are retained unless there is a contradictory settings within the file that is being imported.</p>
<p>Conclusion</p>
<p>As you can see, it is pretty simple to backup your Group Policy Objects. Even so, a lot of administrators do not realize the importance of backing up group policy objects separate from backing up the Active Directory.</p>
<p>source:<br />
<a href="http://www.petri.co.il/backing-up-group-policy-objects.htm"> http://www.petri.co.il/backing-up-group-policy-objects.htm </a></p>
<div class="shr-publisher-868"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://techspedia.com/2010/04/19/backing-up-group-policy-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automating Group Policy Management with Windows PowerShell</title>
		<link>http://techspedia.com/2010/04/13/automating-group-policy-management-with-windows-powershell/</link>
		<comments>http://techspedia.com/2010/04/13/automating-group-policy-management-with-windows-powershell/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 02:58:25 +0000</pubDate>
		<dc:creator>Techspedia</dc:creator>
				<category><![CDATA[Advanced Topics]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Tips & Techniques]]></category>
		<category><![CDATA[Automating Group Policy]]></category>
		<category><![CDATA[Cmdlets in Wind Server 2008]]></category>
		<category><![CDATA[Cmdlets in Windows 7]]></category>
		<category><![CDATA[Creating Group Policy Reports]]></category>
		<category><![CDATA[GPMC]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[Group Policy Management Console]]></category>
		<category><![CDATA[Group Policy Object]]></category>
		<category><![CDATA[Using GPMC APIs]]></category>
		<category><![CDATA[Windows Group Policy]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<guid isPermaLink="false">http://techspedia.com/?p=778</guid>
		<description><![CDATA[Group Policy is a powerful yet complex technology. It is used, to some extent, in almost every environment. And for many who rely on it heavily to secure and lock down their Windows environment, Group Policy is a key part of their infrastructure. That said, I am always surprised to see how little automation is [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F13%2Fautomating-group-policy-management-with-windows-powershell%2F' data-shr_title='Automating+Group+Policy+Management+with+Windows+PowerShell'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F13%2Fautomating-group-policy-management-with-windows-powershell%2F' data-shr_title='Automating+Group+Policy+Management+with+Windows+PowerShell'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F13%2Fautomating-group-policy-management-with-windows-powershell%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Group Policy is a powerful yet complex technology. It is used, to some extent, in almost every environment. And for many who rely on it heavily to secure and lock down their Windows environment, Group Policy is a key part of their infrastructure.</p>
<p>That said, I am always surprised to see how little automation is used for Group Policy management in many IT organizations. When the Group Policy Management Console (GPMC) shipped, Microsoft made a set of APIs and sample scripts available for automating tasks that were performed with that console. There is much that can be done using these APIs, as well as opportunities to automate other aspects of Group Policy management, such as troubleshooting and diagnostic tasks. And, with the advent of Windows PowerShell, some of these tasks have become easier.</p>
<p>Thorbjörn Sjövold discussed using Windows PowerShell for getting at some of the GPMC APIs in his article &#8220;Simplify Group Policy Administration with Windows PowerShell.&#8221; In this article, I want to build on that foundation with some additional automation techniques you can use to further automate management of your Group Policy environment.<span id="more-778"></span></p>
<p>What Does GPMC Offer?</p>
<p>The GPMC is focused on operating against the whole Group Policy Object (GPO), and its associated permissions, links, and so on. It does not provide automation or management of the actual settings within the GPO. However, it can be useful to perform automation against the whole GPO as a way of managing the change process within your Group Policy environment. For example, you can use the GPMC APIs to modify links to GPOs. If you have a new GPO that you want to deploy, you can script the creation of the GPO and then you can script the linking process after its settings have been populated. You can also script the changing of a GPO&#8217;s permissions, in case you want to modify which security groups are targeted by a GPO or who can edit that GPO.</p>
<p>And of course, you can always use the APIs to query information about GPOs, as opposed to just making changes. This includes generating HTML- and XML-based reports for GPO settings as well as Resultant Set of Policy (RSoP) reports against remote workstations and servers to determine if Group Policy was successfully applied.</p>
<p>It&#8217;s also worth mentioning that when Microsoft released the updated GPMC that shipped with Windows Vista SP1 and Windows Server 2008, there were some updates to the APIs in order to support some of the new features that GPMC and Group Policy in general support. These include the ability to create new GPOs from &#8220;Starter GPOs&#8221; and to add comments to a GPO. Starter GPOs are like templates—they let you create a set of Administrative Template policy settings that you can then apply to a new GPO, pre-populating some of its settings. I want to start by looking at how you can automate the process of creating, permissioning, and linking a GPO and then show how you can leverage some of these new GPMC features in this automation.</p>
<p>Automating the GPO Lifecycle</p>
<p>To demonstrate how you can automate creating and managing GPOs, I am going to use Windows PowerShell and the GPMC APIs. In my example, I am creating a GPO called &#8220;TechNet Marketing Policy.&#8221; When I create the GPO, I&#8217;m going to use a Starter GPO called &#8220;User Lockdown Template&#8221; as the starting point and add a comment indicating that I created the GPO. I could create the Starter GPO using GPMC APIs, but in this example, I&#8217;m going to assume it already exists.</p>
<p>The next step that I want to automate is the permissioning of the GPO. I&#8217;m going to permission the GPO so that only users within the &#8220;Marketing Users&#8221; group will process the policy, and I will add a group called the &#8220;GPO Admins&#8221; with the permissions to edit the GPO. Finally, I am going to link the GPO to the Marketing OU in my Active Directory domain.</p>
<p>The entire Windows PowerShell script, which I&#8217;ve called gpoCreate.ps1, is shown in Figure 1. I&#8217;ve added the line numbers simply for reference.</p>
<p><img src="http://techspedia.com/wp-content/uploads/2010/03/image11.jpg" alt="" width="425" height="316" /><br />
Figure 1 The Windows PowerShell gpoCreate.ps1 scriptt</p>
<p>Line 1 is required to get started using the GPMC APIs. You will use this in any GPMC script you write. This line creates an instance of the base GPMC object and assigns it to the $gpmc variable. Line 2 is another commonly used command. The GPMC provides a set of handy constants that are used across the spectrum of tasks to indicate a particular state. You&#8217;ll see how I use it later in the script, but for now, I&#8217;ll just assign the constants to the $constants variable.</p>
<p>In Line 3, I need to get a reference to the Active Directory domain that I&#8217;ll be operating on. In my example, that is a domain called cpandl.com. To do that, I call the GetDomain method on the $gpmc variable. The two $null parameters are optional and allow you to specify a particular domain controller to connect to when you connect to the domain. By leaving these null, I&#8217;m essentially choosing the default, which is the PDC emulator DC.</p>
<p>In Line 4, I need to get a reference to my Starter GPO (User Lockdown Template). The GetStarterGPO method only supports calling the Starter GPO by its GUID, so I have to go into the GPMC console to look for that. (I could have scripted it also.) That&#8217;s the GUID I&#8217;m passing to the GetStarterGPO method.</p>
<p>In Line 5, once I have my Starter GPO reference, I use it to create the new GPO, using the CreateGPOfromStarterGPO method that is available on the $domain variable. I assign the newly created GPO to $gpo so I can continue to use it. Note that at this point, the GPO has no name (well, it has the default name of &#8220;New Group Policy Object&#8221;). So in Line 6, I modify the displayName property on $gpo to give it a new name. Line 7 is where I add a comment to the GPO, by setting the description property on $gpo.</p>
<p>Now that I&#8217;ve got my GPO created, the next set of tasks is to modify the permissions on the GPO. In Line 8, I start off by getting the current list of permissions on my newly created GPO, using the GetSecurityInfo method on the GPO. The approach for modifying permissions on a GPO is to get the list of current permissions on the GPO, add and delete entries from that list as needed, and then re-apply the list to the GPO. To that end, in Line 9, I remove the Authenticated Users default permission from the newly created GPO.</p>
<p>In Lines 10 and 11, I create the two new permissions that I want to add to the GPO. I create those using the $gpmc CreatePermission method, supplying the Trustee (user group) name and the permission that I want the group to have. Note that I&#8217;m using the $constants variable to define the permission. The $constants.permGPOApply property grants the &#8220;Read and Apply Group Policy&#8221; permissions that allow members of a group to process a GPO, while the permGPOEdit property grants the ability for that group to Edit a GPO. The $false parameter at the end of the CreatePermission method call simply says that the permission should not be inherited, which is the default for GPO permissions.</p>
<p>Once the two permissions are created, Lines 12 and 13 add them back to the $permissions list and Line 14 calls the SetSecurityInfo method on the GPO to apply the new list back to the GPO.</p>
<p>The final two lines link the GPO to the Marketing OU. In Line 15, I call the GetSOM method (SOM stands for &#8220;scope of management&#8221;) on the $domain variable to &#8220;connect&#8221; to the OU. In Line 16, I call CreateGPOLink on the $som object I just created and pass it two parameters. The first parameter indicates the order on the OU that I want the GPO to be linked (an OU can have multiple GPOs linked to it). The &#8220;1&#8243; stated for the first parameter indicates that I want the GPO to be linked first in the list. The second parameter (in this case, the $gpo variable) is the reference to the GPO I want to link. And now I&#8217;ve successfully created, permissioned, and linked a GPO using automation. The result is shown in Figure 2.</p>
<p><img src="http://i.technet.microsoft.com/dd797571.fig01_L(en-us).gif" alt="" width="501" height="354" /><br />
Figure 2 Viewing the Newly Created GPO</p>
<p>Automating Group Policy Reporting</p>
<p>Another aspect of Group Policy management you can automate is the reporting. In this respect, there are at least two types of reports that GPMC delivers. The first is the ability to report on the settings within a GPO. This allows you to generate either an HTML- or XML-based report of the settings that are currently enabled in the GPO, as shown in Figure 3.</p>
<p><img src="http://i.technet.microsoft.com/dd797571.fig02_L(en-us).gif" alt="" width="501" height="354" /><br />
Figure 3 Reporting on GPO Settings</p>
<p>The second reporting capability lets you generate Resultant Set of Policy (RSoP) or Group Policy Results reports. There are two types of RSoP reports—logging and planning. A logging report is run against a remote desktop or server, indicating what policies were delivered to that remote system and whether they were successful. The RSoP planning report lets you perform what-if analysis against a particular OU, computer, or user to determine what policies will apply. In both cases—logging and planning—you can generate HTML or XML output using the GPMC APIs and Windows PowerShell.</p>
<p>Generating an HTML-Based Report</p>
<p>To generate a GPO settings report in Windows PowerShell, I start off with two familiar initialization commands, which I used in the previous script:</p>
<p>1. $gpmc = New-Object -ComObject GPMgmt.GPM<br />
2. $constants = $gpmc.GetConstants()</p>
<p>Next, I need to get a reference to the GPO that I want to report on, like so:</p>
<p>3. $domain = $gpmc.GetDomain(&#8220;cpandl.com&#8221;,$null,$null)<br />
4. $gpo = domain.GetGPO(&#8220;{31B2F340-016D-11D2-945F-00C04FB984F9}&#8221;)</p>
<p>In Line 3 here, I am again connecting to the domain and then in Line 4, I use the GetGPO method on the domain to get a reference to the GPO I want to report on. In this case, I have to pass the GUID of the GPO, which happens to be the &#8220;Default Domain Policy.&#8221;<br />
Next, I need to generate the settings report:</p>
<p>5. $gpo.GenerateReportToFile($constants.ReportHTML,&#8221;c:\GPReports\DDPSettings.html&#8221;)</p>
<p>Here, I am calling the GenerateReportToFile method on the GPO to create the settings report. The first parameter uses the $constants variable to specify an HTML report type. The second parameter points to the path where I want to save the report.</p>
<p>Generating an XML-Based Report</p>
<p>Another way to access the settings data using Windows PowerShell is to take advantage of the built-in XML parsing capabilities in Windows PowerShell and its ability to generate a settings report in XML. So, instead of Line 5 above, I change that to the following:</p>
<p>[xml]$report = ($gpo.GenerateReport($constants.ReportXML)).Result</p>
<p>In this example, I&#8217;m using a different method on the GPO, called GenerateReport. This method takes a single parameter, which is the report type. But in this case, I am assigning the output of the method call to a variable called $report and I am preceding that variable name with the Windows PowerShell type accelerator [xml], which tells PowerShell to take the output of the command that I am storing in $report and convert it to an XML document instead of just a bunch of text. However, in order to get the actual XML from GenerateReport, I have to use the Result property on that output, which is what you see at the end of that statement. So the Result property holds the actual XML that I am using to generate my XML document.</p>
<p>Once I have the XML in the $report variable, I can do lots of interesting things with it. For example, consider the following command:</p>
<p>$report.GPO</p>
<p>This returns the &#8220;GPO&#8221; element within the document that provides overview information about the GPO I am reporting on. Or this command:</p>
<p>$report.GPO.LinksTo</p>
<p>This returns a list of all of the places that this GPO has been linked.</p>
<p>But more interestingly, I can use the structured nature of XML to investigate the actual settings within the GPO from the command-line. For example, since this is the Default Domain Policy GPO, I know it probably contains some security settings related to password policy. By navigating the GPO namespace as represented in the XML file, I can quickly get to those settings, as follows:</p>
<p>$report.GPO.Computer</p>
<p>This returns information about the Computer side of the GPO. If I view the properties on this Computer property, I notice a collection of policy areas under the ExtensionData property, as shown in Figure 4.</p>
<p><img src="http://i.technet.microsoft.com/dd797571.fig03_L(en-us).gif" alt="" width="501" height="354" /><br />
Figure 4 Viewing GPO Settings Through XML</p>
<p>In this example, there are two extension areas within the computer side of this GPO: registry and security. So I issue the following command:</p>
<p>$report.GPO.Computer.ExtensionData[0].Extension</p>
<p>This gives me a list of policy areas implemented under the Security policy section. I see two properties called Account and Security Options. Now I enter the following command:</p>
<p>$report.GPO.Computer.ExtensionData[0].Extension.Account</p>
<p>This gives me a list of each of the Account Policy settings for this GPO, as shown in Figure 5.</p>
<p><img src="http://i.technet.microsoft.com/dd797571.fig04_L(en-us).gif" alt="" width="501" height="354" /><br />
Figure 5 Viewing Account Policy Settings Within the GPO</p>
<p>Notice that some of the settings do not actually show the value in Figure 5. Each setting is returned as a member of a collection under the Account property. So in order to see, for example, the Minimum Password Length setting, I need to index into the collection, like so:</p>
<p>$report.GPO.Computer.ExtensionData[0].Extension.Account[4]</p>
<p>Once you get the hang of navigating the XML namespace for GPO settings, you can easily get to particular settings and use this capability in conjunction with Windows PowerShell to locate the values of settings within a GPO quite quickly.</p>
<p>Reporting on RSoP logging</p>
<p>Just as with GPO settings, you can generate an XML- or HTML-based report in Windows PowerShell that shows the Group Policy settings that have been applied to a given machine. The approach is a little different, though. Starting again with the two initialization commands, I take the script in a slightly different direction:</p>
<p>1. $gpmc = New-Object -ComObject GPMgmt.GPM<br />
2. $constants = $gpmc.GetConstants()<br />
3. $rsop = $gpmc.GetRSOP($constants.RSOPModeLogging,$null,0)<br />
4. $rsop.LoggingComputer = &#8220;xp2&#8243;<br />
5. $rsop.LoggingUser = &#8220;cpandl\dpmtest&#8221;<br />
6. $rsop.CreateQueryResults()<br />
7. $rsop.GenerateReportToFile($constants.ReportHTML,&#8221;c:\gpreports\XP2Rsop.html&#8221;)</p>
<p>After Lines 1 and 2 set up the process, Line 3 creates the $rsop variable by calling the GetRSOP method on $gpmc. In that method call, I indicate that I want to create an RSOP logging and not a planning report. Lines 4 and 5 set properties on that $rsop object to tell it what computer and user I want to collect RSOP data against. Then, the sole purpose of Line 6 is to connect to the computer specified in line 5 and generate the RSoP namespace for this query. Finally, in Line 7, I output the results of the query to an HTML file.<br />
Note that the RSoP object also has a GenerateReport method similar to the GPO settings example. And you can output the RSOP report to an XML document and navigate through it in Windows PowerShell to find out what&#8217;s happening from a Group Policy perspective on that remote client. For example, say I want to quickly find out if Group Policy processing succeeded for the Computer side of GPO processing. I can use the previous script, but replace Line 7 with this:</p>
<p>[xml]$rsopReport =<br />
($rsop.GenerateReport($constants.ReportXML)).Result</p>
<p>This puts my RSoP report into an XML document.<br />
Next, I can navigate into the XML name-space to find out the Client-Side Extension (CSE) status for the computer as follows:</p>
<p>$rsopReport.Rsop.ComputerResults.ExtensionStatus</p>
<p>When I do that, I get a listing that shows me the status on each CSE that was processed by the computer!</p>
<p>An Easier Way</p>
<p>As I&#8217;ve shown so far, there is a lot of powerin leveraging the GPMC APIs to automate Group Policy lifecycle, reporting, and diagnostic tasks. But it does take quite a few steps to get to the desired result. However, there is somerelief and even more coming in the future.</p>
<p>I&#8217;ve created a set of 25 free GPMC Windows PowerShell cmdlets that wrap most of the common GPMC functions into easy-to-use cmdlets. You can download these GPMC cmdlets at www.sdmsoftware.com/freeware. To give you an example of the simplified process, from our first example of creating and then permissioning and linking a GPO, the following script using my GPMC cmdlets would accomplish the same tasks as the script I presented earlier, but with fewer commands:</p>
<p>$gpo = New-SDMgpo &#8220;Technet Marketing Policy&#8221;<br />
-FromStarterGPO &#8220;User Lockdown Template&#8221; –native<br />
$gpo.Description =<br />
&#8220;Darren&#8217;s Technet Demo GPO&#8221; Remove-SDMgpoSecurity<br />
$gpo.DisplayName -Trustee &#8220;Authenticated Users&#8221;  –PermApply<br />
Add-SDMgpoSecurity $gpo.DisplayName<br />
-Trustee &#8220;Marketing Users&#8221; –PermApply<br />
Add-SDMgpoSecurity $gpo.DisplayName<br />
-Trustee &#8220;GPO Admins&#8221; –PermEdit<br />
Add-SDMgplink &#8220;Technet Marketing Policy&#8221;<br />
-Scope &#8220;OU=Marketing,DC=cpandl,DC=com&#8221; -Location 1</p>
<p>Even better, Windows 7 and Windows Server 2008 R2 will provide built-in Windows PowerShell cmdlets for GPMC. For example, to create my example GPO from a Starter GPO with a comment, I can issue one Windows PowerShell command, as follows:</p>
<p>new-gpo &#8220;Darren&#8217;s Technet Policy&#8221; -starterGPOName<br />
&#8220;User Lockdown Template&#8221; -Comment &#8220;Darren&#8217;s Demo&#8221;</p>
<p>Microsoft is also adding support for reading and writing a subset of Group Policy settings. Specifically, there will be support for reading and writing registry settings into either native Administrative Template policy or the newer Group Policy Preferences registry extension. For example, to write a new registry value into Group Policy Preferences, I would issue the following command :</p>
<p>Set-GPPrefRegistryValue &#8220;Darren&#8217;s Technet Policy&#8221;<br />
-key &#8216;HKEY_LOCAL_MACHINE\Software\SDM Software&#8217;<br />
-ValueName &#8220;Path&#8221; -Value &#8220;2&#8243; -Type String<br />
-Context Computer -Action Update</p>
<p>Here, the set-GPPrefRegistryValue cmdlet takes a number of parameters to create a registry policy setting within my &#8220;Darren&#8217;s Technet Policy&#8221; GPO for the registry value HKEY_LOCAL_MACHINE\Software\SDM Software\Path= REG_SZ 2. The Context parameter tells the policy whether it should be put under the Computer or User side of the GPO, and the Action parameter specifies how to apply the registry value and corresponds to the options within the GPP UI (other options include Replace, Create and Delete).<br />
As of the time of writing this article, Windows 7 and Windows Server 2008 R2 are planned to ship with 25 cmdlets for managing Group Policy. Once these are available, managing Group Policy through Windows PowerShell will be much easier.</p>
<p>source:<br />
<a href="http://technet.microsoft.com/en-us/magazine/2009.06.gpmanagement.aspx"> http://technet.microsoft.com/en-us/magazine/2009.06.gpmanagement.aspx </a></p>
<div class="shr-publisher-778"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://techspedia.com/2010/04/13/automating-group-policy-management-with-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding Administrative Templates in GPO</title>
		<link>http://techspedia.com/2010/04/06/understanding-administrative-templates-in-gpo/</link>
		<comments>http://techspedia.com/2010/04/06/understanding-administrative-templates-in-gpo/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 02:49:05 +0000</pubDate>
		<dc:creator>Techspedia</dc:creator>
				<category><![CDATA[Advanced Topics]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Introductions]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[ADM Files]]></category>
		<category><![CDATA[Administrative Templates]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[GPO Administrative Templates]]></category>
		<category><![CDATA[GPO Templates]]></category>
		<category><![CDATA[Group Policy Objects]]></category>
		<guid isPermaLink="false">http://techspedia.com/?p=671</guid>
		<description><![CDATA[What are Administrative Template in Group Policy Objects? In Windows 2000 and Windows Server 2003 Group Policy Objects (also known as GPO) you may find hundreds of useful settings and configuration options, all nicely divided in to specific sections. With GPO, you can create policies to centralize the management of user and computer settings. Amongst [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F06%2Funderstanding-administrative-templates-in-gpo%2F' data-shr_title='Understanding+Administrative+Templates+in+GPO'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F06%2Funderstanding-administrative-templates-in-gpo%2F' data-shr_title='Understanding+Administrative+Templates+in+GPO'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F04%2F06%2Funderstanding-administrative-templates-in-gpo%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>What are Administrative Template in Group Policy Objects?</p>
<p>In Windows 2000 and Windows Server 2003 Group Policy Objects (also known as GPO) you may find hundreds of useful settings and configuration options, all nicely divided in to specific sections. With GPO, you can create policies to centralize the management of user and computer settings. Amongst the various settings that can be accomplished via GPO, you can find the following options:</p>
<p>* Manage desktop environments and lock them down to reduce support calls and TCO (Total Cost of Ownership)<br />
* Install, update, repair, and remove software<br />
* Manage security settings including account policies, auditing, EFS, and user rights<br />
* Control running state of services<br />
* Redirect My Documents folders<br />
* Configure Internet Explorer options and security settings<br />
* Automate administrative tasks using log-on, log-off, startup and shutdown scripts</p>
<p>and many many more.<span id="more-671"></span></p>
<p>These sections can be clearly seen in the following screenshot:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.petri.co.il/images/add_adm.gif" alt="" width="384" height="312" /></p>
<p>Note that the GPO settings is divided between the Computer settings and the User settings. In both parts of the GPO you can clearly see a large section called Administrative Templates.</p>
<p>Administrative Templates are a large repository of registry-based changes (in fact, over 1300 individual settings) that can be found in any GPO on Windows 2000, Windows XP, and Windows Server 2003.</p>
<p>By using the Administrative Template sections of the GPO you can deploy modifications to machine (called HKEY_LOCAL_MACHINE in the registry) and user (called HKEY_CURRENT_USER in the registry) portions of the Registry of computers that are influenced by the GPO.</p>
<p>The Administrative Templates are Unicode-formatted text files with the extension .ADM and are used to create the Administrative Templates portion of the user interface for the GPO Editor.</p>
<p>Windows 2000/XP/2003 has some built-in default Administrative Templates:</p>
<p><img src="http://techspedia.com/wp-content/uploads/2010/03/image1.jpg" alt="" /></p>
<p>These .ADM files are located in the %SystemRoot%\inf folder, and are copied to the SYSVOL folder whenever you create a new GPO (unless to manually configure it not to do so. See Links section on an explanation on how to do this).</p>
<p>On top of these templates, Windows 2000/XP/2003 also has other .ADM files that can be used in several scenarios:</p>
<p><img src="http://techspedia.com/wp-content/uploads/2010/03/image2.jpg" alt="" /></p>
<p>However there may be times when an administrator will need to add more options to a new or existing GPO. Some examples of such additions are:</p>
<p>* Settings to disable mobile storage devices (USB, MP3 players, cameras and so on)<br />
* Settings to control the functionality of specific Windows features<br />
* Settings to control behavior of specific Windows services or drivers<br />
* Settings that add or change registry keys<br />
* Changes to the Windows security model</p>
<p>One method for an administrator to control such settings is by use of logon scripts and remote registry tweaks. This process requires knowledge of scripting languages, but is highly customizable and flexible, and is not restricted to GPO limitations (i.e. not working on pre-W2K computers). However we will not cover this method in this article.</p>
<p>Another method for an administrator to add such extensions to the GPO is by adding new settings to the Administrative Templates sections. This can be done by adding .ADM files to the existing Administrative Templates section in GPO.</p>
<p>In order to add additional .ADM files to the existing Administrative Templates section in GPO please follow the steps outlined in the Adding New Administrative Templates to a GPO article.</p>
<p>A great example of new .ADM files that can and should be used on a network is the set of Administrative Templates extension files that is a part of the Office 2000/XP/2003 Resource Kit. When installing the Resource Kit for the respective Office version, new .ADM files are copied to the %SystemRoot%\inf folder of the machine on which the Resource Kit was installed. The moment you edit an Active Directory-based GPO on that machine (the machine can be either a Windows 2000/XP Pro machine, or a server-based machine) the used .ADM file(s) will be copied to the SYSVOL folder on the target DC (typically the PDC Emulator), and from there replicated throughout the domain.</p>
<p>The following screenshot shows the new .ADM files while importing one of them to a GPO:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.petri.co.il/images/add_adm14.gif" alt="" width="384" height="312" /></p>
<p>source:<br />
<a href="http://www.petri.co.il/understanding_administrative_templates_in_gpo.htm"> http://www.petri.co.il/understanding_administrative_templates_in_gpo.htm </a></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 684px; width: 1px; height: 1px; overflow: hidden;"><img src="file:///C:/TMP/moz-screenshot.png" alt="" /></div>
<div class="shr-publisher-671"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://techspedia.com/2010/04/06/understanding-administrative-templates-in-gpo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Custom ADM Templates with Windows Server 2008/Vista/7</title>
		<link>http://techspedia.com/2010/03/31/using-custom-adm-templates-with-windows-server-2008vista7/</link>
		<comments>http://techspedia.com/2010/03/31/using-custom-adm-templates-with-windows-server-2008vista7/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 02:40:15 +0000</pubDate>
		<dc:creator>Techspedia</dc:creator>
				<category><![CDATA[Advanced Topics]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Tips & Techniques]]></category>
		<category><![CDATA[ADM]]></category>
		<category><![CDATA[ADM Files]]></category>
		<category><![CDATA[ADM for Windows Server 2008]]></category>
		<category><![CDATA[ADM Templates]]></category>
		<category><![CDATA[ADM Vista]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[GPO Settings]]></category>
		<category><![CDATA[Group Policy Object]]></category>
		<category><![CDATA[Group Policy Setting]]></category>
		<category><![CDATA[Registry Settings]]></category>
		<category><![CDATA[Using ADM]]></category>
		<category><![CDATA[Using Custom ADM]]></category>
		<guid isPermaLink="false">http://techspedia.com/?p=510</guid>
		<description><![CDATA[Introduction There are numerous companies out there that have developed custom ADM templates to handle their hard to reach Registry settings. These custom ADM templates were necessary because Microsoft did not, and could not, include all Registry settings in the default Group Policy Object (GPO) settings. These ADM templates have been around for a long [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F03%2F31%2Fusing-custom-adm-templates-with-windows-server-2008vista7%2F' data-shr_title='Using+Custom+ADM+Templates+with+Windows+Server+2008%2FVista%2F7'></a><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F03%2F31%2Fusing-custom-adm-templates-with-windows-server-2008vista7%2F' data-shr_title='Using+Custom+ADM+Templates+with+Windows+Server+2008%2FVista%2F7'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Ftechspedia.com%2F2010%2F03%2F31%2Fusing-custom-adm-templates-with-windows-server-2008vista7%2F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Introduction</p>
<p>There are numerous companies out there that have developed custom ADM templates to handle their hard to reach Registry settings. These custom ADM templates were necessary because Microsoft did not, and could not, include all Registry settings in the default Group Policy Object (GPO) settings. These ADM templates have been around for a long time and now that Windows Server 2008, Vista, and 7 do not use ADM templates, I often get questions asking me what will happen with the custom ADM templates. In this article I will briefly describe what an ADM template does, then describe how you will move forward with these custom templates in your new Windows Server 2008/Vista/7 environment.</p>
<p>What Does a Custom ADM Template do?</p>
<p>An ADM template is a file that is designed to be used within Group Policy to define a Registry setting and its’ value. There are 5 default ADM templates that come with Windows Server 2003 and XP, but these files can only handle so many Registry settings. If you want to have more Registry settings available in your GPO, then you have an option of creating a custom ADM template.</p>
<p>A custom ADM template (or a standard one for that matter) is responsible for doing two things. First, it is responsible for defining what will be changed in the Registry. We are all familiar with the Registry by now, I hope! The Registry is broken down into two parts for what ADM templates are concerned: HKEY_LOCAL_MACHINE (HKLM) and HKEY_CURRENT_USER (HKCU).</p>
<p>The ADM template will define the path in the Registry, the value within that path, and the data (or set value) that the value can and will be set to.</p>
<p>The custom ADM template also establishes the folder(s) and policy within the GPO. If the Registry value falls under HKLM, then the policy will be located under Computer Configuration\Policies\Administrative Templates and if the value falls under HKCU the policy will be located under User Configuration\Administrative Templates when you edit the GPO to find the setting. Figure 1 illustrates that a custom ADM template entry might look like. </p>
<p><img src="http://www.windowsnetworking.com/img/upl/image0021265983974217.jpg" width=400 alt="" /><br />
Figure 1: Custom ADM template entry in the GPO editor</p>
<p>Note:<br />
If you are looking at a GPO on Windows Server 2008/Vista/7, then you will also have a Policies folder before the Administrative Templates folder in the GPO editor.<br />
How do you Include Custom ADM Templates in Windows Server 2003/XP and before?</p>
<p>When a custom ADM template was added to a GPO in the past, the ADM template was added through the GPO editor. Because ADM templates only control the Administrative Templates portion of the GPO, this is where you go to add in any custom ADM templates.</p>
<p>In order to add a custom ADM template, you right-click on the Administrative Templates node (you can select either the one under Computer Configuration or User Configuration, it does not matter for the importing of the ADM template), then select the Add/Remove Template option, as shown in Figure 2. </p>
<p><img src="http://www.windowsnetworking.com/img/upl/image0041265983974233.jpg" width=400 alt="" /><br />
Figure 2: Adding Custom ADM templates to a GPO</p>
<p>If there are no errors in the custom ADM template syntax, the new setting will just appear in the editor. If there are errors, and there will typically be an error message that will not allow the file to be imported until the error is corrected.</p>
<p>Where are Custom ADM Templates Stored?</p>
<p>ADM templates are all stored with the GPO settings on the domain controllers. The location for these files is in the default path of c:\Windows\Sysvol\sysvol\<domainname>\Policies\<guid of GPO>\ADMs. Here, you will find the default 5 ADM templates, as well as any custom ADM templates that you have imported into the GPO.</p>
<p>Note:<br />
Custom ADM templates are associated with only the GPO that imported it. If you want an ADM template to be available for multiple GPOs, you must import it into each GPO individually, thus creating multiple copies of the ADM file in each GPOs storage folder in sysvol.<br />
Windows Server 2008/Vista/7 and Administrative Templates</p>
<p>Microsoft made a radical change from ADM templates to ADMX/ADML files when they released Windows Vista and Windows Server 2008. There are no ADM templates on either of these operating systems. The role of the ADMX/ADML is identical to that of the ADM template, it is just that each responsibility of the ADM template is now broken such that the ADMX file is responsible for one task, where the ADML file is responsible for the other.</p>
<p>ADMX files are responsible for defining the Registry portion of the GPO setting. These files are not language specific, in that they come in English only.</p>
<p>ADML files are language files and are responsible for creating the folder and policy structure in the GPO editor. This allows for many languages to be supported, where ADM templates only supported English.</p>
<p>Be default, ADMX/ADML files are obtained from the local computer where the GPO is being administered. If you create a central store, <a href="http://www.windowsecurity.com/articles/Managing-Windows-Vista-Group-Policy-Part1.html"> http://www.windowsecurity.com/articles/Managing-Windows-Vista-Group-Policy-Part1.html </a>, then you have all Windows Server 2008/Vista/7 computers using a single version of the ADMX/ADML files.</p>
<p>Note:<br />
Be sure to update the central store with Windows 7 or Windows Server 2008 R2 ADMX/ADML files once you get one of these operating systems on your network. There are changes to the files that you will want all computers taking advantage of.<br />
Having Custom ADM Templates with Windows Server 2008/Vista/7</p>
<p>Since Windows Server 2008/Vista/7 do not use ADM templates, what would happen when you try to mix custom ADM templates and ADMX/ADML files? The answer is very simple!</p>
<p>The ADMX/ADML files will generate the default GPO settings that fall under Administrative Templates. The custom ADM templates that reside in the ADMs folder under the GPOs sysvol location will show up under the Classic Administrative Templates (ADM) folder, which is located under the Administrative Templates nodes in the GPO editor. You can see an example of this in Figure 3. </p>
<p><img src="http://www.windowsnetworking.com/img/upl/image0061265983974233.jpg" width=400 alt="" /><br />
Figure 3: You can clearly see custom ADM templates show up under Classic Administrative Templates (ADM) in the editor</p>
<p>Summary</p>
<p>There has been a change from ADM templates to ADMX/ADML files in Windows Server 2008/Vista/7. This change could have an impact on your custom ADM templates, if you are not aware of the overall big picture of the changes. Keep in mind that ADM templates are no longer used, but are instead replaced by ADMX/ADML files in the creation of the Administrative Templates nodes in the GPO editor, as well as the definition of the Registry entry that will be altered. Custom ADM templates are stored in the GUID folder of the GPO that they are associated with, regardless of the version of the OS that is performing the administration of the GPO. It is this structure and the ability of the newer OSs that provide the cohabitation of the newer files along with the custom ADM templates. Just keep in mind that the custom ADM template settings will show up under the Classic Administrative Templates (ADM) folder. </p>
<p>source:<br />
<a href="http://www.windowsnetworking.com/articles_tutorials/Using-Custom-ADM-Templates-Windows-Server-2008-Vista-7.html"> http://www.windowsnetworking.com/articles_tutorials/Using-Custom-ADM-Templates-Windows-Server-2008-Vista-7.html </a></guid></domainname></p>
<div class="shr-publisher-510"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://techspedia.com/2010/03/31/using-custom-adm-templates-with-windows-server-2008vista7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

