<?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, 01 Feb 2012 13:58:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SAP Single Sign On Issues with Windows Server 2008 R2 Domain Controllers</title>
		<link>http://www.jonathanmedd.net/2011/06/sap-single-sign-on-issues-with-windows-server-2008-r2-domain-controllers.html</link>
		<comments>http://www.jonathanmedd.net/2011/06/sap-single-sign-on-issues-with-windows-server-2008-r2-domain-controllers.html#comments</comments>
		<pubDate>Tue, 07 Jun 2011 11:36:55 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=1656</guid>
		<description><![CDATA[By default, Data Encryption Standard (DES) encryption for Kerberos authentication is disabled  in Windows Server 2008 R2, this is a change from Windows Server 2003. If you are running an application which uses DES encryption for Kerberos application, such as SAP, then you may see issues authenticating users against 2008 R2 DCs. You will see [...]]]></description>
			<content:encoded><![CDATA[<p>By default, Data Encryption Standard (DES) encryption for Kerberos  authentication is disabled  in Windows Server 2008 R2, this is a change from Windows Server 2003. If you are running an application which uses DES encryption for Kerberos application, such as SAP, then you may see issues authenticating users against 2008 R2 DCs. You will see errors in the System Log like the below for the users in question:</p>
<p><strong>&#8220;While processing a TGS request for the target server %1, the account %2  did not have a suitable key for generating a Kerberos ticket (the  missing key has an ID of %3). The requested etypes were %4. The accounts  available etypes were %5.&#8221;</strong></p>
<p>To resolve this issue you need to make the Group Policy change to allow DES encryption for Kerberos authentication on the DCs, documented in this KB <a href="http://support.microsoft.com/kb/977321" target="_blank">http://support.microsoft.com/kb/977321</a>.</p>
<ol>
<li> In the Group Policy Management Console (GPMC), locate the following location:
<div><strong>Computer Configuration\ Windows Settings\ Security Settings\ Local Policies\ Security Options</strong></div>
</li>
<li>Click to select the <strong>Network security: Configure encryption types allowed for Kerberos</strong> option.</li>
<li>Click to select <strong>Define these policy settings</strong> and all the six check boxes for the encryption types.</li>
<li> Click <strong>OK</strong>. Close the GPMC.</li>
</ol>
<p>To be able to make this change, you need to have first installed the following hotfix, <a href="http://support.microsoft.com/kb/978055" target="_blank">http://support.microsoft.com/kb/978055</a> . This fix is included in Windows Server 2008 R2 SP1, so if you have installed that you are already good to go.</p>
<p>A good discussion of this issue and further steps you may need to take with service accounts can be found here:</p>
<p><a href="http://social.technet.microsoft.com/Forums/en-US/winserversecurity/thread/ecf15eb9-26cf-483b-b1e3-1b1c7e4901e8/" target="_blank">http://social.technet.microsoft.com/Forums/en-US/winserversecurity/thread/ecf15eb9-26cf-483b-b1e3-1b1c7e4901e8/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/06/sap-single-sign-on-issues-with-windows-server-2008-r2-domain-controllers.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Running AD Schema Update for 2008 R2 in a 32-bit DC Environment</title>
		<link>http://www.jonathanmedd.net/2011/04/running-ad-schema-update-for-2008-r2-in-a-32-bit-dc-environment.html</link>
		<comments>http://www.jonathanmedd.net/2011/04/running-ad-schema-update-for-2008-r2-in-a-32-bit-dc-environment.html#comments</comments>
		<pubDate>Wed, 20 Apr 2011 11:09:17 +0000</pubDate>
		<dc:creator>Jonathan Medd</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[windows server 2003]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[Windows Server 2003]]></category>

		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=1624</guid>
		<description><![CDATA[To upgrade Active Directory from Windows Server 2003 to Windows Server 2008 R2 requires the usual AD schema upgrade first of all. Windows Server 2008 R2 is 64-bit only, so if you try running the usual command to upgrade the schema from a 32-bit Domain Controller: adprep /forestprep you get the following result, &#8220;adprep.exe is [...]]]></description>
			<content:encoded><![CDATA[<p>To upgrade Active Directory from Windows Server 2003 to Windows Server 2008 R2 requires the usual AD schema upgrade first of all. Windows Server 2008 R2 is 64-bit only, so if you try running the usual command to upgrade the schema from a 32-bit Domain Controller:</p>
<p><strong>adprep /forestprep</strong></p>
<p>you get the following result, &#8220;adprep.exe is valid, but if for a machine type other than the current machine.&#8221;:</p>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/04/Adprep1.png"><img class="aligncenter size-full wp-image-1625" title="Adprep1" src="http://www.jonathanmedd.net/wp-content/uploads/2011/04/Adprep1.png" alt="" width="663" height="51" /></a></p>
<p>An alternative is to try running it from a 64-bit machine that is not a DC, but then you discover that this process absolutely must be run from a DC:</p>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/04/Adprep21.png"><img class="aligncenter size-full wp-image-1629" title="Adprep2" src="http://www.jonathanmedd.net/wp-content/uploads/2011/04/Adprep21.png" alt="" width="643" height="96" /></a></p>
<p>So what do you do? The answer is that you run <strong>adprep32.exe</strong>, a 32-bit version of <strong>adprep</strong>, which is included in the same folder:</p>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/04/Adprep3.png"><img class="aligncenter size-full wp-image-1631" title="Adprep3" src="http://www.jonathanmedd.net/wp-content/uploads/2011/04/Adprep3.png" alt="" width="190" height="202" /></a></p>
<p><strong>adprep32 /forestprep</strong></p>
<p><a href="http://www.jonathanmedd.net/wp-content/uploads/2011/04/Adprep4.png"><img class="aligncenter size-full wp-image-1634" title="Adprep4" src="http://www.jonathanmedd.net/wp-content/uploads/2011/04/Adprep4.png" alt="" width="644" height="162" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanmedd.net/2011/04/running-ad-schema-update-for-2008-r2-in-a-32-bit-dc-environment.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 [...]]]></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 [...]]]></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 [...]]]></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>9</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 [...]]]></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>3</slash:comments>
		</item>
	</channel>
</rss>

