<?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</title>
	<atom:link href="http://www.shariqsheikh.com/blog/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shariqsheikh.com/blog</link>
	<description>- activity of Active Directory and the rest</description>
	<lastBuildDate>Tue, 09 Mar 2010 16:26:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PowerShell : What&#8217;s my PowerShell version ?</title>
		<link>http://www.shariqsheikh.com/blog/index.php/201003/powershell-whats-my-powershell-version/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/201003/powershell-whats-my-powershell-version/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 16:26:02 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/201003/powershell-whats-my-powershell-version/</guid>
		<description><![CDATA[There are two types of PowerShell versions out there. PowerShell v1 that dates back to 2006 and the PowerShell v2 that is bundled with Windows 7 and Windows Server 2008 R2, and also mysteriously released for down level clients such as Windows Vista and XP (under vaguely named Windows Management Framework (Windows PowerShell 2.0, WinRM [...]]]></description>
			<content:encoded><![CDATA[<p>There are two types of PowerShell versions out there. PowerShell v1 that dates back to 2006 and the PowerShell v2 that is bundled with Windows 7 and Windows Server 2008 R2, and also mysteriously released for down level clients such as Windows Vista and XP (under vaguely named <a href="http://support.microsoft.com/kb/968929">Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0</a>). </p>
<p>An easy of distinguishing both versions is to look for a PowerShell variable called <strong>$psversiontable</strong>. If it is not defined, then you are running v1. If it is there, you have v2. You can also look at a registry key to differentiate between v1 and v2: <em>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine\PowerShellVersion</em>. </p>
<p>Note that if PowerShell was installed as an update package you may not find it under installed software. You may have to look at the update packages. Also note that PowerShell v2 can be installed over v1 without having to uninstall v1 first. If you were running any CTP versions than the install may make you find and manually uninstall v1 first.  </p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/03/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/03/image_thumb.png" width="796" height="241"/></a></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%2F201003%2Fpowershell-whats-my-powershell-version%2F&amp;linkname=PowerShell%20%3A%20What%26rsquo%3Bs%20my%20PowerShell%20version%20%3F"><img src="http://www.shariqsheikh.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/201003/powershell-whats-my-powershell-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell : How do I fix displayName attribute for all users in Active Directory ?</title>
		<link>http://www.shariqsheikh.com/blog/index.php/201002/powershell-how-do-i-fix-displayname-attribute-for-all-users-in-active-directory/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/201002/powershell-how-do-i-fix-displayname-attribute-for-all-users-in-active-directory/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 22:16:25 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[One-liner]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/201002/powershell-how-do-i-fix-displayname-attribute-for-all-users-in-active-directory/</guid>
		<description><![CDATA[For small shops that do not leverage automated provisioning tools, they face challenge in keeping the attributes for Users and other objects in AD standardized. For similar situation, recently I was asked from Access Control team if there is an easy way to fix the displayName attribute for all users or to fill in the [...]]]></description>
			<content:encoded><![CDATA[<p>For small shops that do not leverage automated provisioning tools, they face challenge in keeping the attributes for Users and other objects in AD standardized. For similar situation, recently I was asked from Access Control team if there is an easy way to fix the displayName attribute for all users or to fill in the display name where its missing based on the Users’ first and last name. The answer is a simple PowerShell one-liner using Quest Cmdlets.</p>
<p>Using <strong><em>Get-QADUser</em></strong> cmdlet, you can define the location of all your users using the –searchlevel parameter or you can sweep the whole directory for all user accounts. And then pipe the results to the <em>foreach</em> and use <em><strong>Set-QADuser</strong></em> to fix the display names (in this example) based on the users’ first and last name</p>
<div id="codeSnippetWrapper">
<pre class="csharpcode">Get-QADUser mydomain.int/users -sl 0 | <span class="kwrd">foreach</span> {Set-QADUser $_ -DisplayName (<span class="str">"{0} {1}"</span> -f $_.firstname,$_.lastname)}</pre>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
<p><!-- .csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
</div>
<p>The –sl 0 parameter defines the limit of users to 0.</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-fix-displayname-attribute-for-all-users-in-active-directory%2F&amp;linkname=PowerShell%20%3A%20How%20do%20I%20fix%20displayName%20attribute%20for%20all%20users%20in%20Active%20Directory%20%3F"><img src="http://www.shariqsheikh.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/201002/powershell-how-do-i-fix-displayname-attribute-for-all-users-in-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 partition.
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>
<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"><img src="http://www.shariqsheikh.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></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="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/image_thumb.png" border="0" alt="image" 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-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="moz-screenshot-5" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/mozscreenshot5_thumb.jpg" border="0" alt="moz-screenshot-5" 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-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="moz-screenshot-6" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/mozscreenshot6_thumb.jpg" border="0" alt="moz-screenshot-6" 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-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="moz-screenshot-7" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/mozscreenshot7_thumb.jpg" border="0" alt="moz-screenshot-7" 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>
<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"><img src="http://www.shariqsheikh.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></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>Time Synchronization for Virtualized DCs</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200912/time-synchronization-for-virtualized-dcs/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200912/time-synchronization-for-virtualized-dcs/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 21:48:03 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Hyper-V]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/200912/time-synchronization-for-virtualized-dcs/</guid>
		<description><![CDATA[As usual a good conversation spurred on ActiveDir on a much discussed scenario of virtualizing your DCs while be varied of the known pitfalls. While virtualized DCs are fully supported on either competing virtualization solution by Microsoft, one known subject I would like to highlight here is the proper time synchronization. You must make sure [...]]]></description>
			<content:encoded><![CDATA[<p>As usual a good conversation spurred on ActiveDir on a much discussed scenario of virtualizing your DCs while be varied of the known pitfalls. While virtualized DCs are fully supported on either competing virtualization solution by Microsoft, one known subject I would like to highlight here is the proper time synchronization. You must make sure that your PDCe gets its time from an external time source and other DCs follow the PDCe. All DCs (including PDCe) must not sync their time with the virtualization host, whether its VMware ESX or that of Hyper-V. It was discussed how by default the VMware’s VM settting does not have the time synchronization enabled by default, and my brief look at the Hyper-V’s VM suggested that it is. In any case, you must make sure that setting is disabled, thus VM does sync its time with its host.</p>
<p>VMware time setting from the VMware tools within the VM:</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/VMwareTS.png"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="VMwareTS" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/VMwareTS_thumb.png" border="0" alt="VMwareTS" width="383" height="339" /></a></p>
<p>Or under the VM settings from VIC :</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/VMwareTS2.png"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="VMwareTS2" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/VMwareTS2_thumb.png" border="0" alt="VMwareTS2" width="632" height="384" /></a></p>
<p>Hyper-V setting from the VM settings :</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/HyperVTS.png"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="HyperV-TS" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/HyperVTS_thumb.png" border="0" alt="HyperV-TS" width="682" height="363" /></a></p>
<p>A great resource to refer to, to learn how to configure an authoritative time source for your DCs – see this KB <a title="http://support.microsoft.com/kb/816042" href="http://support.microsoft.com/kb/816042">http://support.microsoft.com/kb/816042</a></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%2Ftime-synchronization-for-virtualized-dcs%2F&amp;linkname=Time%20Synchronization%20for%20Virtualized%20DCs"><img src="http://www.shariqsheikh.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200912/time-synchronization-for-virtualized-dcs/feed/</wfw:commentRss>
		<slash:comments>1</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 the [...]]]></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>
<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"><img src="http://www.shariqsheikh.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></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>PowerShell : How many users were created in an office since x number of days ?</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200912/powershell-how-many-users-were-created-in-an-office-since-x-number-of-days/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200912/powershell-how-many-users-were-created-in-an-office-since-x-number-of-days/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 00:12:02 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/200912/powershell-how-many-users-were-created-in-an-office-since-x-number-of-days/</guid>
		<description><![CDATA[A request came in from the Access Control team requesting that they be provided with the users that have been created in a particular office since last 90 days. As usual, PowerShell (with QAD cmdlets) has very simple one liners you can retrieve this information with.

You may also use this to export this data to [...]]]></description>
			<content:encoded><![CDATA[<p>A request came in from the Access Control team requesting that they be provided with the users that have been created in a particular office since last 90 days. As usual, PowerShell (with QAD cmdlets) has very simple one liners you can retrieve this information with.</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/GeUsersCreatedinlast90days.png"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="Ge-UsersCreatedinlast90days" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/12/GeUsersCreatedinlast90days_thumb.png" border="0" alt="Ge-UsersCreatedinlast90days" width="982" height="67" /></a></p>
<p>You may also use this to export this data to a CSV file. Notice that when using the export-csv cmdlet you must choose the ‘select’ and define the attributes that should be exported. Format-Table (aliased above as FT) is used to display the information on the console.</p>
<blockquote><p>GetQADUser-sizelimit 0 | where{$_.whencreated -gt (get-date).adddays(-90)}| select Name,WhenCreated,DN | Export-csv c:\Users90days.csv</p></blockquote>
<p>There is always a couple of ways to accomplish the same task with further fine tuning your query. As you can see that above query would grab all the users in the domain, going by their whenCreated attribute and present you the pertinent users.</p>
<p>You can define the OU to search with the –searchroot parameter.</p>
<blockquote><p>Get-QADUser –Searchroot ‘test.mydomain.int/Users/Chicago/’ | where{$_.whencreated -gt (get-date).adddays(-90)}</p></blockquote>
<p>Alternatively, if you would to like find users account that have been modified since x number of days, you can try something like this.</p>
<blockquote><p>$OU = &lt;OU PATH&gt;<br />
Get-QADUser -LastChangedAfter (get-date).adddays(-7) -search $OU -sl 0 | ft name,whenchanged</p></blockquote>
<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%2Fpowershell-how-many-users-were-created-in-an-office-since-x-number-of-days%2F&amp;linkname=PowerShell%20%3A%20How%20many%20users%20were%20created%20in%20an%20office%20since%20x%20number%20of%20days%20%3F"><img src="http://www.shariqsheikh.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200912/powershell-how-many-users-were-created-in-an-office-since-x-number-of-days/feed/</wfw:commentRss>
		<slash:comments>1</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>

		<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 44&#215;24in 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 44&#215;24in 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>
<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"><img src="http://www.shariqsheikh.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></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>Windows 7 Wallpapers</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200910/windows-7-wallpapers/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200910/windows-7-wallpapers/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:51:36 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/200910/windows-7-wallpapers/</guid>
		<description><![CDATA[An off topic post here as I err to sharing uniquely designed Windows 7 wallpapers.

View Full Album

]]></description>
			<content:encoded><![CDATA[<p>An off topic post here as I err to sharing uniquely designed Windows 7 wallpapers.</p>
<div class="wlWriterEditableSmartContent" id="scid:66721397-FF69-4ca6-AEC4-17E6B3208830:5cfad57d-0bf5-4829-a79a-2027580d7951" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"><a style="border:0px" href="http://cid-bfab87530b620fc9.skydrive.live.com/redir.aspx?page=browse&amp;resid=BFAB87530B620FC9!153&amp;ct=photos"><img style="border:0px" alt="View Windows 7 Backgrounds" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/10/InlineRepresentation7073233347bb4a7dbe432ec2db3fa147.jpg" /></a>
<div style="width:433px;text-align:right;" ><a href="http://cid-bfab87530b620fc9.skydrive.live.com/redir.aspx?page=browse&amp;resid=BFAB87530B620FC9!153&amp;ct=photos">View Full Album</a></div>
</div>
<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%2Fwindows-7-wallpapers%2F&amp;linkname=Windows%207%20Wallpapers"><img src="http://www.shariqsheikh.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200910/windows-7-wallpapers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell : How do I find old Trusts ?</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200910/how-to-find-old-trusts-using-powershell/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200910/how-to-find-old-trusts-using-powershell/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 20:25:36 +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/200910/how-to-find-old-trusts-using-powershell/</guid>
		<description><![CDATA[As usual Joe shared a great insight that trusts well-doing can in one way be verified by checking the trust accounts for their last password resets. When trusts are created the accounts for them are by default created under ‘Users’ container, and are named as TrustedDomain$ and just like computer accounts, trusts reset their password [...]]]></description>
			<content:encoded><![CDATA[<p>As usual <a href="http://blog.joeware.net/2009/08/20/1684/" target="_blank">Joe shared a great insight</a> that trusts well-doing can in one way be verified by checking the trust accounts for their last password resets. When trusts are created the accounts for them are by default created under ‘Users’ container, and are named as TrustedDomain$ and just like computer accounts, trusts reset their password every 30 days, and . He showed how to look up the ‘pwdlastset’ attribute using his ADFIND tool. Below I show you the PowerShell way.</p>
<blockquote><p>$old=(get-date).adddays(-30)</p>
<p>Get-QADUser -SearchRoot ‘mydomain.int/users&#8217; -Name &#8220;*$*&#8221; -IncludedProperties pwdlastset | where {$_.pwdlastset –gt $old}</p>
</blockquote>
<p>You may also sort and view the results as below</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/10/image2.png"><img title="image" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="147" alt="image" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2009/10/image_thumb2.png" width="924" border="0"/></a> </p>
<p>Any trusts that have not reset their passwords in last 30 days are probably no longer valid. If you are using <a href="http://www.shariqsheikh.com/blog/index.php/200907/what-is-active-directory-management-gateway-service-admgs/" target="_blank">ADWS</a> on Windows Server 2008 R2, then something like below should suffice, assuming you have already created the $old variable using the same command as above.</p>
<blockquote><p>Get-ADUser -Filter &#8216;Name -like &#8220;*$*&#8221;&#8216; -Properties pwdlastset | where {$_.pwdlastset –gt $old}</p>
</blockquote>
<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%2Fhow-to-find-old-trusts-using-powershell%2F&amp;linkname=PowerShell%20%3A%20How%20do%20I%20find%20old%20Trusts%20%3F"><img src="http://www.shariqsheikh.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200910/how-to-find-old-trusts-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
