Thread: Quest AD help
View Single Post
Old 09-11-2007   #2 (permalink)
Bob Landau


 
 

RE: Quest AD help

I never heard of the Quest Directory Service but since it speaks LDAP the
following should get you in the right directory. In your case you'll need to
change the ADSI moniker to your name space as well as the filter


## Access the AD using the underlying DirectoryServices .Net class
## this allows you to do everything about including to enumerate
## the container you're in much like DIR does.
##
##
http://msdn2.microsoft.com/en-us/lib...rs(vs.71).aspx
##
$root = 'LDAP://OU=Enterprise, OU=NextGen DC=Continuum, DC=local'
$searcher = new-object System.DirectoryServices.DirectorySearcher($root)
$searcher.filter = "(&(objectClass=user)(cn=*Picard)"
$searcher.findall() | % {$_.path}



"Ian_1" wrote:
Quote:

> Looking for the Quest PS code to query a group in AD
> (LDAP://cn=accountants,ou=city,ou=com) and pull first name, last name,
> display, and email address. Im looking while this is posted, just any help
> while Im under a deadline would be greatly appreciated. Thank!
My System SpecsSystem Spec