<?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: PowerShell Active Directory Cmdlets in Windows Server 2008 R2</title>
	<atom:link href="http://www.jonathanmedd.net/2009/04/powershell-active-directory-cmdlets-in-windows-server-2008-r2.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jonathanmedd.net/2009/04/powershell-active-directory-cmdlets-in-windows-server-2008-r2.html</link>
	<description>Scripting. Powershell, VMware, Windows, Active Directory &#38; Exchange. All that kind of stuff.....</description>
	<lastBuildDate>Wed, 01 Feb 2012 15:43:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Vernice Hands</title>
		<link>http://www.jonathanmedd.net/2009/04/powershell-active-directory-cmdlets-in-windows-server-2008-r2.html/comment-page-1#comment-30794</link>
		<dc:creator>Vernice Hands</dc:creator>
		<pubDate>Fri, 01 Apr 2011 22:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=79#comment-30794</guid>
		<description>I am not sure where you are getting your info, but good topic. I needs to spend some time learning much more or understanding more. Thanks for fantastic info I was looking for this info for my mission.</description>
		<content:encoded><![CDATA[<p>I am not sure where you are getting your info, but good topic. I needs to spend some time learning much more or understanding more. Thanks for fantastic info I was looking for this info for my mission.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Medd</title>
		<link>http://www.jonathanmedd.net/2009/04/powershell-active-directory-cmdlets-in-windows-server-2008-r2.html/comment-page-1#comment-31</link>
		<dc:creator>Jonathan Medd</dc:creator>
		<pubDate>Mon, 20 Apr 2009 21:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=79#comment-31</guid>
		<description>Hey Paul,

The Get-ADUser cmdlet has an identity parameter however it requires a domain unique value to use, e.g. the samAccountname so something like:

Get-ADUser JSmith

would return one of the John Smith&#039;s in your environment who had JSmith for the samAccountname, but wouldn&#039;t return any other John Smith&#039;s.

Get-ADUser &#039;John Smith&#039;

will fail to return any results (unless it matches a samAccountname value)

From the help these are the possible values for the Identity parameter:

 -Identity []
     Specifies an Active Directory user object by providing one of the following property values:
        Distinguished Name
         Example:  CN=SaraDavis,OU=Europe,CN=Users,DC=corp,DC=contoso,DC=com
       GUID (objectGUID)
         Example: 599c3d2e-f72d-4d20-8a88-030d99495f20
       Security Identifier (objectSid)
         Example: S-1-5-21-3165297888-301567370-576410423-1103
        SAM User Name (sAMUserName)
         Example: saradavis
       User Principal Name (userPrincipalName)
         Example: SaraDavis@corp.contoso.com
        Canonical Name (canonicalName)
         Example: corp.contoso.com/Users/Europe/SaraDavis

However, you can carry out searches like this:

PS C:\Users\Jonathan&gt; Get-ADUser -Filter {Name -like &quot;*John*&quot;}

The results will obviously be dependent on your naming convention.


Surname           : Smith
Name              : John Smith
UserPrincipalName : user1@springfield.local
GivenName         : John
SamAccountName    : user1
ObjectClass       : user
SID               : S-1-5-21-2833069418-2003798848-2456702638-1104
ObjectGUID        : b09a8b44-3239-4d86-ada0-3d85c3865190
DistinguishedName : CN=John Smith,OU=Users,OU=Resources,DC=springfield,DC=local

Surname           : Smith
Name              : John D. Smith
UserPrincipalName : user2@springfield.local
GivenName         : John
SamAccountName    : user2
ObjectClass       : user
SID               : S-1-5-21-2833069418-2003798848-2456702638-1106
ObjectGUID        : e2b810d7-b883-4a76-b7e9-433ad225addd
DistinguishedName : CN=John D. Smith,OU=Users,OU=Resources,DC=springfield,DC=local

Surname           : Smith
Name              : John X. Smith
UserPrincipalName : user3@springfield.local
GivenName         : John
SamAccountName    : user3
ObjectClass       : user
SID               : S-1-5-21-2833069418-2003798848-2456702638-1107
ObjectGUID        : af8ac639-3645-4f86-ab20-966d8a4f1ab6
DistinguishedName : CN=John X. Smith,OU=Users,OU=Resources,DC=springfield,DC=local


Hope that helps</description>
		<content:encoded><![CDATA[<p>Hey Paul,</p>
<p>The Get-ADUser cmdlet has an identity parameter however it requires a domain unique value to use, e.g. the samAccountname so something like:</p>
<p>Get-ADUser JSmith</p>
<p>would return one of the John Smith&#8217;s in your environment who had JSmith for the samAccountname, but wouldn&#8217;t return any other John Smith&#8217;s.</p>
<p>Get-ADUser &#8216;John Smith&#8217;</p>
<p>will fail to return any results (unless it matches a samAccountname value)</p>
<p>From the help these are the possible values for the Identity parameter:</p>
<p> -Identity []<br />
     Specifies an Active Directory user object by providing one of the following property values:<br />
        Distinguished Name<br />
         Example:  CN=SaraDavis,OU=Europe,CN=Users,DC=corp,DC=contoso,DC=com<br />
       GUID (objectGUID)<br />
         Example: 599c3d2e-f72d-4d20-8a88-030d99495f20<br />
       Security Identifier (objectSid)<br />
         Example: S-1-5-21-3165297888-301567370-576410423-1103<br />
        SAM User Name (sAMUserName)<br />
         Example: saradavis<br />
       User Principal Name (userPrincipalName)<br />
         Example: <a href="mailto:SaraDavis@corp.contoso.com">SaraDavis@corp.contoso.com</a><br />
        Canonical Name (canonicalName)<br />
         Example: corp.contoso.com/Users/Europe/SaraDavis</p>
<p>However, you can carry out searches like this:</p>
<p>PS C:\Users\Jonathan&gt; Get-ADUser -Filter {Name -like &#8220;*John*&#8221;}</p>
<p>The results will obviously be dependent on your naming convention.</p>
<p>Surname           : Smith<br />
Name              : John Smith<br />
UserPrincipalName : <a href="mailto:user1@springfield.local">user1@springfield.local</a><br />
GivenName         : John<br />
SamAccountName    : user1<br />
ObjectClass       : user<br />
SID               : S-1-5-21-2833069418-2003798848-2456702638-1104<br />
ObjectGUID        : b09a8b44-3239-4d86-ada0-3d85c3865190<br />
DistinguishedName : CN=John Smith,OU=Users,OU=Resources,DC=springfield,DC=local</p>
<p>Surname           : Smith<br />
Name              : John D. Smith<br />
UserPrincipalName : <a href="mailto:user2@springfield.local">user2@springfield.local</a><br />
GivenName         : John<br />
SamAccountName    : user2<br />
ObjectClass       : user<br />
SID               : S-1-5-21-2833069418-2003798848-2456702638-1106<br />
ObjectGUID        : e2b810d7-b883-4a76-b7e9-433ad225addd<br />
DistinguishedName : CN=John D. Smith,OU=Users,OU=Resources,DC=springfield,DC=local</p>
<p>Surname           : Smith<br />
Name              : John X. Smith<br />
UserPrincipalName : <a href="mailto:user3@springfield.local">user3@springfield.local</a><br />
GivenName         : John<br />
SamAccountName    : user3<br />
ObjectClass       : user<br />
SID               : S-1-5-21-2833069418-2003798848-2456702638-1107<br />
ObjectGUID        : af8ac639-3645-4f86-ab20-966d8a4f1ab6<br />
DistinguishedName : CN=John X. Smith,OU=Users,OU=Resources,DC=springfield,DC=local</p>
<p>Hope that helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Bendall</title>
		<link>http://www.jonathanmedd.net/2009/04/powershell-active-directory-cmdlets-in-windows-server-2008-r2.html/comment-page-1#comment-30</link>
		<dc:creator>Paul Bendall</dc:creator>
		<pubDate>Sat, 18 Apr 2009 09:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonathanmedd.net/?p=79#comment-30</guid>
		<description>Hi Jonathan,

I must have a look at Windows 2008 R2 once I get a VM up.

In the mean time do the new Cmdlets make it easier to manipulate a search than Quest?

For example:

$oUser = get-qaduser -name &#039;Smith, John&#039;

Now I may have zero, one or many John Smiths and using Quest it is not that easy to write a If...else statement based on Count.

Paul</description>
		<content:encoded><![CDATA[<p>Hi Jonathan,</p>
<p>I must have a look at Windows 2008 R2 once I get a VM up.</p>
<p>In the mean time do the new Cmdlets make it easier to manipulate a search than Quest?</p>
<p>For example:</p>
<p>$oUser = get-qaduser -name &#8216;Smith, John&#8217;</p>
<p>Now I may have zero, one or many John Smiths and using Quest it is not that easy to write a If&#8230;else statement based on Count.</p>
<p>Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>

