<?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>Jonathan Medd&#039;s Blog &#187; active directory</title>
	<atom:link href="http://www.jonathanmedd.net/category/active-directory/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jonathanmedd.net</link>
	<description>Scripting. Powershell, VMware, Windows, Active Directory &#38; Exchange. All that kind of stuff.....</description>
	<lastBuildDate>Wed, 21 Jul 2010 12:41:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Active Directory: How do you solve a problem like Maria? Or John Smith?</title>
		<link>http://www.jonathanmedd.net/2010/01/active-directory-how-do-you-solve-a-problem-like-maria-or-john-smith.html</link>
		<comments>http://www.jonathanmedd.net/2010/01/active-directory-how-do-you-solve-a-problem-like-maria-or-john-smith.html#comments</comments>
		<pubDate>Fri, 22 Jan 2010 16:27:52 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=678</guid>
		<description><![CDATA[The larger your organisation gets so do the number of users within your Active Directory and consequently the chances of employing people with the same name. Unless you have good naming policies from the start you may well end up with an untidy directory and if you are using Exchange an address book where it [...]]]></description>
			<content:encoded><![CDATA[<p>The larger your organisation gets so do the number of users within your Active Directory and consequently the chances of employing people with the same name. Unless you have good naming policies from the start you may well end up with an untidy directory and if you are using Exchange an address book where it is hard to distinguish between people with the same Display Name.</p>
<p>The below script will generate you a report listing all users whose Display Name matches that of somebody else and for instance what a new Display Name would look like if you added their department field in brackets after their name &#8211; of course you could use another field entirely to distinguish them.</p>
<p>Note: that it is using the <a href="http://www.google.co.uk/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;ved=0CAgQFjAA&amp;url=http%3A%2F%2Fwww.quest.com%2Fpowershell%2Factiveroles-server.aspx&amp;rct=j&amp;q=quest+ad+cmdlets&amp;ei=-M5ZS9rOOZ360wSD7vX5BA&amp;usg=AFQjCNENyGS9VHCLzrWxMYEfCBU_116KNg" target="_blank">Quest AD cmdlets</a>.</p>
<pre><span style="color: #5F9EA0; font-weight: bold;">Add-PSSnapin</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-Name</span><span style="color: #000000;"> </span><span style="color: #800000;">Quest.ActiveRoles.ADManagement</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-ErrorAction</span><span style="color: #000000;"> </span><span style="color: #800000;">SilentlyContinue</span><span style="color: #000000;">

</span><span style="color: #800080;">$users</span><span style="color: #000000;"> </span><span style="color: #FF0000;">=</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-weight: bold;">Get-QADUser</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-DontUseDefaultIncludedProperties</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-SizeLimit</span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-LdapFilter</span><span style="color: #000000;"> </span><span style="color: #800000;">'</span><span style="color: #800000;">(mail=*)</span><span style="color: #800000;">'</span><span style="color: #000000;"> | </span><span style="color: #5F9EA0; font-weight: bold;">Group-Object</span><span style="color: #000000;"> </span><span style="color: #800000;">displayname</span><span style="color: #000000;"> | </span><span style="color: #5F9EA0; font-weight: bold;">Where-Object</span><span style="color: #000000;"> {</span><span style="color: #800080;">$_</span><span style="color: #000000;">.count </span><span style="color: #FF0000;">-gt</span><span style="color: #000000;"> </span><span style="color: #000000;">1</span><span style="color: #000000;">}
</span><span style="color: #800080;">$myCol</span><span style="color: #000000;"> </span><span style="color: #FF0000;">=</span><span style="color: #000000;"> @()

</span><span style="color: #0000FF;">foreach</span><span style="color: #000000;"> (</span><span style="color: #800080;">$user</span><span style="color: #000000;"> </span><span style="color: #0000FF;">in</span><span style="color: #000000;"> </span><span style="color: #800080;">$users</span><span style="color: #000000;">){

    </span><span style="color: #0000FF;">foreach</span><span style="color: #000000;"> (</span><span style="color: #800080;">$duplicateuser</span><span style="color: #000000;"> </span><span style="color: #0000FF;">in</span><span style="color: #000000;"> </span><span style="color: #800080;">$user</span><span style="color: #000000;">.group){

    </span><span style="color: #800080;">$NewDisplayName</span><span style="color: #000000;"> </span><span style="color: #FF0000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">$duplicateuser</span><span style="color: #000000;">.DisplayName </span><span style="color: #FF0000;">+</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;"> (</span><span style="color: #800000;">"</span><span style="color: #000000;"> </span><span style="color: #FF0000;">+</span><span style="color: #000000;"> </span><span style="color: #800080;">$duplicateuser</span><span style="color: #000000;">.Department </span><span style="color: #FF0000;">+</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">)</span><span style="color: #800000;">"</span><span style="color: #000000;">

    </span><span style="color: #800080;">$MYInfo</span><span style="color: #000000;"> </span><span style="color: #FF0000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">“”</span><span style="color: #000000;"> | </span><span style="color: #5F9EA0; font-weight: bold;">Select-Object</span><span style="color: #000000;"> UserID,CurrentDisplayName,newDisplayName,Department
    </span><span style="color: #800080;">$MYInfo</span><span style="color: #000000;">.UserID </span><span style="color: #FF0000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">$duplicateuser</span><span style="color: #000000;">.Name
    </span><span style="color: #800080;">$MYInfo</span><span style="color: #000000;">.CurrentDisplayName </span><span style="color: #FF0000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">$duplicateuser</span><span style="color: #000000;">.DisplayName
    </span><span style="color: #800080;">$MYInfo</span><span style="color: #000000;">.NewDisplayName </span><span style="color: #FF0000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">$NewDisplayName</span><span style="color: #000000;">
    </span><span style="color: #800080;">$MYInfo</span><span style="color: #000000;">.Department </span><span style="color: #FF0000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">$duplicateuser</span><span style="color: #000000;">.Department
    </span><span style="color: #800080;">$myCol</span><span style="color: #000000;"> </span><span style="color: #FF0000;">+=</span><span style="color: #000000;"> </span><span style="color: #800080;">$MYInfo</span><span style="color: #000000;">
   }
}

</span><span style="color: #800080;">$myCol</span><span style="color: #5F9EA0; font-weight: bold;"> | Export-Csv</span><span style="color: #000000;"> </span><span style="color: #800000;">C:\Scripts\Report.csv</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-NoTypeInformation</span></pre>
<p>After reviewing the report and deciding to fix everyone on the list you could do it with the very similar code below:</p>
<pre><span style="color: #5F9EA0; font-weight: bold;">Add-PSSnapin</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-Name</span><span style="color: #000000;"> </span><span style="color: #800000;">Quest.ActiveRoles.ADManagement</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-ErrorAction</span><span style="color: #000000;"> </span><span style="color: #800000;">SilentlyContinue</span><span style="color: #000000;">

</span><span style="color: #800080;">$users</span><span style="color: #000000;"> </span><span style="color: #FF0000;">=</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-weight: bold;">Get-QADUser</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-DontUseDefaultIncludedProperties</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-SizeLimit</span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-LdapFilter</span><span style="color: #000000;"> </span><span style="color: #800000;">'</span><span style="color: #800000;">(mail=*)</span><span style="color: #800000;">'</span><span style="color: #000000;"> | </span><span style="color: #5F9EA0; font-weight: bold;">Group-Object</span><span style="color: #000000;"> </span><span style="color: #800000;">displayname</span><span style="color: #000000;"> | </span><span style="color: #5F9EA0; font-weight: bold;">Where-Object</span><span style="color: #000000;"> {</span><span style="color: #800080;">$_</span><span style="color: #000000;">.count </span><span style="color: #FF0000;">-gt</span><span style="color: #000000;"> </span><span style="color: #000000;">1</span><span style="color: #000000;">}</span><span style="color: #000000;">

</span><span style="color: #0000FF;">foreach</span><span style="color: #000000;"> (</span><span style="color: #800080;">$user</span><span style="color: #000000;"> </span><span style="color: #0000FF;">in</span><span style="color: #000000;"> </span><span style="color: #800080;">$users</span><span style="color: #000000;">){

    </span><span style="color: #0000FF;">foreach</span><span style="color: #000000;"> (</span><span style="color: #800080;">$duplicateuser</span><span style="color: #000000;"> </span><span style="color: #0000FF;">in</span><span style="color: #000000;"> </span><span style="color: #800080;">$user</span><span style="color: #000000;">.group){

    </span><span style="color: #800080;">$NewDisplayName</span><span style="color: #000000;"> </span><span style="color: #FF0000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">$duplicateuser</span><span style="color: #000000;">.DisplayName </span><span style="color: #FF0000;">+</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;"> (</span><span style="color: #800000;">"</span><span style="color: #000000;"> </span><span style="color: #FF0000;">+</span><span style="color: #000000;"> </span><span style="color: #800080;">$duplicateuser</span><span style="color: #000000;">.Department </span><span style="color: #FF0000;">+</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">)</span><span style="color: #800000;">"</span><span style="color: #000000;">
    </span><span style="color: #5F9EA0; font-weight: bold;">Set-QADUser</span><span style="color: #000000;"> </span><span style="color: #800080;">$duplicateuser</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-DisplayName</span><span style="color: #000000;"> </span><span style="color: #800080;">$NewDisplayName</span><span style="color: #000000;">

   }
}</span></pre>
<p>Of course you might be in a scenario where some people already have brackets after their name and you wish to create a report of those. The below one liner will give you those results.</p>
<pre><span style="color: #5F9EA0; font-weight: bold;">Get-QADUser</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-ldapfilter</span><span style="color: #000000;"> </span><span style="color: #800000;">'</span><span style="color: #800000;">(&amp;(displayname=*(*)*)(mail=*))</span><span style="color: #800000;">'</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-DontUseDefaultIncludedProperties</span><span style="color: #000000;"> | </span><span style="color: #5F9EA0; font-weight: bold;">Select-Object</span><span style="color: #000000;"> name,displayname,department | </span><span style="color: #5F9EA0; font-weight: bold;">Export-Csv</span><span style="color: #000000;"> </span><span style="color: #800000;">C:\Scripts\Report.csv</span><span style="color: #000000;"> </span><span style="color: #5F9EA0; font-style: italic;">-NoTypeInformation</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2010/01/active-directory-how-do-you-solve-a-problem-like-maria-or-john-smith.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>UK PowerShell User Group Events in Jan and Feb 2010</title>
		<link>http://www.jonathanmedd.net/2010/01/uk-powershell-user-group-events-in-jan-and-feb-2010.html</link>
		<comments>http://www.jonathanmedd.net/2010/01/uk-powershell-user-group-events-in-jan-and-feb-2010.html#comments</comments>
		<pubDate>Tue, 19 Jan 2010 12:53:56 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[user group]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=631</guid>
		<description><![CDATA[The first two sessions of the UK PowerShell User Group for 2010 will be online sessions.
The first event will take place on Tuesday 26th Jan 2010 7.30pm GMT. We will be looking at the Windows 2008 R2 cmdlets and provider for Active Directory.
Sign up details are available on Richard Siddaway&#8217;s blog.
The second event will take [...]]]></description>
			<content:encoded><![CDATA[<p>The first two sessions of the UK PowerShell User Group for 2010 will be online sessions.</p>
<p>The first event will take place on <strong>Tuesday 26th Jan 2010 7.30pm GMT</strong>. We will be looking at the Windows 2008 R2 cmdlets and provider for Active Directory.</p>
<p><a href="http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2718.entry" target="_blank">Sign up details</a> are available on Richard Siddaway&#8217;s blog.</p>
<p>The second event will take place on <strong>Tuesday 9th Feb 2010 7.30pm GMT</strong>. We will be looking at WMI and WQL.</p>
<p><a href="http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2724.entry">Details again</a> on Richard Siddaway&#8217;s blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2010/01/uk-powershell-user-group-events-in-jan-and-feb-2010.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;cd AD:&#8221; = wow!</title>
		<link>http://www.jonathanmedd.net/2009/11/cd-ad-wow.html</link>
		<comments>http://www.jonathanmedd.net/2009/11/cd-ad-wow.html#comments</comments>
		<pubDate>Fri, 20 Nov 2009 12:50:16 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=288</guid>
		<description><![CDATA[So I had a new article published over at Simple-Talk, Active Directory Management with PowerShell in Windows Server 2008 R2, looking at how you can use the new AD cmdlets and provider to manage Active Directory.
Mr Anonymous (it wasn&#8217;t me) has already posted a very nice comment which sums up part of the new management [...]]]></description>
			<content:encoded><![CDATA[<p>So I had a new article published over at Simple-Talk, <a href="http://www.simple-talk.com/sysadmin/exchange/active-directory-management-with-powershell-in-windows-server-2008-r2/" target="_blank">Active Directory Management with PowerShell in Windows Server 2008 R2</a>, looking at how you can use the new AD cmdlets and provider to manage Active Directory.</p>
<p>Mr Anonymous (it wasn&#8217;t me) has already posted a very nice comment which sums up part of the new management experience;</p>
<p>&#8220;cd AD:&#8221; = wow!</p>
<p>(OK I know you could do this already with the <a href="http://pscx.codeplex.com/" target="_blank">PowerShell community extensions</a>, so it might not be wow for everybody)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2009/11/cd-ad-wow.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Active Directory PowerShell Quick Reference Guide</title>
		<link>http://www.jonathanmedd.net/2009/10/active-directory-powershell-quick-reference-guide.html</link>
		<comments>http://www.jonathanmedd.net/2009/10/active-directory-powershell-quick-reference-guide.html#comments</comments>
		<pubDate>Wed, 07 Oct 2009 13:15:33 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=189</guid>
		<description><![CDATA[I regularly recommend and often refer to this document my good friend Alan Renouf put together Quick Reference Guide for PowerCLI. It is really handy guide to pin up by your desk when you need to remind yourself of a cmdlet and maybe one of the most common usages for it.
I&#8217;ve been spending a lot [...]]]></description>
			<content:encoded><![CDATA[<p>I regularly recommend and often refer to this document my good friend Alan Renouf put together <a href="http://www.virtu-al.net/2009/02/23/vi-toolkit-quick-reference-guide/" target="_blank">Quick Reference Guide for PowerCLI</a>. It is really handy guide to pin up by your desk when you need to remind yourself of a cmdlet and maybe one of the most common usages for it.</p>
<p>I&#8217;ve been spending a lot of time recently checking out the PowerShell cmdlets for Active Directory in Windows Server 2008 R2 and they have also <a href="http://blogs.msdn.com/adpowershell/archive/2009/09/18/active-directory-management-gateway-service-released-to-web-manage-your-windows-2003-2008-dcs-using-ad-powershell.aspx" target="_blank">recently been made available for downlevel versions of Windows Server</a>. I figured it would be handy to have a similar type Quick Reference Guide for these Active Directory cmdlets so I put  the <a href="http://www.jonathanmedd.net/wp-content/uploads/2009/10/ADPowerShell_QuickReference.pdf" target="_blank">AD PowerShell Quick Reference Guide</a> together.</p>
<p>Hope you find it useful.</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-193" title="ADQuickRef" src="http://www.jonathanmedd.net/wp-content/uploads/2009/10/ADQuickRef2-300x182.PNG" alt="ADQuickRef" width="300" height="182" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2009/10/active-directory-powershell-quick-reference-guide.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>New Simple-Talk.com Article: The Active Directory Recycle Bin in Windows Server 2008 R2</title>
		<link>http://www.jonathanmedd.net/2009/09/new-simple-talk-com-article-the-active-directory-recycle-bin-in-windows-server-2008-r2.html</link>
		<comments>http://www.jonathanmedd.net/2009/09/new-simple-talk-com-article-the-active-directory-recycle-bin-in-windows-server-2008-r2.html#comments</comments>
		<pubDate>Wed, 23 Sep 2009 21:10:24 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=186</guid>
		<description><![CDATA[Back in March this year I saw a presentation by James O&#8217;Neill and Richard Siddaway about some of the new PowerShell features in Windows Server 2008 R2, in particular Active Directory. I was fascinated by the new &#8216;Recycle Bin&#8217; feature, which is enabled via PowerShell, and could instantly see that this would be a great [...]]]></description>
			<content:encoded><![CDATA[<p>Back in March this year I saw a presentation by <a href="http://blogs.technet.com/jamesone" target="_blank">James O&#8217;Neill</a> and <a href="http://richardsiddaway.spaces.live.com/" target="_blank">Richard Siddaway</a> about some of the new PowerShell features in Windows Server 2008 R2, in particular Active Directory. I was fascinated by the new &#8216;Recycle Bin&#8217; feature, which is enabled via PowerShell, and could instantly see that this would be a great and long overdue new feature. I am not alone in this; when Mark Minasi recently appeared on the <a href="http://www.runasradio.com/default.aspx?showNum=119" target="_blank">Run As Radio podcast</a> he said the AD Recycle Bin was the standout feature of the whole Server 2008 R2 release, not just the Active Directory part.</p>
<p>So I have spent some time checking it out which has resulted in my <a href="http://www.simple-talk.com/sysadmin/exchange/the-active-directory-recycle-bin-in-windows-server-2008-r2/" target="_blank">latest article</a> on the Simple-Talk.com website being based on it, hope you find it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2009/09/new-simple-talk-com-article-the-active-directory-recycle-bin-in-windows-server-2008-r2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>64&#8230;&#8230;&#8230;is the magic number</title>
		<link>http://www.jonathanmedd.net/2009/06/64is-the-magic-number.html</link>
		<comments>http://www.jonathanmedd.net/2009/06/64is-the-magic-number.html#comments</comments>
		<pubDate>Sun, 28 Jun 2009 21:04:50 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=149</guid>
		<description><![CDATA[Most Windows administrators know that the maximum length for the Netbios computer name of a machine is 15 characters since they may well have hit that limit at some point in time. Slightly less familiar might be the samAccountName attribute of an Active Directory account which must be less than 20 characters &#8211; I had [...]]]></description>
			<content:encoded><![CDATA[<p>Most Windows administrators know that the maximum length for the Netbios computer name of a machine is <a href="http://support.microsoft.com/kb/909264" target="_blank">15 characters</a> since they may well have hit that limit at some point in time. Slightly less familiar might be the samAccountName attribute of an Active Directory account which must be less than <a href="http://msdn.microsoft.com/en-us/library/ms679635(VS.85).aspx" target="_blank">20 characters</a> &#8211; I had experience troubleshooting this one though as recently as last year.</p>
<p>Last week  I needed to create hundreds of distribution lists in Active Directory (using PowerShell of course <img src='http://www.jonathanmedd.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ), some with particularly long names and during the first run through in my test environment about 20% of them failed to create with an error along the lines that one of the properties I was trying to set was causing a violation.</p>
<p>I tracked it down to the ldap &#8216;name&#8217; property, i.e. the Relative Distinguished Name, and it appeared to have a limit of 64 characters although I could not confirm this with the AD documentation I found on MSDN.</p>
<p>Thankfully Twitter again proved incredibly useful, I posted my question on there and within minutes had a response from AD guru and PowerShell MVP Brandon Shell (I kind of hoped he would know when I posted the tweet), thanks to him again for his assistance. He encouraged me to post to a newsgroup and not too long after also followed up with the confirmed answer, links below:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc977992.aspx" target="_blank">http://technet.microsoft.com/en-us/library/cc977992.aspx</a></p>
<p><a href="http://groups.google.com/group/microsoft.public.windows.server.active_directory/browse_thread/thread/d70df4342f43b8f7" target="_blank">http://groups.google.com/group/microsoft.public.windows.server.active_directory/browse_thread/thread/d70df4342f43b8f7</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2009/06/64is-the-magic-number.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UK User Group Events in May</title>
		<link>http://www.jonathanmedd.net/2009/05/uk-user-group-events-in-may.html</link>
		<comments>http://www.jonathanmedd.net/2009/05/uk-user-group-events-in-may.html#comments</comments>
		<pubDate>Tue, 05 May 2009 21:47:02 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[user group]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=124</guid>
		<description><![CDATA[So May looks like a great month for some of the user groups I regularly attend.
First up we have the VMware user group in London on Thursday May 14th. This is an excellent event for VMware administrators to attend and has a great mix of vendor and community contributions. In particular this time check out [...]]]></description>
			<content:encoded><![CDATA[<p>So May looks like a great month for some of the user groups I regularly attend.</p>
<p>First up we have the VMware user group in London on Thursday May 14th. This is an excellent event for VMware administrators to attend and has a great mix of vendor and community contributions. In particular this time check out Alan Renouf&#8217;s pre-show PowerShell workshop. This is before the usual start time and should be great if you are new to PowerShell or already using the VI Toolkit.</p>
<p>Sign up details are <a href="http://communities.vmware.com//thread/207677?tstart=0" target="_self">here</a>.</p>
<p>Next up is the PowerShell user group at Microsoft in Reading on Tuesday 19th May. This time we have a real treat in store, PowerShell MVP Dmitry Sotnikov from Quest will be stopping by on his whistle stop tour of the UK to tell us <a href="http://dmitrysotnikov.wordpress.com/2009/05/05/dmitry-to-present-at-uk-powershell-usergroup/" target="_blank">about PowerGUI and the AD cmdlets</a>, in particular recent updates. This was a great event when he presented for us last year and is a real opportunity if you use either of these products to get your questions answered or put forward any suggestions for improvements. You also get to meet a really cool guy and see if he manages to blue screen his machine again during a PowerShell demo by stopping all the services, having forgot to use the &#8216;whatif&#8217; paramter! (I told him I&#8217;d get him back for making fun of me when I interviewed him for the Get-Scripting podcast)</p>
<p>Sign up details are<a href="http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2310.entry" target="_blank"> here</a>. You need to contact Richard if you wish to attend in person.</p>
<p>Finally on Thursday 28th May the Windows Server and Vista Squad user groups join the Active Directory user group for a joint Windows 7 event. Full content is yet to be confirmed, but that&#8217;s the first Windows 7 event I&#8217;ve heard of in this country.</p>
<p>Full details <a href="http://adug.co.uk/" target="_blank">here</a>.</p>
<p>Hope to see you at one of these events.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2009/05/uk-user-group-events-in-may.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell Active Directory Cmdlets in Windows Server 2008 R2</title>
		<link>http://www.jonathanmedd.net/2009/04/powershell-active-directory-cmdlets-in-windows-server-2008-r2.html</link>
		<comments>http://www.jonathanmedd.net/2009/04/powershell-active-directory-cmdlets-in-windows-server-2008-r2.html#comments</comments>
		<pubDate>Thu, 16 Apr 2009 20:25:39 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=79</guid>
		<description><![CDATA[A lot of the scripting I have done with PowerShell has been around manging Active Directory and up till now the majority of that work has been with the Quest AD cmdlets which are brilliant for this job. Of course not everyone is always able to install third-party cmdlets into their environment and for other [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of the scripting I have done with PowerShell has been around manging Active Directory and up till now the majority of that work has been with the <a href="http://www.quest.com/activeroles-server/arms.aspx" target="_blank">Quest AD cmdlets</a> which are brilliant for this job. Of course not everyone is always able to install third-party cmdlets into their environment and for other reasons I have been as keen as anyone to see native cmdlets released for AD.</p>
<p>A month or so ago at a UK Technet event I saw James O&#8217;Neill carry out a demo of the AD cmdlets which will ship as part of Windows Server 2008 R2. They looked so good I had to check them out straight away and downloaded the<a href="http://www.microsoft.com/windowsserver2008/en/us/r2.aspx" target="_blank"> beta</a> of Server 2008 R2. I was so impressed I ended up changing what I was originally intending to present for March&#8217;s UK Powershell UserGroup so that I could share with people the good stuff that is coming. If you currently use Powershell to manage AD (or even if you are just using the curent GUI tools) you should definitely start checking these cmdlets out so are you a ready to take advantage of them as soon as possible. The best place to currently find out information about them is the <a href="http://blogs.msdn.com/adpowershell/default.aspx" target="_blank">Active Directory Powershell Blog &#8211; Pipelining AD One Object at a Time</a> . There is some great info here on what is currently available and the direction it is headed.</p>
<p>I&#8217;ll give you a tip to help getting started with the cmdlets since some of the inline help is slightly behind the development of the cmdlets. There is a cmdlet for managing user accounts, Get-ADUser, which returns about 10 properties for a user account by default. (Note Quest regulars this is a fair bit less than what you have been used to). There is a parameter &#8216;-properties&#8217; which you can use to specify particular attributes for a user account or all of them in one go. The inline help says you should use &#8216;-properties extended&#8217; or&#8217; -properties all&#8217; to retrieve more than the default set. However, trying this out in the beta causes an error and fails to return anything for the user account.</p>
<p>Since the AD blog previously mentioned has a contact form I thought I would drop them a quick note about this and was pleased to receive a very prompt reponse from one of the developers that they had changed the format to be &#8216;-properties *&#8217;, but hadn&#8217;t updated the help in time for the beta release. So you would use something like this:</p>
<p>Get-ADUser username -Properties *</p>
<p>Easy when you know how <img src='http://www.jonathanmedd.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Finally for now, another way you can find out more information about the AD cmdlets is by listening to a<a href="http://powerscripting.wordpress.com/2009/03/23/episode-63-powershell-mvp-brandon-shell/" target="_blank"> recent episode of the PowerScripting podcast</a> which featured PowerShell MVP <a href="http://www.bsonposh.com/" target="_blank">Brandon Shell</a> who is an expert at scripting around AD, has recently spent some time with the AD team and helped point them in the right direction for what we want to get out of these cmdlets.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2009/04/powershell-active-directory-cmdlets-in-windows-server-2008-r2.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Get-Scripting Guys Take Over the March UK Powershell User Group</title>
		<link>http://www.jonathanmedd.net/2009/03/get-scripting-guys-take-over-the-march-uk-powershell-user-group.html</link>
		<comments>http://www.jonathanmedd.net/2009/03/get-scripting-guys-take-over-the-march-uk-powershell-user-group.html#comments</comments>
		<pubDate>Thu, 12 Mar 2009 21:44:00 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[user group]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://jonathanmedd.wordpress.com/2009/03/12/get-scripting-guys-take-over-the-march-uk-powershell-user-group/</guid>
		<description><![CDATA[Myself and Alan Renouf from the Get-Scripting Podcast will be presenting this month at the UK Powershell User Group on Thursday 26th March at Microsoft in Reading.
First up on the night will be Richard Siddaway talking to us about using Regular Expressions in Powershell. This was requested at a previous event and I know that [...]]]></description>
			<content:encoded><![CDATA[<p>Myself and <a href="http://www.virtu-al.net/">Alan Renouf</a> from the <a href="http://get-scripting.blogspot.com/">Get-Scripting Podcast</a> will be presenting this month at the <a href="http://richardsiddaway.spaces.live.com/blog/cns%2143CFA46A74CF3E96%212100.entry">UK Powershell User Group on Thursday 26th March at Microsoft in Reading</a>.</p>
<p>First up on the night will be <a href="http://richardsiddaway.spaces.live.com/default.aspx">Richard Siddaway</a> talking to us about using Regular Expressions in Powershell. This was requested at a previous event and I know that Richard is really looking forward to talking about that subject <img src='http://www.jonathanmedd.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Then the Get-Scripting guys will take over:</p>
<p>I will be talking about some of the features that are part of Active Directory in Server 2008 R2 , currently in beta, in particular the native AD Powershell cmdlets which will ship as part of that product and what I have learned about them so far.</p>
<p><a href="http://www.vmware.com/communities/vexpert/">vExpert</a> Alan Renouf will then tell us about the VI toolkit, which for those of you not in the know are the cmdlets shipped by VMware to enable you to manage their ESX product.</p>
<p>A good mixture I think of general scripting skills, third-party added value to your Powershell learning and future technologies.</p>
<p>If you can&#8217;t make the event in person then as usual it will be broadcast by LiveMeeting (details <a href="http://richardsiddaway.spaces.live.com/Blog/cns%2143CFA46A74CF3E96%212157.entry">here</a>). It wouldn&#8217;t be a UK Powershell event if the LiveMeeting part doesn&#8217;t go 100% to plan, but we will endeavour to ensure we avoid the usual trick of the microphone going on mute.</p>
<p>If you wish to attend the event in person you should contact Richard via his <a href="http://richardsiddaway.spaces.live.com/default.aspx">blog</a> so that he can have a badge for you at the welcome desk. If the prospect of us presenting isn&#8217;t enough to attract you then as always there will be pizza at half-time <img src='http://www.jonathanmedd.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2009/03/get-scripting-guys-take-over-the-march-uk-powershell-user-group.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UK Active Directory User Group &#8211; 6pm GMT Wednesday 11th March</title>
		<link>http://www.jonathanmedd.net/2009/02/uk-active-directory-user-group-6pm-gmt-wednesday-11th-march.html</link>
		<comments>http://www.jonathanmedd.net/2009/02/uk-active-directory-user-group-6pm-gmt-wednesday-11th-march.html#comments</comments>
		<pubDate>Sun, 22 Feb 2009 15:02:00 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[user group]]></category>

		<guid isPermaLink="false">http://jonathanmedd.wordpress.com/2009/02/22/uk-active-directory-user-group-6pm-gmt-wednesday-11th-march/</guid>
		<description><![CDATA[This is the second meeting of the newly formed UK Active Directory User Group:
The second [ADUG] UK Active Directory User Group meeting will be on the evening of the 11th March at Microsoft&#8217;s London (Victoria) Offices. The meeting will co-hosted with the Windows Server User Group.
The draft agenda is:

18:00 for 18:25 Arrival and registration
18:25-18:30 Welcome [...]]]></description>
			<content:encoded><![CDATA[<p>This is the second meeting of the newly formed UK Active Directory User Group:</p>
<p><span style="font-family:Calibri;color:black;font-size:14pt;">The second [ADUG] UK Active Directory User Group meeting will be on the <strong>evening </strong>of the <strong>11th March</strong> at Microsoft&#8217;s London (<em>Victoria</em>) Offices. The meeting will co-hosted with the Windows Server User Group.</span></p>
<p>The draft agenda is:</p>
<ul>
<li>18:00 for 18:25 Arrival and registration</li>
<li>18:25-18:30 Welcome and introductions</li>
<li>18:30-19:45 James O&#8217;Neill takes a quick tour through the new features in  Windows Server 2008 R2 (just to whet your appetite).</li>
<li>19:45-20:00 Refreshments</li>
<li>20:00-21:15 Amish Lukka (also from Microsoft) will be presenting an insight  into new Active Directory features in Windows Server 2008 R2.</li>
<li>21:15-21:30 Wrap-up.</li>
<li>21:20 Adjourn to a nearby public house where Mark Parris will be happy to  share his experiences of the Microsoft Certified Masters: Windows Server 2008:  Directory class that he attended last November.</li>
</ul>
<p class="MsoNormal" style="margin:0 30pt;"><span style="font-family:Calibri;color:black;font-size:14pt;">If you are interested in attending &#8211; please send an email to <a href="mailto:registration@adug.co.uk"><strong>registration@adug.co.uk</strong></a> with your name and see you there. The confirmed times will be in the confirmation email.</span></p>
<p class="MsoNormal" style="margin:0 30pt;">
<p class="MsoNormal" style="margin:0 30pt;"><span style="font-family:Calibri;color:black;font-size:14pt;"><br />
For those who can’t make it in person, we will set up a Live Meeting session (which will be recorded) and details will be made available closer to the event.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2009/02/uk-active-directory-user-group-6pm-gmt-wednesday-11th-march.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
