<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>blog.powershell.no &#187; Active Directory management</title>
	<atom:link href="http://blog.powershell.no/category/active-directory-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.powershell.no</link>
	<description>On Windows PowerShell and other admin-related topics</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:44:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.powershell.no' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e22e511529c14fbc92cde5589d6231b4?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>blog.powershell.no &#187; Active Directory management</title>
		<link>http://blog.powershell.no</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.powershell.no/osd.xml" title="blog.powershell.no" />
	<atom:link rel='hub' href='http://blog.powershell.no/?pushpress=hub'/>
		<item>
		<title>Send text messages (SMS) using Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/07/21/send-text-messages-sms-using-windows-powershell/</link>
		<comments>http://blog.powershell.no/2010/07/21/send-text-messages-sms-using-windows-powershell/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 15:01:41 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Microsoft Outlook]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[sms from powershell]]></category>
		<category><![CDATA[powershell send sms]]></category>
		<category><![CDATA[powershell send text message]]></category>

		<guid isPermaLink="false">https://janegilring.wordpress.com/2010/07/21/send-text-messages-sms-using-windows-powershell/</guid>
		<description><![CDATA[In Microsoft Office Outlook there is an add-in called Microsoft Outlook SMS Add-in (MOSA), which provides the ability to send text messages (SMS). MOSA is builtin to Outlook 2010, and are available as a plugin for Outlook 2003 and 2007 here. On the Microsoft Office Online Help you can find guidance on how to set [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=571&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>In Microsoft Office Outlook there is an add-in called Microsoft Outlook SMS Add-in (MOSA), which provides the ability to send text messages (SMS). MOSA is builtin to Outlook 2010, and are available as a plugin for Outlook 2003 and 2007 <a href="http://www.microsoft.com/downloads/details.aspx?familyid=240080b4-986e-4afb-ab21-3af2be63508b&amp;displaylang=en" target="_blank">here</a>.</p>
<p>On the <a href="http://office.microsoft.com/en-gb/outlook-help/send-and-receive-text-messages-sms-HA101823438.aspx" target="_blank">Microsoft Office Online Help</a> you can find guidance on how to set up the service account and sending a text message. To find the necessary settings for your mobile service provider, go <a href="http://messaging.office.microsoft.com/HostingProviders.aspx?src=O14&amp;lc=1033" target="_blank">here</a>.</p>
<p>I looked into the <a href="http://msdn.microsoft.com/en-us/library/ms268893(v=VS.80).aspx" target="_blank">COM-object for Outlook</a>, and it turned out to be rather easy to use this API to send text messages from MOSA.<br />
Based on that I created an <a href="http://technet.microsoft.com/en-us/library/dd315326.aspx" target="_blank">Advanced function</a> in Windows PowerShell v2 called <a href="http://poshcode.org/1999" target="_blank">Send-SMSMessage</a>.</p>
<p>To define the function you can either paste it directly into your session, save it as a ps1 script-file and <a href="http://technet.microsoft.com/en-us/library/ee176949.aspx#ECAA" target="_blank">dot source</a> it, put it into your <a href="http://technet.microsoft.com/en-us/library/ee692764.aspx" target="_blank">profile</a> or into a <a href="http://msdn.microsoft.com/en-us/library/dd901839(VS.85).aspx" target="_blank">module</a>.</p>
<p>When that is accomplished you can find usage information using the consistent Get-Help cmdlet:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb.png?w=638&#038;h=531" border="0" alt="image" width="638" height="531" /></a></p>
<p>Sample usage:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image1.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb1.png?w=987&#038;h=55" border="0" alt="image" width="987" height="55" /></a></p>
<p>The function checks if Outlook are installed, and breaks out with a warning if not:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image2.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb2.png?w=984&#038;h=65" border="0" alt="image" width="984" height="65" /></a></p>
<p>It also checks to see if an account are configured for Text Messaging (SMS):</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image3.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb3.png?w=986&#038;h=64" border="0" alt="image" width="986" height="64" /></a></p>
<p>Any errors related to service availabilty, correct phonenumber format and so on are handled by the SMS Add-in itself. These error messages appear in the Outlook inbox:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image4.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb4.png?w=469&#038;h=216" border="0" alt="image" width="469" height="216" /></a></p>
<p>The function is tested from Outlook 2010 only, but should work from 2003 and 2007 also when MOSA is installed.</p>
<p>Since the function accepts ValueFromPipeline and ValueFromPipelineByPropertyName you can use it in conjunction with e.g. the <a href="http://technet.microsoft.com/en-us/library/ee617195.aspx" target="_blank">Active Directory cmdlets for Windows PowerShell</a>.  A given example of this retrieves all users from Active Directory with a derfined mobilephone number and sends them an SMS with their username:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/07/image5.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/07/image_thumb5.png?w=988&#038;h=77" border="0" alt="image" width="988" height="77" /></a></p>
<p>Another practical usage scenario I can think of is combining the Send-SMSMessage function with user provisioning, sending the new user it`s new username and password.<br />
Feel free to come up with more usage scenarios in the comment field below.</p>
<p><strong>Bonus tips</strong></p>
<ul>
<li>You can also send MMS messages using the Outlook COM-object. To do this, use “olMobileItemMMS” instead of “olMobileItemSMS” in the following line: $NewMessage = $outlook.CreateItem(&#8220;olMobileItemMMS&#8221;). You should also look into the other properties for MMS messages, like the Attachment-property.</li>
<li>If you got more than one account configured for text messaging, you can use the SendUsingAccount-property to define which account to send from.</li>
<li>If you use the Norwegian mobile service provider Telenor, the “Service Provider URL” in the account settings is <a title="https://telenormobil.no/smapi/services/omsv3_service" href="https://telenormobil.no/smapi/services/omsv3_service">https://telenormobil.no/smapi/services/omsv3_service</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/571/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/571/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/571/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=571&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/07/21/send-text-messages-sms-using-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/07/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Backing up Group Policy Objects using Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/06/15/backing-up-group-policy-objects-using-windows-powershell/</link>
		<comments>http://blog.powershell.no/2010/06/15/backing-up-group-policy-objects-using-windows-powershell/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 23:57:22 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">https://janegilring.wordpress.com/2010/06/15/backing-up-group-policy-objects-using-windows-powershell/</guid>
		<description><![CDATA[A best practice in domain environments are backing up the Group Policy Objects regularly. Even though a GPO may be restored by restoring a system state backup from a domain controller to an alternate location, and then copy the contents from the deleted GPO to a new GPO to restore the settings, this may be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=506&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>A best practice in domain environments are backing up the Group Policy Objects regularly. Even though a GPO may be restored by restoring a system state backup from a domain controller to an alternate location, and then copy the contents from the deleted GPO to a new GPO to restore the settings, this may be a hazzle since it`s not pretty straightforward. It also requires you to restart the domain controller affected in Directory Services Restore Mode.<br />
PowerShell MVP Don Jones has written a good article on this topic, available <a href="http://redmondmag.com/articles/2010/05/01/back-up-active-directory-and-gpos.aspx" target="_blank">here</a>.</p>
<p>For those of you who may not want to do GPO restore the hard way, or buy a commercial third party product, I would encourage you to schedule regular GPO backups using the Windows PowerShell Group Policy-module available in Windows Server 2008 R2, as well as RSAT in Windows 7.<br />
To accomplish this, I`ve written a small script which backs up all modified GPO`s in the specified timespan. I would generally recommend to have the script run once a day, thereby setting the timespan-variable to the last 24 hours. The script are called Backup-ModifiedGPOs.ps1, and available from <a href="http://poshcode.org/1914">here</a>.</p>
<p>All Group Policy Objects modified in the specified timespan are backup up to the specified backup path.<br />
Also, an HTML-report are created for each GPO-backup, with the unique backup GUID as part of the filename. This way you can easily see what settings each backup contains.</p>
<p>When restoring a GPO, you must first note the GUID of the backup you want to restore. Then you can restore the GPO by using the Restore-GPO cmdlet in the Group Policy-module. Sample usage:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image3.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb3.png?w=644&#038;h=163" border="0" alt="image" width="644" height="163" /></a></p>
<p>Administrators who feels more comfortable working with the GUI, may use the Group Policy Management Console to do the restore.</p>
<p>The following procedure from the <a href="http://technet.microsoft.com/en-us/library/cc754948(WS.10).aspx" target="_blank">Group Policy Planning and Deployment Guide</a> on Microsoft TechNet describes how to accomplish the restore operation from the GUI:</p>
<p><strong><span style="font-size:xx-small;"><span style="font-family:Calibri;"><span style="font-size:x-small;">To view the list of GPO backups</span> </span></span></strong></p>
<ol>
<li><span style="font-family:Calibri;font-size:xx-small;">In the GPMC console tree, expand the forest or domain that contains the GPOs that you want to back up.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">Right-click <strong>Group Policy Objects</strong>, and the click <strong>Manage Backups</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">In the <strong>Manage Backups</strong> dialog box, enter the path to the location where you stored the GPO backups that you want to view. Alternatively, you can click <strong>Browse</strong>, locate the folder that contains the GPO backups, and then click <strong>OK</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">To specify that only the most recent version of the GPOs be displayed in the <strong>Backed up GPOs</strong> list, select the <strong>Show only the latest version of each GPO</strong> check box. Click <strong>Close</strong>.</span></li>
</ol>
<p><strong><span style="font-family:Calibri;font-size:x-small;">Using the GPMC to restore GPOs</span></strong></p>
<p><span style="font-family:Calibri;font-size:xx-small;">You can also restore GPOs. This operation restores a backed-up GPO to the same domain from which it was backed up. You cannot restore a GPO from a backup into a domain that is different from the GPO’s original domain.</span></p>
<p><strong><span style="font-size:xx-small;"><span style="font-family:Calibri;"><span style="font-size:x-small;">To restore a previous version of an existing GPO</span> </span></span></strong></p>
<ol>
<li><span style="font-family:Calibri;font-size:xx-small;">In the GPMC console tree, expand <strong>Group Policy Objects</strong> in the forest or domain that contains the GPOs that you want to restore.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">Right-click the GPO that you want to restore to a previous version, and then click <strong>Restore from Backup</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">When the <strong>Restore Group Policy Object Wizard</strong> opens, follow the instructions in the wizard, and then click <strong>Finish</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">After the restore operation completes, a summary will state whether the restore succeeded. Click <strong>OK</strong>.</span></li>
</ol>
<p><strong><span style="font-size:xx-small;"><span style="font-family:Calibri;"><span style="font-size:x-small;">To restore a deleted GPO</span> </span></span></p>
<ol>
<li><span style="font-family:Calibri;font-size:xx-small;">In the GPMC console tree, expand the forest or domain that contains the GPO that you want to restore.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">Right-click <strong>Group Policy Objects</strong>, and then click <strong>Manage Backups</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">In the <strong>Manage Backups </strong>dialog box, click <strong>Browse</strong>, and then locate the file that contains your backed-up GPOs.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">In the <strong>Backed up GPOs </strong>list, click the GPO that you want to restore, and then click <strong>Restore</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">When you are prompted to confirm the restore operation, click <strong>OK</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">After the restore operation completes, a summary will state whether the restore succeeded. Click <strong>OK</strong>. Click <strong>Close</strong>.</span></li>
</ol>
<p> </p>
<p><strong>Important:</strong> Since Group Policy links are stored on the Organizational Unit objects in Active Directory, this information are not backup up and also not restore. However, the HTML backup-reports contains this information, so you may manually re-link the GPO to the correct OU(s).</p>
<p>Also note that WMI filters and IPSec policies are not backed up by the backup feature in the Group Policy Management Console. For more information on how to manage these items, see the before mentioned Group Policy Planning and Deployment Guide.</p>
<p></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/506/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=506&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/06/15/backing-up-group-policy-objects-using-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/06/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic Remote Desktop Connection Manager connection list</title>
		<link>http://blog.powershell.no/2010/06/02/dynamic-remote-desktop-connection-manager-connection-list/</link>
		<comments>http://blog.powershell.no/2010/06/02/dynamic-remote-desktop-connection-manager-connection-list/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 21:51:06 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[RSAT]]></category>
		<category><![CDATA[Remote Desktop Services]]></category>
		<category><![CDATA[Remote Management]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">https://janegilring.wordpress.com/2010/06/02/dynamic-remote-desktop-connection-manager-connection-list/</guid>
		<description><![CDATA[  Microsoft recently released a free tool for managing multiple remote desktop connections called “Remote Desktop Connection Manager”. A sample screenshot: There are several nice features, such as “Connect group” which lets you connect to all servers in a group at once: On the “Group Properties” you may set common settings for all connections in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=501&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>Microsoft recently released a free tool for managing multiple remote desktop connections called “<a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=4603c621-6de7-4ccb-9f51-d53dc7e48047" target="_blank">Remote Desktop Connection Manager</a>”.</p>
<p>A sample screenshot:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb.png?w=644&#038;h=192" border="0" alt="image" width="644" height="192" /></a></p>
<p>There are several nice features, such as “Connect group” which lets you connect to all servers in a group at once:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image1.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb1.png?w=244&#038;h=205" border="0" alt="image" width="244" height="205" /></a></p>
<p>On the “Group Properties” you may set common settings for all connections in the group, like logon credentials:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image2.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb2.png?w=501&#038;h=388" border="0" alt="image" width="501" height="388" /></a></p>
<p>Further, there are group properties for RDS Gateway (formerly TS Gateway), display settings, local resources and so on.</p>
<p>There are several applications for remote desktop connections on the market, and some of them got these settings as a per server setting. It`s nice to be able to group servers and configure common settings.</p>
<p><strong><span style="font-size:medium;">Dynamically creating the connection list</span></strong></p>
<p>When you work in larger environments with hundreds, maybe thousands of servers, setting up each connection manually isn`t an option.</p>
<p>Since Remote Desktop Connection Manager stores the config-files in xml-files, it`s rather easy to create dynamic config-files for a domain using Windows PowerShell. I`ve created a script to accomplish this, called New-RDCManFile.ps1, available from <a href="http://poshcode.org/1893">here</a>. It uses Microsoft`s <a href="http://technet.microsoft.com/en-us/library/dd378937(WS.10).aspx" target="_blank">PowerShell-module for Active Directory</a>, which is available in Windows Server 2008 R2 and <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d" target="_blank">RSAT for Windows 7</a>.</p>
<p><span style="text-decoration:underline;">The script does the following:</span><br />
Creates a template xml-file<br />
Inserts the logged on user`s domain name in the file properties<br />
Inserts the logged on user`s domain name in the group properties<br />
Inserts the logged on user`s username in the logoncredentials section<br />
Inserts the logged on user`s domain name in the logoncredentials section<br />
Retrieves all computer objects from Active Directory with the word “server” in the operatingsystem property<br />
Adds each computer object as a server object<br />
Saves the XML-file to %userprofile%\domain-name.rdg</p>
<p>When done you can open the rdg-file in Remote Desktop Connection Manager. I would recommend you to insert your password in the Group Properties to avoid being asked for credentials for each connection.</p>
<p>Feel free to customize the script to your needs, in example by editing the XML-template to edit the Group Properties. Another customization might be creating a group for each server OU for enhanced overview in larger environments.</p>
<p>If you would rather use Quest`s <a href="http://www.quest.com/powershell/activeroles-server.aspx" target="_blank">PowerShell Commands for Active Directory</a> (which works on downlevel operatingsystems like Windows XP and Windows Server 2003), or any other way to retrieve the server names, you may customize this on line 110.</p>
<p>You might also want to schedule the script to run on a regular basis, saving the file to a central location. This way the IT personnel will always have access to the latest version with the most recent servers added.</p>
<p>If you got any further ideas or comments, please let me know in the comments section below.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/501/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=501&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/06/02/dynamic-remote-desktop-connection-manager-connection-list/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/06/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/06/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/06/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Enable and configure Windows PowerShell Remoting using Group Policy</title>
		<link>http://blog.powershell.no/2010/03/04/enable-and-configure-windows-powershell-remoting-using-group-policy/</link>
		<comments>http://blog.powershell.no/2010/03/04/enable-and-configure-windows-powershell-remoting-using-group-policy/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 13:42:09 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2003 R2]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[Windows PowerShell Remoting]]></category>
		<category><![CDATA[WinRM]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/03/04/enable-and-configure-windows-powershell-remoting-using-group-policy/</guid>
		<description><![CDATA[As you may know, Windows PowerShell 2.0 introduced a new remoting feature, allowing for remote management of computers. While this feature can be enabled manually (or scripted) with the PowerShell 2.0 cmdlet Enable-PSRemoting, I would recommend using Group Policy whenever possible. This guide will show you how this can be accomplished for Windows Vista, Windows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=436&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>As you may know, Windows PowerShell 2.0 introduced a new remoting feature, allowing for remote management of computers.</p>
<p>While this feature can be enabled manually (or scripted) with the PowerShell 2.0 cmdlet <a href="http://technet.microsoft.com/en-us/library/dd819498.aspx">Enable-PSRemoting</a>, I would recommend using Group Policy whenever possible. This guide will show you how this can be accomplished for Windows Vista, Windows Server 2008 and above. For Windows XP and Windows Server 2003, running Enable-PSRemoting in a PowerShell startup script would be the best approach.</p>
<p>Windows PowerShell 2.0 and WinRM 2.0 shipped with Windows 7 and Windows Server 2008 R2. To take advantage of Windows PowerShell Remoting, both of these are required on the downlevel operating systems Windows XP, Windows Server 2003, Windows Vista and Windows Server 2008. Both Windows PowerShell 2.0 and WinRM 2.0 are available for download <a href="http://support.microsoft.com/kb/968929">here</a>, as part of the Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0). To deploy this update to downlevel operating systems I would recommend to use WSUS, which are described in detail in <a href="http://trycatch.be/blogs/roggenk/archive/2010/07/26/deploying-powershell-2-0-in-your-environment.aspx">this</a> blog post by Kurt Roggen.</p>
<p><strong>Group Policy Configuration</strong></p>
<p>Open the Group Policy Management Console from a domain-joined Windows 7 or Windows Server 2008 R2 computer.</p>
<p>Create or use an existing Group Policy Object, open it, and navigate to Computer Configuration-&gt;Policies-&gt;Administrative templates-&gt;Windows Components</p>
<p>Here you will find the available Group Policy settings for Windows PowerShell, WinRM and Windows Remote Shell:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb.png?w=244&#038;h=86" border="0" alt="image" width="244" height="86" /></a></p>
<p>To enable PowerShell Remoting, the only setting we need to configure are found under “WinRM Service”, named “Allow automatic configuration of listeners”:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image1.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb1.png?w=467&#038;h=427" border="0" alt="image" width="467" height="427" /></a></p>
<p>Enable this policy, and configure the IPv4 and IPv6 addresses to listen on. To configure WinRM to listen on all addresses, simply use *.</p>
<p>No other settings need to be configured, however, I`ve provided screenshots of the other settings so you can see what`s available:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image2.png"><img style="display:inline;border:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb2.png?w=390&#038;h=122" border="0" alt="image" width="390" height="122" /></a></p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image3.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb3.png?w=543&#038;h=135" border="0" alt="image" width="543" height="135" /></a></p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image4.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb4.png?w=543&#038;h=149" border="0" alt="image" width="543" height="149" /></a></p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image5.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb5.png?w=544&#038;h=66" border="0" alt="image" width="544" height="66" /></a></p>
<p>There is one more thing to configure though; the Windows Firewall.</p>
<p>You need to create a new Inbound Rule under Computer Configuration-&gt;Policies-&gt;Windows Settings-&gt;Windows Firewall with Advanced Security-&gt;Windows Firewall with Advanced Security-&gt;Inbound Rules:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image6.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb6.png?w=242&#038;h=244" border="0" alt="image" width="242" height="244" /></a></p>
<p>The WinRM port numbers are predefined as “Windows Remote Management”:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image7.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb7.png?w=521&#038;h=417" border="0" alt="image" width="521" height="417" /></a></p>
<p>With WinRM 2.0, the default http listener port <a href="http://blogs.msdn.com/wmi/archive/2009/07/22/new-default-ports-for-ws-management-and-powershell-remoting.aspx">changed</a> from TCP 80 to TCP 5985. The old port number are a part of the predefined scope for compatibility reasons, and may be excluded if you don`t have any legacy WinRM 1.1 listeners.</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image8.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb8.png?w=519&#038;h=415" border="0" alt="image" width="519" height="415" /></a></p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image9.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb9.png?w=522&#038;h=419" border="0" alt="image" width="522" height="419" /></a></p>
<p>When the rule are created, you may choose to make further restrictions, i.e. to only allow the IP addresses of your management subnet, or perhaps some specific user groups:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image10.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb10.png?w=320&#038;h=420" border="0" alt="image" width="320" height="420" /></a></p>
<p>Now that the firewall rule are configured, we are done with the minimal configuration to enable PowerShell Remoting using Group Policy.</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image11.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb11.png?w=644&#038;h=31" border="0" alt="image" width="644" height="31" /></a></p>
<p>On a computer affected by the newly configured Group Policy Object, run gpupdate and see if the settings were applied:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image12.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb12.png?w=591&#038;h=347" border="0" alt="image" width="591" height="347" /></a></p>
<p>As you can see, the listener indicates “Source*”GPO”, meaning it was configured from a Group Policy Object.</p>
<p>When the GPO have been applied to all the affected computers you are ready to test the configuration.</p>
<p>Here is a sample usage of PowerShell Remoting combined with the Active Directory-module for Windows PowerShell:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image13.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb13.png?w=644&#038;h=93" border="0" alt="image" width="644" height="93" /></a></p>
<p>The example are saving all computer objects in the Domain Controller Organization Unit in a variable. Then, a foreach-loop are invoking a scriptblock, returning the status of the Netlogon-service on all of the Domain Controllers.</p>
<p><strong>Summary</strong></p>
<p>We`ve now had a look on how to enable and configure PowerShell Remoting using Group Policy.<br />
There are an incredible number of opportunities opening up with the new Remoting feature in Windows PowerShell 2.0. For a complete walkthrough on how you can use this new feature, I would like to recommend the excellent <a href="http://powershell.com/cs/media/p/4908.aspx">Administrator&#8217;s Guide to Windows PowerShell Remoting</a> written by Dr. Tobias Weltner, Aleksandar Nikolic and Richard Giles.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/436/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=436&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/03/04/enable-and-configure-windows-powershell-remoting-using-group-policy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Articles published on ITPro.no</title>
		<link>http://blog.powershell.no/2010/02/12/articles-published-on-itpro-no/</link>
		<comments>http://blog.powershell.no/2010/02/12/articles-published-on-itpro-no/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 22:47:18 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Exchange Server 2010]]></category>
		<category><![CDATA[Remote Desktop Services]]></category>
		<category><![CDATA[Terminal Services]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/02/12/articles-published-on-itpro-no/</guid>
		<description><![CDATA[Recently I`ve published a few articles on the Norwegian website ITPro.no which might be of interest for the Norwegian readers: Administrasjon av Active Directory med Windows PowerShell Hva er nytt i Microsoft Exchange 2010 Konfigurer Single Sign-On mot Remote Desktop Services<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=391&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I`ve published a few articles on the Norwegian website ITPro.no which might be of interest for the Norwegian readers:</p>
<p><a href="http://itpro.no/art/14923.html"><font color="#000000" size="1">Administrasjon av Active Directory med Windows PowerShell</font></a></p>
<p><a href="http://itpro.no/art/14929.html"><font color="#000000" size="1">Hva er nytt i Microsoft Exchange 2010</font></a></p>
<p><a href="http://itpro.no/art/14915.html"><font color="#000000" size="1">Konfigurer Single Sign-On mot Remote Desktop Services</font></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/391/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=391&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/02/12/articles-published-on-itpro-no/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>
	</item>
		<item>
		<title>Validate SPN mappings using Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/01/28/validate-spn-mappings-using-windows-powershell/</link>
		<comments>http://blog.powershell.no/2010/01/28/validate-spn-mappings-using-windows-powershell/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 11:28:34 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[duplicate SPN]]></category>
		<category><![CDATA[Service Principal Name]]></category>
		<category><![CDATA[SPN mappings]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/01/28/validate-spn-mappings-using-windows-powershell/</guid>
		<description><![CDATA[&#160; What is a SPN mapping? A Service Principal Name (SPN) mapping allows a service running on an Active Directory computer to be associated with a domain account that are responsible for the management of the service. This allows the use of mutual Kerberos authentication, and an account defined in a SPN mapping are able [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=390&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p><strong><font size="2">What is a SPN mapping?</font></strong></p>
<p>A <a href="http://technet.microsoft.com/en-us/library/cc961723.aspx">Service Principal Name (SPN)</a> mapping allows a service running on an Active Directory computer to be associated with a domain account that are responsible for the management of the service. This allows the use of mutual Kerberos authentication, and an account defined in a SPN mapping are able to request Kerberos tickets on the requesting user`s behalf. Examples of services that uses Kerberos and SPN mappings include SQL Servers, web servers, LDAP servers, Exchange servers and so on.     </p>
<p><strong><font size="2">Validation of SPN mappings</font></strong></p>
<p>A SPN mapping must be unique within an Active Directory domain, and duplicate mappings will result in problems for the involved services.</p>
<p>While the command line tool <a href="http://technet.microsoft.com/en-us/library/cc731241(WS.10).aspx">setspn.exe</a>, which are used for managing SPN mappings also can be used for queries, I wanted to use Windows PowerShell to accomplish this. I`ve put together a script module with two functions:     <br />Resolve-SPN – Resolves the provided SPN mapping     <br />Resolve-AllDuplicateDomainSPNs – Resolves all SPN mappings in the domain and reports duplicate mappings</p>
<p>The script module are available on the TechNet Script Center Gallery, click <a href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/a3cfe63f-7369-403a-afed-5ce03a3bbb21">here</a> for the direct link.</p>
<p>Save the script module as a psm1-file in the following directory: %userprofile%\Documents\WindowsPowerShell\Modules\SPNValidation    <br />&#160; <br />You need to manually create the 3 subfolders under %userprofile%\Documents if they doesn`t exist. </p>
<p>When done, start Windows PowerShell and type the following command:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image15.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb15.png?w=395&#038;h=207" width="395" height="207" /></a> </p>
<p>You should now see the SPNValidation module.    <br />Import the module with the Import-Module cmdlet:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image16.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb16.png?w=456&#038;h=114" width="456" height="114" /></a> </p>
<p>Resolve-AllDuplicateDomainSPNs can be executed without any parameters:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image17.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb17.png?w=578&#038;h=150" width="578" height="150" /></a> </p>
<p>Resolve-SPN has one mandatory parameter: –SPN    <br />Example usage:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image18.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb18.png?w=556&#038;h=201" width="556" height="201" /></a> </p>
</p>
</p>
<p>Note that the PowerShell Active Directory module for Windows   <br />Server 2008 R2 are required, because the Get-ADObject cmdlet are used in one of the script module`s functions.     <br />The PowerShell Active Directory module are also available in <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7D2F6AD7-656B-4313-A005-4E344E43997D&amp;displaylang=en">Remote Server Administration Tools (RSAT) for Windows 7</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/390/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=390&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/01/28/validate-spn-mappings-using-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb15.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb16.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb17.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb18.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Automate Group Policy Preferences printer-management using Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/01/18/automate-group-policy-preferences-printer-management-using-windows-powershell-2/</link>
		<comments>http://blog.powershell.no/2010/01/18/automate-group-policy-preferences-printer-management-using-windows-powershell-2/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 13:44:32 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Print management]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/01/18/automate-group-policy-preferences-printer-management-using-windows-powershell-2/</guid>
		<description><![CDATA[I`ve written a couple of blog posts earlier on Group Policy Preferences and printer deployment using Group Policy. Using Group Policy Preferences is a very flexible way to deploy printer connections. This is also very manageable in smaller environments. What if you got hundreds, or even thousands of printer connections you need to deploy? Do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=378&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I`ve written a couple of blog posts earlier on <a href="http://blog.powershell.no/2009/03/20/group-policy-preferences">Group Policy Preferences</a> and <a href="http://blog.powershell.no/2009/11/08/deploying-printers-using-group-policy/">printer deployment using Group Policy</a>.</p>
<p>Using Group Policy Preferences is a very flexible way to deploy printer connections. This is also very manageable in smaller environments. What if you got hundreds, or even thousands of printer connections you need to deploy? Do you want to sit down and make several thousands of mouse clicks to accomplish the task? There are better alternatives!</p>
<p>Based on SDM Software`s <a href="http://www.sdmsoftware.com/group_policy_scripting.php">Group Policy Automation Engine</a>, I`ve created a script module to handle this. The script module are available from <a href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/df4eae77-c8a9-40f9-b2eb-a7ed9ef7cd2a">this link</a>.</p>
<p>Save the script module as a psm1-file in the following directory: %userprofile%\Documents\WindowsPowerShell\Modules\GPPreferencesPrinters    <br />You need to manually create the 3 subfolders under %userprofile%\Documents if they doesn`t exist.</p>
<p>When done, start Windows PowerShell and type the following command:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image9.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb9.png?w=244&#038;h=95" width="244" height="95" /></a> </p>
<p>You should now see the GPPreferencesPrinters module.    <br />Import the module with the Import-Module cmdlet:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image10.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb10.png?w=644&#038;h=75" width="644" height="75" /></a> </p>
<p>As you can see there are two functions in addition to SDM Software`s cmdlet: Add-GPPreferencesPrinter and Get-GPPreferencesPrinter.</p>
<p>Example 1:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image11.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb11.png?w=644&#038;h=93" width="644" height="93" /></a> </p>
<p>Example 2:</p>
<p>If you got the printers listed in an Excel spreadsheet, save the document in csv-format:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image12.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb12.png?w=244&#038;h=58" width="244" height="58" /></a> </p>
<p>The csv-file may be used like this to import the printer connections:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image13.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb13.png?w=644&#038;h=38" width="644" height="38" /></a> </p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image14.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb14.png?w=244&#038;h=107" width="244" height="107" /></a> </p>
<p>Additional functions and parameters will later be added to the script module, i.e. Remove-GPPreferencesPrinter and Item-Level Targeting. Note that example usage for Item-Level Targeting are provided in the Group Policy Automation Engine User Manual.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/378/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=378&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/01/18/automate-group-policy-preferences-printer-management-using-windows-powershell-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb14.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Active Directory group membership modifications report</title>
		<link>http://blog.powershell.no/2009/10/11/active-directory-group-membership-modifications-report/</link>
		<comments>http://blog.powershell.no/2009/10/11/active-directory-group-membership-modifications-report/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 20:16:06 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Auditing]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Active Directory group membership auditing]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2009/10/11/active-directory-group-membership-modifications-report/</guid>
		<description><![CDATA[Based on customer needs I`ve created a Windows PowerShell script to report Active Directory group membership modifications. The script are uploaded to PoshCode and available from here. In Windows 2000 Server and Windows Server 2003, the following security event IDs were valid for group membership changes: Scope Member added Member removed Local 636 637 Global [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=272&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Based on customer needs I`ve created a Windows PowerShell script to report Active Directory group membership modifications. The script are uploaded to <a href="http://poshcode.org">PoshCode</a> and available from <a href="http://poshcode.org/1810">here</a>.</p>
<p>In Windows 2000 Server and Windows Server 2003, the following security event IDs were valid for group membership changes:</p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="133" valign="top">Scope</td>
<td width="133" valign="top">Member added</td>
<td width="133" valign="top">Member removed</td>
</tr>
<tr>
<td width="133" valign="top">Local</td>
<td width="133" valign="top">636</td>
<td width="133" valign="top">637</td>
</tr>
<tr>
<td width="133" valign="top">Global</td>
<td width="133" valign="top">632</td>
<td width="133" valign="top">633</td>
</tr>
<tr>
<td width="133" valign="top">Universal</td>
<td width="133" valign="top">660</td>
<td width="133" valign="top">661</td>
</tr>
</tbody>
</table>
<p>In Windows Server 2008 and Windows Server 2008 R2 the security event IDs changed:</p>
<table border="0" cellspacing="0" cellpadding="2" width="401">
<tbody>
<tr>
<td width="133" valign="top">Scope</td>
<td width="133" valign="top">Member added</td>
<td width="133" valign="top">Member removed</td>
</tr>
<tr>
<td width="133" valign="top">Local</td>
<td width="133" valign="top">4732</td>
<td width="133" valign="top">4733</td>
</tr>
<tr>
<td width="133" valign="top">Global</td>
<td width="133" valign="top">4728</td>
<td width="133" valign="top">4729</td>
</tr>
<tr>
<td width="133" valign="top">Universal</td>
<td width="133" valign="top">4756</td>
<td width="133" valign="top">4757</td>
</tr>
</tbody>
</table>
<p><a href="http://support.microsoft.com/kb/301677/EN-US/">Source for 2000/2003 event IDs.</a><br />
<a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;947226">Source for 2008/2008 R2 event IDs</a>.</p>
<p>Group membership auditing are enabled by default from Windows 2000 Server to Windows Server 2008 R2, so there are no need change any auditing settings to accomplish this.<br />
I`ve added event ID`s for both 2000/2003 and 2008/2008 R2 to the script to cover all event ID`s currently available.<br />
Group membership changes are logged to the Security eventlog on the domain controller the modification was run against. Because of this the script are set up to get all domain controllers in the current domain and loop through the security eventlog on each of them, searching for the relevant event ID`s described in the table above.</p>
<p>The script are based on Alan Renouf`s <a href="http://www.virtu-al.net/2009/08/18/powercli-daily-report-v2/">Daily Report script for PowerCLI</a>.</p>
<p>The “isWithin”-function are taken from <a href="http://blogs.msdn.com/powershell/archive/2006/09/06/DateTime-Utility-Functions.aspx">Jeffrey Snover`s blog-post regarding DateTime Utility Functions</a>.</p>
<p>Preview of the HTML-report the script will generate:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/10/image.png"><img style="display:inline;border:0;" title="image" src="http://janegilring.files.wordpress.com/2009/10/image_thumb.png?w=644&#038;h=268" border="0" alt="image" width="644" height="268" /></a></p>
<p>A tip would be to run the script as a scheduled task e.g. once a day, and store the file in a central location.</p>
<p>For those of you interested in Active Directory auditing I would recommend you to have a look at the <a href="http://technet.microsoft.com/en-us/library/cc731607(WS.10).aspx">AD DS Auditing Step-by-Step Guide</a> on Microsoft TechNet.<br />
Personally I think the new &#8220;directory service changes&#8221; category are very useful, which allows us to see both the old and new values on modified Active Directory user objects.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/272/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=272&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2009/10/11/active-directory-group-membership-modifications-report/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/10/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Generate random passwords for Active Directory users v2</title>
		<link>http://blog.powershell.no/2009/09/29/generate-random-passwords-for-active-directory-users-v2/</link>
		<comments>http://blog.powershell.no/2009/09/29/generate-random-passwords-for-active-directory-users-v2/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 21:23:42 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Active Directory reset passwords]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2009/09/29/generate-random-passwords-for-active-directory-users-v2/</guid>
		<description><![CDATA[A litte while ago I posted a script to generate random passwords for each user in a specified OU in an Active Directory environment. Now I`ve just posted another version of this script on PoshCode. This script are intended for another scenario: Power users with delegated permissions to reset password for specified Organizational Units. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=269&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>A litte while ago I <a href="http://janegilring.wordpress.com/2009/08/22/generate-random-passwords-for-active-directory-users/">posted</a> a script to generate random passwords for each user in a specified OU in an Active Directory environment.</p>
<p>Now I`ve <a href="http://poshcode.org/1351">just posted</a> another version of this script on <a href="http://poshcode.org">PoshCode</a>.</p>
<p>This script are intended for another scenario:    <br />Power users with delegated permissions to reset password for specified Organizational Units. The power users get this script available as a published application in Remote Desktop Services.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/269/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/269/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=269&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2009/09/29/generate-random-passwords-for-active-directory-users-v2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>
	</item>
		<item>
		<title>Replmon.exe not included in Windows Server 2008/2008 R2</title>
		<link>http://blog.powershell.no/2009/09/18/replmon-exe-not-included-in-windows-server-20082008-r2/</link>
		<comments>http://blog.powershell.no/2009/09/18/replmon-exe-not-included-in-windows-server-20082008-r2/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 19:18:47 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[repadmin]]></category>
		<category><![CDATA[replmon]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2009/09/18/replmon-exe-not-included-in-windows-server-20082008-r2/</guid>
		<description><![CDATA[A lot of administrators are used to check their Active Directory replication status using replmon.exe which is a part of the Windows Server 2003 Support tools. Today I stumbled across the need to use replmon.exe on a domain controller running Windows Server 2008, and was unable to find it. It turns out that that this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=243&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>A lot of administrators are used to check their Active Directory replication status using replmon.exe which is a part of the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=96a35011-fd83-419d-939b-9a772ea2df90&amp;displaylang=en">Windows Server 2003 Support tools</a>.     <br />Today I stumbled across the need to use replmon.exe on a domain controller running Windows Server 2008, and was unable to find it.</p>
<p>It turns out that that this utility is not included in Windows Server 2008/2008 R2.</p>
<p>According to a <a href="http://blogs.technet.com/askds/archive/2008/07/15/five-common-causes-of-waiting-for-the-dfs-replication-service-to-retrieve-replication-settings-from-active-directory.aspx#3089665">comment</a> from a team member from the Microsoft Directory Services Team, this is the explanation:</p>
<p><em>“Unfortunately, replmon did not survive the transition to Win2008. It was actually developed by MS support, not the product group (along with many other support tools/resource kit tools), and without an actual owner to service the tool years later, it was a casualty. I don’t see why it wouldn’t work on 2008 though…”</em></p>
<p>I wouldn`t recommend using unsupported tools on Windows Server 2008/2008 R2, so the advice would be to either use repadmin.exe on 2008/2008 R2, or to use replmon.exe from a Windows Server 2003 server.</p>
<p>You can find the command reference for repadmin.exe in Windows Server 2008/2008 R2 <a href="http://technet.microsoft.com/en-us/library/cc770963(WS.10).aspx">here</a>.</p>
<p>A few examples:</p>
<p><strong>repadmin.exe /showrepl</strong> shows the replication-status for the domain controller the tool are being run from.</p>
<p><strong>repadmin.exe /showrepl servername</strong> shows the replication-status for the domain controller with the provided servername,</p>
<p><strong>repadmin.exe /queue</strong> shows the replication-queue for the domain controller the tool are being run from.</p>
<p><strong>repadmin.exe /queue servername</strong> shows the replication-queue for the domain controller with the provided servername,</p>
<p><strong>repadmin.exe /replsummary</strong> shows a brief summary of the replication status.</p>
<p>I also checked if there are any PowerShell cmdlets for checking replication status in Windows Server 2008 R2, but it`s not. Hopefully this will be implemented some time in the future.</p>
<p>PS: I did test installing the Windows Server 2003 Support tools on a Windows Server 2008 domain controller in a lab environment, and it does work.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/243/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=243&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2009/09/18/replmon-exe-not-included-in-windows-server-20082008-r2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>
	</item>
	</channel>
</rss>