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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting LDAP info

Status
Not open for further replies.

bcoates

Programmer
Feb 21, 2006
29
0
0
US
I have a script that is creating users then adding them to a group inside a OU. If a user already exsists in the domain how can a query AD given just the cn to get the ldap path so i can add the user to the group?

Thanks
 
I tried the first post to no avail i will try the second one shortly. The only issue i see so far is that it is still askin for ou and some dc info that might be missing but ill try some things. Let you know how it goes
 
dm4ever,
I have a windows 2000 domain controller so that script wouldnt work thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top