Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding User's DN

Status
Not open for further replies.

pt2huynh

Programmer
Feb 20, 2004
12
CA
Hi all,

I would like to find a DN (eg.

CN=Tracy Ollivierre,OU=BTI Users,OU=Corporate,DC=BTICanada,DC=ads)

for an AD user and have just the part "OU=BTI Users,OU=Corporate,DC=BTICanada,DC=ads" put into a variable, say USRLocation.

I have users that are in different OUs and at different levels of OUs.

I need this location so that I can apply Exchange quota to my users.



Thanks in advance.
 
sorry, I forgot to mention, I'd like to use vbscript to do the above. Thanks again.
 
This is the VB forum not the VBS forum. I would suggest posting in the VBS forum forum329. Be prepared to show what you have written thus far.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top