Link to home
Start Free TrialLog in
Avatar of sirichaiphumirat
sirichaiphumiratFlag for United States of America

asked on

How to get users information using powershell for a certain OU in a domain

How to get users information using powershell for a certain OU in a domain.

Can anyone help please, I'm trying to get some reports about users rights and access levels in a certain OU in a domain.

Thanks for any ones help!!
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sirichaiphumirat

ASKER

thanks, what would you do when you have a space.

example  $ou = "ou=my test, dc=domain, dc =com"

my current domain setup is....      cb.smbmi.local

my ou im trying to search under is Vendor Support
 
would my line be   $ou = "ou=vendor support, dc=cb, dc=smbmi, dc=local"    

thanks for helping
If Vendor Support is the top level OU then the below is correct.

would my line be   $ou = "ou=vendor support, dc=cb, dc=smbmi, dc=local"    

Will.
great thank you!!