<?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; Active Directory</title>
	<atom:link href="http://www.shariqsheikh.com/blog/index.php/base/active-directory/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>Reviewing few very useful adds in Quest AD Cmdlets v1.4</title>
		<link>http://www.shariqsheikh.com/blog/index.php/201007/reviewing-few-very-useful-adds-in-quest-ad-cmdlets-v1-4/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/201007/reviewing-few-very-useful-adds-in-quest-ad-cmdlets-v1-4/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 16:08:09 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/201007/reviewing-few-very-useful-adds-in-quest-ad-cmdlets-v1-4/</guid>
		<description><![CDATA[Whereas most of newly added cmdlets focus on&#160; PKI and Email Address Management in v1.4, there are a few cmdlets and handful of new parameters that ought to come in very handy with your AD tasks. Below I review a few that I think are some great adds : When you are enumerating a large [...]]]></description>
			<content:encoded><![CDATA[<p>Whereas most of newly added cmdlets focus on&nbsp; PKI and Email Address Management in <a href="http://www.shariqsheikh.com/blog/index.php/201007/quest-ad-cmdlets-a-k-a-active-roles-management-shell-version-1-4-gets-released/">v1.4</a>, there are a few cmdlets and handful of new parameters that ought to come in very handy with your AD tasks. Below I review a few that I think are some great adds :</p>
<p>When you are enumerating a large number of objects in shell (without outputting results into a file), you might just want to have a quick idea of the ‘total’ number of objects meeting the criteria of you query.</p>
<p><strong>Get-QADProgressPolicy</strong></p>
<p>“displays a progress bar for long-running commands”</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/07/progress_bar.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="progress_bar" border="0" alt="progress_bar" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/07/progress_bar_thumb.png" width="904" height="80"/></a></p>
<p>This progress bar overlays (highlights in and out) as your query is running. It also appears when you are performing a count using the measure-object cmdlet or the “.count” switch</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/07/progress_bar2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="progress_bar2" border="0" alt="progress_bar2" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/07/progress_bar2_thumb.png" width="904" height="104"/></a></p>
<p>You can set the progress bar setting and its threshold with</p>
<blockquote><p>Set-QADProgressPolicy -ShowProgress $true -ProgressThreshold 2</p>
</blockquote>
<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; } -->The –activity parameter when relying on the progress bar allows you tag each line of progress with a number so that lengthy process is a bit more obvious with respect to the process to one or more cmdlet’s retrieved results.</p>
<p><span style="text-decoration: underline"><span style="color: #cccccc"><font color="#808040">Some new parameters :</font></span></span></p>
<p>Five new parameters for Get-QADUser</p>
<p><em>ExpiredFor </em></p>
<p><em>Inactive</em></p>
<p><em>InactiveFor</em></p>
<p><em>NotLoggedOnFor</em></p>
<p><em>PasswordNotChangedFor</em></p>
<p>Four new parameters for Get-QADComputer</p>
<p><em>Inactive </em></p>
<p><em>InactiveFor</em></p>
<p><em>NotLoggedOnFor</em></p>
<p><em>PasswordNotChangedFor</em></p>
<p>But what mechanism decides the “inactivity” benchmark to ask cmdlet to retrieve that information ?</p>
<p><em>You do.</em></p>
<p><strong>Get-QADInactiveAccountsPolicy</strong></p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/07/inactivepolicy1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="inactivepolicy1" border="0" alt="inactivepolicy1" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/07/inactivepolicy1_thumb.png" width="904" height="73"/></a></p>
<p>You can change these settings,</p>
<blockquote><div class="csharpcode">Set-QADInactiveAccountsPolicy -AccountExpiredPeriod 0 -AccountNotLoggedOnPeriod 30 –PasswordNotChangedPeriod 120</div>
</blockquote>
<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>
<p>Note : These settings are profile specific so ones you define these thresholds they will stay there until you change those settings again.</p>
<p>The<strong> NotLoggedOnPeriod</strong> is probably based on the LastLogonTimeStamp, but I will check and edit this post if its any different. If it is, remember it may not be accurate and should only be used for estimation. The LastLogonTimeStamp gets updated from the LastLogon (DC specific attribute) based on a 9-14 day swing period.</p>
<p>Also :</p>
<blockquote><p>“This parameter overrides the logon-related inactivity condition of the Inactive or InactiveFor parameter. Thus, if the NotLoggedOnFor value of 60 is supplied in conjunction with the InactiveFor value of 30, the cmdlet searches for accounts that are expired for 30 or more days, or have the password age of 30 or more days, or have not been used to log on for 60 or more days.”</p>
</blockquote>
<p>Previously if you had to use the Get-QADGroupMember cmdlet to retrieve the enabled accounts only, you had to pass the LDAPFilter, now you can use the same –enabled and –disabled parameter as you could with Get-QADUser cmdlet since v1.3.</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/07/groupmemberdisabled.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="groupmemberdisabled" border="0" alt="groupmemberdisabled" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/07/groupmemberdisabled_thumb.png" width="904" height="104"/></a></p>
<p>This and much more. All details can be found <a href="http://wiki.powergui.org/index.php/QAD_cmdlets_reference">here</a>.</p>
<p>The folks who develop these cmdlets and work on adding new parameters do take the feedback very seriously. I have myself asked and gotten couple of requests met. You can do the <a href="http://powergui.org/thread.jspa?threadID=11225&amp;tstart=0">same</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%2F201007%2Freviewing-few-very-useful-adds-in-quest-ad-cmdlets-v1-4%2F&amp;linkname=Reviewing%20few%20very%20useful%20adds%20in%20Quest%20AD%20Cmdlets%20v1.4">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/201007/reviewing-few-very-useful-adds-in-quest-ad-cmdlets-v1-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quest AD Cmdlets a.k.a Active Roles Management Shell version 1.4 gets released</title>
		<link>http://www.shariqsheikh.com/blog/index.php/201007/quest-ad-cmdlets-a-k-a-active-roles-management-shell-version-1-4-gets-released/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/201007/quest-ad-cmdlets-a-k-a-active-roles-management-shell-version-1-4-gets-released/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 21:55:12 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/201007/quest-ad-cmdlets-a-k-a-active-roles-management-shell-version-1-4-gets-released/</guid>
		<description><![CDATA[From version 1.2 with 49 cmdlets, to version 1.3 with 63 cmdlets and now on to version 1.4 that has 32 new cmdlets making it total of 95. Here are the new cmdlets in v1.4 : • Get-QADLocalCertificateStore • New-QADLocalCertificateStore • Remove-QADLocalCertificateStore • Get-QADCertificate • Where-QADCertificate • Add-QADCertificate • Import-QADCertificate • Show-QADCertificate • Edit-QADCertificate • [...]]]></description>
			<content:encoded><![CDATA[<p>From version 1.2 with 49 cmdlets, to version 1.3 with 63 cmdlets and now on to version 1.4 that has 32 new cmdlets making it total of 95.</p>
<p>Here are the new cmdlets in v1.4 :</p>
<p>• Get-QADLocalCertificateStore<br />
• New-QADLocalCertificateStore<br />
• Remove-QADLocalCertificateStore<br />
• Get-QADCertificate<br />
• Where-QADCertificate<br />
• Add-QADCertificate<br />
• Import-QADCertificate<br />
• Show-QADCertificate<br />
• Edit-QADCertificate<br />
• Export-QADCertificate<br />
• Remove-QADCertificate<br />
• Remove-QADPrivateKey<br />
• Get-QADCertificateRevocationList<br />
• Add-QADCertificateRevocationList<br />
• Import-QADCertificateRevocationList<br />
• Export-QADCertificateRevocationList<br />
• Remove-QADCertificateRevocationList<br />
• Get-QADPKIObject<br />
• Publish-QADCertificate<br />
• Unpublish-QADCertificate<br />
• Publish-QADCertificateRevocationList<br />
• Unpublish-QADCertificateRevocationList<br />
• Add-QADProxyAddress<br />
• Set-QADProxyAddress<br />
• Remove-QADProxyAddress<br />
• Clear-QADProxyAddress<br />
• Enable-QADEmailAddressPolicy<br />
• Disable-QADEmailAddressPolicy<br />
• Set-QADProgressPolicy<br />
• Get-QADProgressPolicy<br />
• Set-QADInactiveAccountsPolicy<br />
• Get-QADInactiveAccountsPolicy</p>
<p>With tons of new parameters and bug fixes. All details can be found under ‘ARMS Build History’ text file under the zip file.</p>
<p><a title="http://www.quest.com/powershell/activeroles-server.aspx" href="http://www.quest.com/powershell/activeroles-server.aspx">http://www.quest.com/powershell/activeroles-server.aspx</a></p>
<p>Also Dmitry Sotnikov tweeted regarding the updated cmdlet references wiki :</p>
<p><a title="http://wiki.powergui.org/index.php/QAD_cmdlets_reference" href="http://wiki.powergui.org/index.php/QAD_cmdlets_reference">http://wiki.powergui.org/index.php/QAD_cmdlets_reference</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%2F201007%2Fquest-ad-cmdlets-a-k-a-active-roles-management-shell-version-1-4-gets-released%2F&amp;linkname=Quest%20AD%20Cmdlets%20a.k.a%20Active%20Roles%20Management%20Shell%20version%201.4%20gets%20released">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/201007/quest-ad-cmdlets-a-k-a-active-roles-management-shell-version-1-4-gets-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Active Directory Delegations Report with PowerGUI</title>
		<link>http://www.shariqsheikh.com/blog/index.php/201006/create-active-directory-delegations-report-with-powergui/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/201006/create-active-directory-delegations-report-with-powergui/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 16:30:24 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/201006/creating-active-directory-delegations-report-with-powergui/</guid>
		<description><![CDATA[Often times you need to analyze your existing permissions (delegations) on your AD Objects within your domain/forest, perhaps you have just taken over an administrative role over AD and would like to quickly surface information regarding what group and user accounts have certain rights across the board in a pertinent domain. With PowerGUI and Kirk [...]]]></description>
			<content:encoded><![CDATA[<p>Often times you need to analyze your existing permissions (delegations) on your AD Objects within your domain/forest, perhaps you have just taken over an administrative role over AD and would like to quickly surface information regarding what group and user accounts have certain rights across the board in a pertinent domain. With PowerGUI and Kirk Munro’s “Reporting” PowerPack, you can generate nicely formatted HTML files (that expand and collapse) for each object that has delegated permissions within AD.</p>
<p>1. <a href="http://powergui.org/downloads.jspa">Download PowerGUI 2.1 from here</a></p>
<p>2. <a href="http://powergui.org/entry.jspa?externalID=2423&amp;categoryID=52">Get the Advanced Reporting PowerPack from here</a></p>
<p>3. Launch PowerGUI and import Advanced Reporting PowerPack</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/ImportPowerPack.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="ImportPowerPack" border="0" alt="ImportPowerPack" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/ImportPowerPack_thumb.png" width="644" height="337"/></a></p>
<p>4. Click on the root node, go to New and click on the ‘Script Node’ sub-menu option</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/CreateScriptNode.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="CreateScriptNode" border="0" alt="CreateScriptNode" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/CreateScriptNode_thumb.png" width="644" height="285"/></a></p>
<p>5. Name your script in the Title bar and type the following cmdlet in the body of the script</p>
<div class="csharpcode">
<pre class="alt">Get-QADObject -Type organizationalUnit -SecurityMask dacl | Get-QADPermission</pre>
</div>
<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>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/TypeCmd.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="TypeCmd" border="0" alt="TypeCmd" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/TypeCmd_thumb.png" width="644" height="180"/></a> 6. By hitting OK the report will run. From the Action Pane (right) click on the ‘Create Report’ link, name the report and add the desired attribute you would like to export on the report</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/Report.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Report" border="0" alt="Report" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/Report_thumb.png" width="644" height="252"/></a></p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/IncludeReport.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="IncludeReport" border="0" alt="IncludeReport" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/IncludeReport_thumb.png" width="644" height="271"/></a> 7.&nbsp; Hit OK and and your HTML based report will be saved by default in your Documents\PowerGUI Exports folder.</p>
<p><a href="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/ReportHTML.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="ReportHTML" border="0" alt="ReportHTML" src="http://www.shariqsheikh.com/blog/wp-content/uploads/2010/06/ReportHTML_thumb.png" width="537" height="484"/></a>You can create all sorts of reports from your AD, do any modifications to your scripts, the format how the Report Pack creates the HTML report and how it generates the data. Download PowerGUI and the Reporting PowerPack and start playing with it.</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%2F201006%2Fcreate-active-directory-delegations-report-with-powergui%2F&amp;linkname=Create%20Active%20Directory%20Delegations%20Report%20with%20PowerGUI">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/201006/create-active-directory-delegations-report-with-powergui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell : How to rename Groups in bulk ?</title>
		<link>http://www.shariqsheikh.com/blog/index.php/201005/powershell-how-to-rename-groups-in-bulk/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/201005/powershell-how-to-rename-groups-in-bulk/#comments</comments>
		<pubDate>Tue, 04 May 2010 15:23:17 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/201005/powershell-how-to-rename-groups-in-bulk/</guid>
		<description><![CDATA[Often times there is a need to standardized Groups’ naming convention such as with migrations, when you don’t have a rich migration tool that can conform the names or when you don’t have a AD proxy management tool such as ARS in your normal provisioning process. Using Quest Cmdlets with PowerShell to rename groups is [...]]]></description>
			<content:encoded><![CDATA[<p>Often times there is a need to standardized Groups’ naming convention such as with migrations, when you don’t have a rich migration tool that can conform the names or when you don’t have a AD proxy management tool such as ARS in your normal provisioning process. Using Quest Cmdlets with PowerShell to rename groups is a snap. There are numerous ways you can fit the Cmdlets and different parameters to meet your need. In this post, I show you a few ways I have used to rename groups in bulk.</p>
<p>Following is an example where all (or most of your groups have a company name as prefix and now that the migration has occurred you would like to strip the company name out.</p>
<p>First, lets take a quick inventory to define your scope;</p>
<blockquote><p>Get-QADGroup -Name companyname* -sizelimit 0 | ft name, SamAccountName</p>
</blockquote>
<p>You can also define a specific OU to target a specific location;</p>
<blockquote><p>Get-QADGroup -name companyname* -searchscope <span class="str">&#8220;onelevel&#8221;</span> -searchroot <span class="str">&#8220;ou=Groups,ou=,dc=mydomain,dc=int&#8221;</span> -sizelimit 0</p>
</blockquote>
<p>Note that the ‘companyname’ string is the number of characters i.e 11 is what we are manipulating and stripping out here;</p>
<blockquote><p>Get-QADGroup -name companyname* -searchscope <span class="str">&#8220;onelevel&#8221;</span> -searchroot <span class="str">&#8220;ou=Groups,ou=,dc=mydomain,dc=int&#8221;</span> -sizelimit 0 | Rename-QADObject -newName {$_.name.substring(11)} -whatif | Set-QADGroup -samAccountName {$_.samAccountName.substring(11)} -whatif</p>
</blockquote>
<p></p>
<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; } -->Always use the –whatif parameter to confirm what changes you are about to make before you process the change. If needed, export the results out to a CSV by adding the export-csv cmdlet at the end.&nbsp; Note, in above the piping “|” can be written on the same line, ignore the wrapping due the site layout.</p>
<p>Similarly, you can chose to rename to rename by adding a new name or after you have stripped out the name completely, you can add a new prefix to your groups</p>
<blockquote><p>Get-QADGroup -searchscope <span class="str">&#8220;onelevel&#8221;</span> -searchroot <span class="str">&#8220;ou=Groups,ou=,dc=mydomain,dc=int&#8221;</span> -sizelimit 0 | FOREACH {Rename-QADObject $_ -newName (<span class="str">&#8220;IT-&#8221;</span> + $_.name)} </p>
</blockquote>
<p></p>
<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; } -->Above query will grab all the Groups from the defined path and will add “IT-“ as the prefix to all groups. Make sure to append the –samAccountName command to ensure that rename happens properly.</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%2F201005%2Fpowershell-how-to-rename-groups-in-bulk%2F&amp;linkname=PowerShell%20%3A%20How%20to%20rename%20Groups%20in%20bulk%20%3F">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/201005/powershell-how-to-rename-groups-in-bulk/feed/</wfw:commentRss>
		<slash:comments>2</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>
<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">Share/Bookmark</a> </p>]]></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 [...]]]></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>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>
<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">Share/Bookmark</a> </p>]]></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>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>
<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%2Fhow-to-find-old-trusts-using-powershell%2F&amp;linkname=PowerShell%20%3A%20How%20do%20I%20find%20old%20Trusts%20%3F">Share/Bookmark</a> </p>]]></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>
		<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>
	</channel>
</rss>
