• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1042
  • Last Modified:

Using power shell with ADSI connector to enumerate user class objects of an ou

Using Powershell and a adsi connector how to you list the user object of an OU.
0
Matt_Bermejo
Asked:
Matt_Bermejo
1 Solution
 
LearnctxEngineerCommented:
To just simply do it, you could just bind to the OU and list the child objects in that OU.

$objOU = [ADSI]"OU=targetou,ou=parentou,dc=test,dc=domain"
$objOU.PsBase.Children

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now