<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Managing Active Directory with Windows PowerShell</title>
	<atom:link href="http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.powershellpro.com</link>
	<description>Sharing the Experience</description>
	<lastBuildDate>Mon, 06 Sep 2010 23:05:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: christopher</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/comment-page-1/#comment-492</link>
		<dc:creator>christopher</dc:creator>
		<pubDate>Fri, 04 Jun 2010 22:13:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/#comment-492</guid>
		<description>how would you change password expired to 180 days???

$objUser = [ADSI]“LDAP://CN=$,OU=$,OU=Users,DC=$,DC=$”
$objUser.put(”userAccountControl”, 8388608)
$objUser.SetInfo(180 days)

would this change all AD users to 180days for expired???</description>
		<content:encoded><![CDATA[<p>how would you change password expired to 180 days???</p>
<p>$objUser = [ADSI]“LDAP://CN=$,OU=$,OU=Users,DC=$,DC=$”<br />
$objUser.put(”userAccountControl”, 8388608)<br />
$objUser.SetInfo(180 days)</p>
<p>would this change all AD users to 180days for expired???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hinek</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/comment-page-1/#comment-446</link>
		<dc:creator>Hinek</dc:creator>
		<pubDate>Wed, 24 Feb 2010 13:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/#comment-446</guid>
		<description>@Anthony: Just pipe your results to the Export-CSV CmdLet, like this:

$results &#124; Export-CSV myexportfile.csv</description>
		<content:encoded><![CDATA[<p>@Anthony: Just pipe your results to the Export-CSV CmdLet, like this:</p>
<p>$results | Export-CSV myexportfile.csv</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/comment-page-1/#comment-442</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Fri, 05 Feb 2010 01:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/#comment-442</guid>
		<description>This is a great series but I am stuck on detail that is killing me.  

I want to create a CSV file from output of my search.  If I use your search as an example, I feel like I should be able pipe $results into a series of commandlets and get a nice csv but I cannot get it to work.  Any pointers?</description>
		<content:encoded><![CDATA[<p>This is a great series but I am stuck on detail that is killing me.  </p>
<p>I want to create a CSV file from output of my search.  If I use your search as an example, I feel like I should be able pipe $results into a series of commandlets and get a nice csv but I cannot get it to work.  Any pointers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quentin</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/comment-page-1/#comment-375</link>
		<dc:creator>Quentin</dc:creator>
		<pubDate>Thu, 16 Jul 2009 00:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/#comment-375</guid>
		<description>Thanks for the great series.

Did the promised Advanced Tutorials ever eventuate?</description>
		<content:encoded><![CDATA[<p>Thanks for the great series.</p>
<p>Did the promised Advanced Tutorials ever eventuate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Pool</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/comment-page-1/#comment-340</link>
		<dc:creator>Joe Pool</dc:creator>
		<pubDate>Mon, 18 May 2009 22:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/#comment-340</guid>
		<description>I can currently authenticate a person using their user ID and password, but I only know the person&#039;s Full Name.

Can I authenticate using their Full Name and password?

Or, how can I query for their user ID?</description>
		<content:encoded><![CDATA[<p>I can currently authenticate a person using their user ID and password, but I only know the person&#8217;s Full Name.</p>
<p>Can I authenticate using their Full Name and password?</p>
<p>Or, how can I query for their user ID?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan T. Hilton</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/comment-page-1/#comment-240</link>
		<dc:creator>Ryan T. Hilton</dc:creator>
		<pubDate>Mon, 27 Oct 2008 22:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/#comment-240</guid>
		<description>This would work for GaryM&#039;s question:

$Search = New-Object DirectoryServices.DirectorySearcher([ADSI]“”)
$Search.filter = “(&amp;(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536))”
$Search.PageSize = 1000
[void]$Search.PropertiesToLoad.Add(&quot;cn&quot;);
[void]$Search.PropertiesToLoad.Add(&quot;distinguishedname&quot;);

$results = $Search.Findall()
$results &#124; select @{e={$_.properties.cn};n=&#039;name&#039;},@{e={$_.properties.distinguishedname};n=&#039;distinguishedname&#039;}</description>
		<content:encoded><![CDATA[<p>This would work for GaryM&#8217;s question:</p>
<p>$Search = New-Object DirectoryServices.DirectorySearcher([ADSI]“”)<br />
$Search.filter = “(&amp;(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536))”<br />
$Search.PageSize = 1000<br />
[void]$Search.PropertiesToLoad.Add(&#8220;cn&#8221;);<br />
[void]$Search.PropertiesToLoad.Add(&#8220;distinguishedname&#8221;);</p>
<p>$results = $Search.Findall()<br />
$results | select @{e={$_.properties.cn};n=&#8217;name&#8217;},@{e={$_.properties.distinguishedname};n=&#8217;distinguishedname&#8217;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan T. Hilton</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/comment-page-1/#comment-239</link>
		<dc:creator>Ryan T. Hilton</dc:creator>
		<pubDate>Mon, 27 Oct 2008 22:13:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/#comment-239</guid>
		<description>GaryM,
I know that this does not answer your question, but from my experience your query would require 1001 connections to the DC to perform the lookups. Once to perform the search and 1000 times to retrieve the DirectoryEntry of each user. You would be better off using the $Search.PropertiesToLoad.Add method to specify &#039;cn&#039; and &#039;distinguishedname&#039;.

You could then use $User = $result.Properties followed by $User.cn, $User.distinguishedname

As your PageSize grows this can cause some huge overhead.</description>
		<content:encoded><![CDATA[<p>GaryM,<br />
I know that this does not answer your question, but from my experience your query would require 1001 connections to the DC to perform the lookups. Once to perform the search and 1000 times to retrieve the DirectoryEntry of each user. You would be better off using the $Search.PropertiesToLoad.Add method to specify &#8216;cn&#8217; and &#8216;distinguishedname&#8217;.</p>
<p>You could then use $User = $result.Properties followed by $User.cn, $User.distinguishedname</p>
<p>As your PageSize grows this can cause some huge overhead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Norman</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/comment-page-1/#comment-157</link>
		<dc:creator>Norman</dc:creator>
		<pubDate>Thu, 17 Jul 2008 15:14:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/#comment-157</guid>
		<description>Jesse-
I&#039;m confused.  In a reply above, you say &quot;By using [ADSI] you are telling PowerShell to use the ADSI provider, which is required…&quot; but at the top of this tutorial, &quot;LDAP&quot; is described as &quot;an ADSI provider.&quot;  So is ADSI a provider, or LDAP, or is it both in a two-level arrangement?</description>
		<content:encoded><![CDATA[<p>Jesse-<br />
I&#8217;m confused.  In a reply above, you say &#8220;By using [ADSI] you are telling PowerShell to use the ADSI provider, which is required…&#8221; but at the top of this tutorial, &#8220;LDAP&#8221; is described as &#8220;an ADSI provider.&#8221;  So is ADSI a provider, or LDAP, or is it both in a two-level arrangement?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GaryM</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/comment-page-1/#comment-148</link>
		<dc:creator>GaryM</dc:creator>
		<pubDate>Thu, 03 Jul 2008 08:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/#comment-148</guid>
		<description>Jesse,

I have got the script below which outputs the two values to the screen, how can I get this to output in columns?  I have tried numerous attempts with format-table without success.

$Search = New-Object DirectoryServices.DirectorySearcher([ADSI]&quot;&quot;)
$Search.filter = &quot;(&amp;(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536))&quot;
$Search.PageSize = 1000
$results = $Search.Findall() 

Foreach($result in $results){
$User = $result.GetDirectoryEntry() 
$user.cn,$user.distinguishedname 
}</description>
		<content:encoded><![CDATA[<p>Jesse,</p>
<p>I have got the script below which outputs the two values to the screen, how can I get this to output in columns?  I have tried numerous attempts with format-table without success.</p>
<p>$Search = New-Object DirectoryServices.DirectorySearcher([ADSI]&#8220;&#8221;)<br />
$Search.filter = &#8220;(&amp;(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536))&#8221;<br />
$Search.PageSize = 1000<br />
$results = $Search.Findall() </p>
<p>Foreach($result in $results){<br />
$User = $result.GetDirectoryEntry()<br />
$user.cn,$user.distinguishedname<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Hamrick</title>
		<link>http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/comment-page-1/#comment-146</link>
		<dc:creator>Jesse Hamrick</dc:creator>
		<pubDate>Tue, 01 Jul 2008 15:51:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-active-directory/#comment-146</guid>
		<description>Also, Computer and Users are not OUs but Containers (That didn&#039;t hit me at the time of my reply...). Use the following when binding:
CN=Users,DC=uug,DC=vmc,DC=cc
-and-
CN=Computers...

You should be able to enumerate these containers.</description>
		<content:encoded><![CDATA[<p>Also, Computer and Users are not OUs but Containers (That didn&#8217;t hit me at the time of my reply&#8230;). Use the following when binding:<br />
CN=Users,DC=uug,DC=vmc,DC=cc<br />
-and-<br />
CN=Computers&#8230;</p>
<p>You should be able to enumerate these containers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
