<?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>Shariq Sheikh &#124; Port 389 &#187; Windows Server 2008 R2</title>
	<atom:link href="http://www.shariqsheikh.com/blog/index.php/category/windows-server-2008-r2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shariqsheikh.com/blog</link>
	<description>- activity of Active Directory and the rest</description>
	<lastBuildDate>Thu, 22 Jul 2010 17:01:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PowerShell : How do I check Active Directory Tombstone Lifetime ?</title>
		<link>http://www.shariqsheikh.com/blog/index.php/201002/powershell-how-do-i-check-active-directory-tombstone-lifetime/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/201002/powershell-how-do-i-check-active-directory-tombstone-lifetime/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 03:45:38 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/201002/powershell-how-do-i-check-active-directory-tombstone-lifetime/</guid>
		<description><![CDATA[What is Active Directory Tombstone Lifetime (TSL) ? The tombstone lifetime in an Active Directory forest determines how long a deleted object (called a “tombstone”) is retained in Active Directory Domain Services (AD DS). The tombstone lifetime is determined by the value of the tombstoneLifetime attribute on the Directory Service object in the configuration directory [...]]]></description>
			<content:encoded><![CDATA[<p>What is Active Directory Tombstone Lifetime (TSL) ?</p>
<blockquote><p>The tombstone lifetime in an Active Directory forest determines how long a deleted object (called a “tombstone”) is retained in Active Directory Domain Services (AD DS). The tombstone lifetime is determined by the value of the <strong>tombstoneLifetime</strong> attribute on the Directory Service object in the configuration directory partition.</p></blockquote>
<p>Directory Services veteran and MVP Joe Richards has <a href="http://blog.joeware.net/2010/02/05/1896/">published a short blog entry</a> demystifying the confusion a <a href="http://technet.microsoft.com/en-us/library/cc784932%28WS.10%29.aspx">technet article</a> has caused in regards to how to go about figuring a TSL on a particular domain. Note that new forests that are installed with Windows Server 2003 with SP1 and up have a default tombstone lifetime of 180 days.</p>
<p>Joe shares his ADFIND tool to lookup the current value of the TSL attribute (irrespective of what OS was used to build the forest). Note that as Joe pointed out if this attribute is not set (i.e empty value) then the TSL is 60 days. Here I show you how to lookup the TSL with PowerShell.</p>
<p>Using Quest cmdlets :</p>
<blockquote><p>Get-QADbject “CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=yourdomain,DC=int” includeallproperties | Select TombstoneLifetime</p></blockquote>
<p>And with using native AD cmdlets (of ADWS) in Windows Server 2008 R2 :</p>
<blockquote><p>Get-ADObject -Identity “CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=R2,DC=lab” -properties tombstonelifetime</p></blockquote>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/02/TSL.png"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="TSL" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/02/TSL_thumb.png" border="0" alt="TSL" width="900" height="145" /></a></p>
<p>Also within PowerShell, you can also use ADSI to lookup the TSL value.</p>
<blockquote><p>[ADSI]$config=LDAP://cn=Directory Service,cn=Windows NT,cn=Services,cn=Configuration,DC=R2,dc=lab</p></blockquote>
<blockquote><p>$config.TombstoneLifetime</p></blockquote>
<p>Also, here is how you can use DSQUERY from the Windows Support Tools to lookup the TSL.</p>
<blockquote><p>dsquery * “CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=R2,DC=lab” -scope base –attr</p>
<p>tombstonelifetime</p></blockquote>
<p>Note that I have used my test forest’s DN of R2.lab in above examples, be sure to replace the values with your forest’s DN. Above query should be typed in one line.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F201002%2Fpowershell-how-do-i-check-active-directory-tombstone-lifetime%2F&amp;linkname=PowerShell%20%3A%20How%20do%20I%20check%20Active%20Directory%20Tombstone%20Lifetime%20%3F">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/201002/powershell-how-do-i-check-active-directory-tombstone-lifetime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can I install KMS on Server Core ?</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200912/can-i-install-kms-on-server-core/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200912/can-i-install-kms-on-server-core/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 22:49:54 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Server Core]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[KMS]]></category>
		<category><![CDATA[Volume Activation 2.0]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/200912/can-i-install-kms-on-server-core/</guid>
		<description><![CDATA[Server Core seems to be the perfect candidate for installing KMS. Key Management Service mediates your Volume Licensing with Microsoft Activation Services and acts as the man-in-the-middle for the activation for all your KMS clients that comprise of Vista, Windows 7, Windows Server 2008 and R2. With Windows 7 and Windows Server 2008 R2, what [...]]]></description>
			<content:encoded><![CDATA[<p>Server Core seems to be the perfect candidate for installing KMS. Key Management Service mediates your Volume Licensing with Microsoft Activation Services and acts as the man-in-the-middle for the activation for all your KMS clients that comprise of Vista, Windows 7, Windows Server 2008 and R2. With Windows 7 and Windows Server 2008 R2, what you have in KMS is Volume Activation 2.0. In contrast with KMS, what you have is MAK that stands for <em>multiple activation key</em>. MAK is targeted for clients that stay off the network whereas KMS is designed for your internal clients. Following I have a simple overview design of how it works.</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/image.png"><img style="display: inline" title="image" alt="image" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/image_thumb.png" width="876" height="506"/></a></p>
<p>My Windows Server 2008 R2 Server Core has a very small footprint, it is a single processor/20gb hd/512mb ram machine. The first thing you need is the KMS Host key from your Microsoft Volume Licensing site or from your TAM.<br />The command to register the machine as the KMS host is <em>slmgr /ipk &lt;your key&gt;</em></p>
<p><em></em><br /><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/mozscreenshot5.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="moz-screenshot-5" border="0" alt="moz-screenshot-5" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/mozscreenshot5_thumb.jpg" width="660" height="326"/></a></p>
<p>Once it is registered, you need to activate the host itself. Run <em>slmgr -ato</em><br />You can check the status and brief description of the KMS host by running <em>slmgr –dli</em></p>
<p><em></em></p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/mozscreenshot6.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="moz-screenshot-6" border="0" alt="moz-screenshot-6" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/mozscreenshot6_thumb.jpg" width="670" height="480"/></a></p>
<p>The verbose information is provided via <em>slmgr –dlv</em></p>
<p><em></em></p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/mozscreenshot7.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="moz-screenshot-7" border="0" alt="moz-screenshot-7" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/mozscreenshot7_thumb.jpg" width="690" height="593"/></a></p>
<p>Once KMS is setup, it will register its SRV record in DNS. You can verify from your workstation if it has done so via,</p>
<p><em>nslookup -type=srv _vlmcs._tcp</em></p>
<p>From then on clients will automatically be reverted to your KMS host for activation but as hinted in the drawing above, starting with Windows 7 and 08 R2, the minimum threshold (activation attempts/requests) that are needed to fully activate the KMS host is 25 Vista/Windows 7 clients or 5 Server 2008 (R2). This number can comprise of virtual and physical loads, previously this was limited to physical systems only. The slmgr -dlv will show you the total requests received.<br />Note that the KMS is desgined to let you better manage your internal activation for compliance reason. Micrsoft does not go receive any internal information from between the KMS host and KMS client. KMS has you abide your EA Volume Licenseing, check the VL Product Groups shown in the diagram that are pertinent for your environment. I find the group B to be most commonly required.</p>
<p>Important note : Installing/configuring the KMS does not open up the pertinent firewall port (default port 1688). From running &#8220;slmgr -dli&#8221; you will notice that it says that the KMS is listening on port 1688 but the rule is not enabled so you may do so like this.</p>
<p>netsh advfirewall&gt;FIREWALL add rule name=&#8221;KMS&#8221; dir=in action=allow protocol=tcp<br />localport=1688<br />Ok.</p>
<p>For more information see this <a href="http://technet.microsoft.com/en-us/library/cc303280.aspx" target="_blank">link.</a></p>
<p><a href="http://technorati.com/tag/Server%20Core"></a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200912%2Fcan-i-install-kms-on-server-core%2F&amp;linkname=Can%20I%20install%20KMS%20on%20Server%20Core%20%3F">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200912/can-i-install-kms-on-server-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is DNS Cache Locking in Windows Server 2008 R2 ?</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200912/what-is-dns-cache-locking-in-windows-server-2008-r2/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200912/what-is-dns-cache-locking-in-windows-server-2008-r2/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 21:23:14 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/200912/what-is-dns-cache-locking-in-windows-server-2008-r2/</guid>
		<description><![CDATA[One of the DNS improvements in Windows Server 2008 R2 is DNS Cache Locking in which if configured the cache entries are not allowed to be modified for the percentage of TTL. Cache locking is a new security feature available with Windows Server® 2008 R2 that allows you to control whether or not information in [...]]]></description>
			<content:encoded><![CDATA[<p>One of the DNS improvements in Windows Server 2008 R2 is DNS Cache Locking in which if configured the cache entries are not allowed to be modified for the percentage of TTL.</p>
<blockquote><p>Cache locking is a new security feature available with Windows Server® 2008 R2 that allows you to control whether or not information in the DNS cache can be overwritten. When a recursive DNS server responds to a query, it will cache the results obtained so that it can respond quickly if it receives another query requesting the same information. The period of time the DNS server will keep information in its cache is determined by the Time to Live (TTL) value for a resource record. Until the TTL period expires, information in the cache might be overwritten if updated information about that resource record is received. If an attacker successfully overwrites information in the cache, they might be able to redirect traffic on your network to a malicious site.</p>
<p>Cache locking is configured as a percent value. For example, if the cache locking value is set to 50, then the DNS server will not overwrite a cached entry for half of the duration of the TTL. By default, the cache locking percent value is 100. This means that cached entries will not be overwritten for the entire duration of the TTL. The cache locking value is stored in the <strong>CacheLockingPercent</strong> registry key. If the registry key is not present, then the DNS server will use the default cache locking value of 100. </p>
</blockquote>
<p>You can configure the CacheLocking with DNSCMD utility from the command line (launched under elevated rights).</p>
<pre>dnscmd /Config /CacheLockingPercent &lt;percent&gt;</pre>
<p>You may also check the current percentage set for this setting with the /info switch of DNSCMD.</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/DNScachelocking.png"><img title="DNScachelocking" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="167" alt="DNScachelocking" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/DNScachelocking_thumb.png" width="511" border="0"/></a> </p>
<p>With above, the pertinent DWORD registry key is created under <strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\DNS\Parameters</strong></p>
<p>However, in real world you push down this registry key via Group Policy Preferences to all your DNS servers. Values for the key are shown below.</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/DNScachelocking11.png"><img title="DNScachelocking1" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="575" alt="DNScachelocking1" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/DNScachelocking1_thumb1.png" width="827" border="0"/></a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200912%2Fwhat-is-dns-cache-locking-in-windows-server-2008-r2%2F&amp;linkname=What%20is%20DNS%20Cache%20Locking%20in%20Windows%20Server%202008%20R2%20%3F">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200912/what-is-dns-cache-locking-in-windows-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Server 2008 R2 Features Poster</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200912/windows-server-2008-r2-features-poster/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200912/windows-server-2008-r2-features-poster/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 19:05:57 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[Posters]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/200912/windows-server-2008-r2-features-poster/</guid>
		<description><![CDATA[Previously I had posted the 2003 AD and 2008 Features jigsaw posters, Mike Kline informed me that there is now a 2008 R2 Features poster. You can download the 44x24in poster from here]]></description>
			<content:encoded><![CDATA[<p>Previously I had posted the <a href="http://www.shariqsheikh.com/blog/index.php/200909/is-there-an-active-directory-visual-illustrationdiagram/" target="_blank">2003 AD and 2008 Features jigsaw posters</a>, Mike Kline informed me that there is now a 2008 R2 Features poster.</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/08R2jigsaw2.png"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="08R2jigsaw" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/08R2jigsaw_thumb1.png" border="0" alt="08R2jigsaw" width="819" height="449" /></a></p>
<p>You can download the 44x24in poster from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=64A5CC28-F8A1-4B30-A4A2-455C65BDA8D7&amp;displaylang=en" target="_blank">here</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200912%2Fwindows-server-2008-r2-features-poster%2F&amp;linkname=Windows%20Server%202008%20R2%20Features%20Poster">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200912/windows-server-2008-r2-features-poster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell : Set-ADAccountPassword cmdlet in Windows Server 2008 R2</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200910/set-adaccountpassword-cmdlet-in-windows-server-2008-r2/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200910/set-adaccountpassword-cmdlet-in-windows-server-2008-r2/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 01:28:58 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[ADWS]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/?p=724</guid>
		<description><![CDATA[Here is quick snippet of password set/reset &#8216;Set-ADaccountPassword&#8217; cmdlet in 08 R2 via ADWS (native AD cmdlets) and a test screencast from me. I highly recommend to use the built in cmdlet help to learn the syntax and available parameters. Whether you are using the cmdlet as an one-off task or trying to incorporate it [...]]]></description>
			<content:encoded><![CDATA[<p>Here is quick snippet of password set/reset &#8216;Set-ADaccountPassword&#8217; cmdlet in 08 R2 via ADWS (native AD cmdlets) and a test screencast from me.</p>
<p>	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/flash.cab#version=7,0,0,0" width="660" height="326">
	<param name="movie" value="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/10/adws-set-adaccountpassword.swf">
	<param value="sameDomain" name="allowScriptAccess"/>
	<param name="quality" value="high">
	<param name="scale" value="exactfit" />
	
	<embed src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/10/adws-set-adaccountpassword.swf"  quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" allowscriptaccess="sameDomain" scale="exactfit" type="application/x-shockwave-flash" width="660" height="326" bgcolor="#FFFFFF">
	</embed>
	</object></p>
<p>I highly recommend to use the built in cmdlet help to learn the syntax and available parameters. Whether you are using the cmdlet as an one-off task or trying to incorporate it into a script.</p>
<p>First we run, <strong><em>Help Set-ADaccountPassword -examples</em></strong> to look at what the options are and then use,</p>
<p><strong><em>Set-ADaccountPassword -Identity Moyo -reset</em></strong> where the user id is moyo, and provide the new value of the password. Unlike many other functions where you must run the ADWS under elevated &#8216;administrative&#8217; privileges, if you are running this cmdlet on your DC, you can run this under normal security context.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200910%2Fset-adaccountpassword-cmdlet-in-windows-server-2008-r2%2F&amp;linkname=PowerShell%20%3A%20Set-ADAccountPassword%20cmdlet%20in%20Windows%20Server%202008%20R2">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200910/set-adaccountpassword-cmdlet-in-windows-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another look at Active Directory Administrative Center (ADAC)</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200909/another-look-at-active-directory-administrative-center-adac/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200909/another-look-at-active-directory-administrative-center-adac/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 03:48:00 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/200909/another-look-at-active-directory-administrative-center-adac/</guid>
		<description><![CDATA[Previously I had briefly written about ADAC and today we take a look at some of the things you can accomplish by this new interface of Active Directory. We start out by launching the ADAC, by running DSAC.exe from the run window ADAC offers two views, the list view and the tree view There are [...]]]></description>
			<content:encoded><![CDATA[<p>Previously I <a href="http://www.shariqsheikh.com/blog/index.php/200903/active-directory-administrative-center-wont-work-if/" target="_blank">had briefly written about ADAC</a> and today we take a look at some of the things you can accomplish by this new interface of Active Directory.</p>
<p>We start out by launching the ADAC, by running DSAC.exe from the run window</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc200909292038591.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="O8R2RWDC-2009-09-29-20-38-59" border="0" alt="O8R2RWDC-2009-09-29-20-38-59" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929203859-thumb1.png" width="884" height="555"/></a></p>
<p>ADAC offers two views, the list view</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc200909292041261.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="O8R2RWDC-2009-09-29-20-41-26" border="0" alt="O8R2RWDC-2009-09-29-20-41-26" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929204126-thumb1.png" width="884" height="555"/></a></p>
<p>and the tree view</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc200909292041531.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="O8R2RWDC-2009-09-29-20-41-53" border="0" alt="O8R2RWDC-2009-09-29-20-41-53" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929204153-thumb1.png" width="884" height="555"/></a></p>
<p>There are several useful queries built-in which you can add from the ‘Add criteria’ button such as find all the users with expired passwords</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc200909292042111.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="O8R2RWDC-2009-09-29-20-42-11" border="0" alt="O8R2RWDC-2009-09-29-20-42-11" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929204211-thumb1.png" width="884" height="555"/></a></p>
<p>And add multiple criteria to your query</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc200909292051401.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="O8R2RWDC-2009-09-29-20-51-40" border="0" alt="O8R2RWDC-2009-09-29-20-51-40" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929205140-thumb1.png" width="884" height="555"/></a></p>
<p>From the task pane, you can create a new user</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc200909292056231.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="O8R2RWDC-2009-09-29-20-56-23" border="0" alt="O8R2RWDC-2009-09-29-20-56-23" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929205623-thumb1.png" width="884" height="555"/></a></p>
<p>Its an ease of use to be able to fill in all the pertinent attributes from a single interface</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc200909292056451.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="O8R2RWDC-2009-09-29-20-56-45" border="0" alt="O8R2RWDC-2009-09-29-20-56-45" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929205645-thumb1.png" width="884" height="555"/></a></p>
<p>Now you can raise DFL and FFL from one location, previously you had to raise the FFL from AD Domains and Trusts snap-in</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929205958.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="O8R2RWDC-2009-09-29-20-59-58" border="0" alt="O8R2RWDC-2009-09-29-20-59-58" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929205958-thumb.png" width="884" height="554"/></a> </p>
<p>From the Global Search page, you can simply also add your own LDAP query</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc200909292102241.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="O8R2RWDC-2009-09-29-21-02-24" border="0" alt="O8R2RWDC-2009-09-29-21-02-24" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929210224-thumb1.png" width="884" height="554"/></a></p>
<p>You can add specific navigation nodes into your list-view such as the Users container and apply different filters (query) to do a comparison side-by-side, from the same ‘add navigation nodes’ window you can also add other trusted domains to manage multi-domain environment all in one place.</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc200909292105211.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="O8R2RWDC-2009-09-29-21-05-21" border="0" alt="O8R2RWDC-2009-09-29-21-05-21" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/o8r2rwdc20090929210521-thumb1.png" width="884" height="554"/></a></p>
<p>For more info. see <a href="http://technet.microsoft.com/en-us/library/dd560651(WS.10).aspx" target="_blank">http://technet.microsoft.com/en-us/library/dd560651(WS.10).aspx</a></p>
<p>Also watch this short webcast by Kevin Remde <a href="http://edge.technet.com/Media/Exploring-the-Active-Directory-Administrative-Center-SRV311-Part-1-of-5/" target="_blank">http://edge.technet.com/Media/Exploring-the-Active-Directory-Administrative-Center-SRV311-Part-1-of-5/</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200909%2Fanother-look-at-active-directory-administrative-center-adac%2F&amp;linkname=Another%20look%20at%20Active%20Directory%20Administrative%20Center%20%28ADAC%29">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200909/another-look-at-active-directory-administrative-center-adac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell : Add-Computer cmdlet works in Windows 7 RTM but Rename-Computer is gone</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200909/add-computer-cmdlet-works-in-windows-7-rtm/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200909/add-computer-cmdlet-works-in-windows-7-rtm/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 00:48:59 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/200909/add-computer-cmdlet-works-in-windows-7-rtm/</guid>
		<description><![CDATA[I had earlier posted about the Add-Computer cmdlet bug in Windows 7 RC builds which didn’t allow the computer to be added to the domain via PowerShell. With Windows 7 RTM, it is fixed and turns out to be pretty handy should you need to script the domain joins for your new builds. The command [...]]]></description>
			<content:encoded><![CDATA[<p>I had earlier posted about the <a href="http://www.shariqsheikh.com/blog/index.php/200904/add-computer-cmdlet-bug-in-powershell-v2-in-windows-7/" target="_blank">Add-Computer cmdlet bug</a> in Windows 7 RC builds which didn’t allow the computer to be added to the domain via PowerShell. With Windows 7 RTM, it is fixed and turns out to be pretty handy should you need to script the domain joins for your new builds. The command to add the machine is pretty simple.</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/windows720090924220559.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Windows7-2009-09-24-22-05-59" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/09/windows720090924220559-thumb.png" border="0" alt="Windows7-2009-09-24-22-05-59" width="644" height="137" /></a></p>
<p>The –passthru switch as chosen in the example shows the results.</p>
<p>Check out help for what you can do with this cmdlet such as when you need to add the computer account to a specific OU. Remember that adding machine via PowerShell to the domain does not require you to create the computer name before hand, but it pre-exists than its not an issue.</p>
<p>Few examples :</p>
<p>Add-Computer -domainname Domain02 -OUPath OU=testOU,DC=domain,DC=Domain,DC=com</p>
<p>Add-computer -workgroupname WORKGROUP-A</p>
<p>Add-computer -domainname Domain01; restart-computer   (this adds the restart option)</p>
<p>For more info. see <a title="http://technet.microsoft.com/en-us/library/dd347556.aspx" href="http://technet.microsoft.com/en-us/library/dd347556.aspx">http://technet.microsoft.com/en-us/library/dd347556.aspx</a></p>
<p>For reasons unknown to me the useful Rename-Computer cmdlet (shown in my earlier example) seems to have been removed past CTP3 builds and the RTM. Even though the <a href="http://technet.microsoft.com/en-us/library/dd367858(WS.10).aspx">technet reference for all Windows 7 PowerShell cmdlets</a> still has it listed.</p>
<p>Here is a discussion I found.</p>
<p><a href="http://social.technet.microsoft.com/Forums/en-US/w7itproinstall/thread/8cdf0302-a41d-4973-9bff-2923e7ad0178">http://social.technet.microsoft.com/Forums/en-US/w7itproinstall/thread/8cdf0302-a41d-4973-9bff-2923e7ad0178<br />
</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200909%2Fadd-computer-cmdlet-works-in-windows-7-rtm%2F&amp;linkname=PowerShell%20%3A%20Add-Computer%20cmdlet%20works%20in%20Windows%207%20RTM%20but%20Rename-Computer%20is%20gone">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200909/add-computer-cmdlet-works-in-windows-7-rtm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Active Directory Management Gateway Service is RTW</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200909/active-directory-management-gateway-service-is-rtw/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200909/active-directory-management-gateway-service-is-rtw/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 16:25:48 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[ADMGS]]></category>
		<category><![CDATA[ADWS]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/200909/active-directory-management-gateway-service-is-rtw/</guid>
		<description><![CDATA[ADMGS aka AD Web Services aka Powershell Native AD cmdlets which is originally a Windows Server 2008 R2 feature is out of beta and can be downloaded from here for DCs running down level OSs. The Active Directory Management Gateway Service enables administrators to use the Active Directory module for Windows PowerShell and the Active [...]]]></description>
			<content:encoded><![CDATA[<p>ADMGS aka AD Web Services aka Powershell Native AD cmdlets which is originally a Windows Server 2008 R2 feature is out of beta and can be downloaded from <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=008940c6-0296-4597-be3e-1d24c1cf0dda" target="_blank">here</a> for DCs running down level OSs.</p>
<p>The Active Directory Management Gateway Service enables administrators to use the Active Directory module for Windows PowerShell and the Active Directory Administrative Center running on Windows Server 2008 R2 or Windows 7 to access or manage directory service instances that are running on Windows Server 2008 or Windows Server 2003 DCs.</p>
<p>“<b>Note: </b>&nbsp;&nbsp; Installing the Active Directory Management Gateway Service on your Windows Server 2008–based or Windows Server 2003–based servers does not make it possible for you to install the Active Directory module or the Active Directory Administrative Center (which is available only on Windows Server 2008 R2 or Windows 7 operating systems) on these servers. “</p>
<p>For more info see <a href="http://www.shariqsheikh.com/blog/index.php/200907/what-is-active-directory-management-gateway-service-admgs/">http://www.shariqsheikh.com/blog/index.php/200907/what-is-active-directory-management-gateway-service-admgs/</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200909%2Factive-directory-management-gateway-service-is-rtw%2F&amp;linkname=Active%20Directory%20Management%20Gateway%20Service%20is%20RTW">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200909/active-directory-management-gateway-service-is-rtw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell : How do I look up AdminCount for AdminSDHolder and SDPROP ?</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200908/use-powershell-to-look-up-admincount-from-adminsdholder-and-sdprop/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200908/use-powershell-to-look-up-admincount-from-adminsdholder-and-sdprop/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 21:24:11 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/?p=613</guid>
		<description><![CDATA[What is the AdminSDHolder and SDPROP ? Ever wonder what controls the native permissions on the security principal such as Domain Admins and Administrators in Active Directory ? What if an owner changes the permission these entities have ? The permissions do come back. They must. John Policelli had a great article on the subject [...]]]></description>
			<content:encoded><![CDATA[<p>What is the AdminSDHolder and SDPROP ?</p>
<p>Ever wonder what controls the native permissions on the security principal such as Domain Admins and Administrators in Active Directory ? What if an owner changes the permission these entities have ? The permissions do come back. They must. John Policelli had a <a href="http://technet.microsoft.com/en-us/magazine/2009.09.sdadminholder.aspx">great article</a> on the subject of AdminSDHolder and SDPROP in this month&#8217;s technet article. The magic is driven by the AdminSDHolder which is an object that resides under the System container of Domain NC. This object has a unique ACL which is used to control the permissions of security principals that are members of built-in AD groups, also known as &#8220;protected groups&#8221;. The SDPROP (Security Descriptor Propagator) is the process that runs in the background and complies all the permissions according to the AdminSDHolder.</p>
<blockquote><p>Every hour, a background process called SDPROP runs on the domain controller that holds the PDC Emulator operations master role. It compares the ACL on all security principals (users, groups and computer accounts) that belong to protected groups against the ACL on the AdminSDHolder object. If the ACL lists aren&#8217;t the same, the ACL on the security principal is overwritten with the ACL from the Admin–SDHolder object. In addition, inheritance is disabled on the security principal.</p>
</blockquote>
<p>John has done an excellent job on explaining the process and how it can affect you. I would like to show you the one-liners with which you can look-up who is part of that &#8220;elite&#8221; bunch in your AD with PowerShell <a href="http://www.shariqsheikh.com/blog/index.php/200907/what-is-active-directory-management-gateway-service-admgs/">(ADWS)</a> on Windows Server 2008 R2 and as well with PowerShell (and Quest) in Windows Server 2003 domain.</p>
<p>For every recipient of this process i.e security principal such as user, group or computer, there is an attribute named &#8220;admincount&#8221; that gets marked as &#8220;1&#8243; indicating that this principal via nesting or explicitly is part of a protected group in AD.</p>
<p>On Windows Server 2008 R2 where can you use <a href="http://www.shariqsheikh.com/blog/index.php/200907/what-is-active-directory-management-gateway-service-admgs/">(ADWS)</a>, the simple command to retrieve the user and group objects with admincount set as 1 is this.</p>
<blockquote><p>Get-ADgroup -LDAPFilter &#8220;(admincount=1)&#8221; | select name</p>
</blockquote>
<blockquote><p>Get-ADuser -LDAPFilter &#8220;(admincount=1)&#8221; | select name</p>
</blockquote>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/08/08admincount11.png"><img class="alignleft size-full wp-image-619" title="08admincount11" alt="08admincount11" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/08/08admincount11.png" width="800" height="371"/></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>In domains that are pre-Windows Server 2008 R2, you can use similar <a href="http://www.shariqsheikh.com/blog/index.php/200812/put-powershell-and-qad-cmdlets-together-to-become-a-lazyier-yet-smarter-system-admin/">QAD cmdlets</a>.</p>
<blockquote><p>Get-QADGroup -LDAPFilter &#8220;(admincount=1)&#8221;</p>
</blockquote>
<blockquote><p>Get-QADuser -LDAPFilter &#8220;(admincount=1)&#8221;</p>
</blockquote>
<p>If you would just like to get the total number of users, you may count it like this.</p>
<blockquote><p>(Get-QADuser -Ldap &#8220;(admincount=1)&#8221;).count</p>
</blockquote>
<p>Another great read on AdminCount, AdminSDHolder, and SDPROP is <a href="http://theessentialexchange.com/blogs/michael/archive/2008/10/22/admincount-adminsdholder-sdprop-and-you.aspx">right here</a> from Mike B. Smith.</p>
<p>Some discrepencies pointed out by Joe in the technet article. He explains in great detail. <a href="http://blog.joeware.net/2009/09/08/1693/">http://blog.joeware.net/2009/09/08/1693/</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200908%2Fuse-powershell-to-look-up-admincount-from-adminsdholder-and-sdprop%2F&amp;linkname=PowerShell%20%3A%20How%20do%20I%20look%20up%20AdminCount%20for%20AdminSDHolder%20and%20SDPROP%20%3F">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200908/use-powershell-to-look-up-admincount-from-adminsdholder-and-sdprop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How many DFL and FFL are there now ?</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200908/how-many-dfl-and-ffl-are-there/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200908/how-many-dfl-and-ffl-are-there/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 23:00:01 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/?p=579</guid>
		<description><![CDATA[As named &#8220;domain modes&#8221; in Windows 2000 time, Domain Functional Level and Forest Functional Level (introduced in Windows Server 2003) list has grown with the inception of two new Windows Server 2008 functional levels. While Domain Functional Level limits the OS of the DCs, a raise to the Forest Functional Level (in a multi-domain environment) [...]]]></description>
			<content:encoded><![CDATA[<p>As named &#8220;domain modes&#8221; in Windows 2000 time, Domain Functional Level and Forest Functional Level (introduced in Windows Server 2003) list has grown with the inception of two new Windows Server 2008 functional levels. While Domain Functional Level limits the OS of the DCs, a raise to the Forest Functional Level (in a multi-domain environment) can only be achieved after all child domains&#8217; DFL have been met. Both Functional Levels do not dictate the type of OS you can run on your member servers. They dictate which OS can run on a DC and introduce new functionality to AD as you move up the ladder. Such as, to be able to take advantage of AD Recycle Bin functionality all your DCs must be running Windows Server 2008 R2 and the FFL must be at 2008 R2.</p>
<p>There are now 6 different types of Domain Functional Levels;</p>
<blockquote><p>1. Windows 2000 Mixed (supports NT4/2000/2003 DCs)<br />
2. Windows 2000 Native (supports 2000/2003 DCs)<br />
3. Windows Server 2003 Interim (supports NT4/2003 DCs)<br />
4. Windows Server 2003 (supports only 2003 DCs)<br />
5. Windows Server 2008 (supports only 2008 DCs)<br />
6. Windows Server 2008 R2 (supports only 2008 R2 DCs)</p></blockquote>
<p>And five forest functional levels:</p>
<blockquote><p>1. Windows 2000 (supports NT4/2000/2003 DCs)<br />
2. Windows 2003 Interim (supports NT4/2003 DCs)<br />
3. Windows Server 2003 (supports only 2003 DCs)<br />
4. Windows Server 2008 (supports only 2008 DCs)<br />
5. Windows Server 2008 R2 (supports only 2008 R2 DCs)</p></blockquote>
<p><a href="http://technet.microsoft.com/en-us/library/cc771132(WS.10).aspx"><br />
See this for list of features for different Functional Levels.</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200908%2Fhow-many-dfl-and-ffl-are-there%2F&amp;linkname=How%20many%20DFL%20and%20FFL%20are%20there%20now%20%3F">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200908/how-many-dfl-and-ffl-are-there/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
