Eugene Fridman Posted November 28, 2005 Posted November 28, 2005 I am trying to find a way to locate a specific computer in LDAP and pass it's distinguishedName in to a variable. The problem is, I am not sure which OU the PC is in. The common LDAP path is LDAP://OU=Computers,DC=Company,DC=Corp,DC=Net (fake one) under OU=Computers there couple of dozen OUs, and each one of them has 4-10 OUs, and those are the OUs that contain the computer containers. So the full path for one of the computers would be: LDAP://CN=MyPC0001,OU=IT,OU=Desktops,OU=Computers,DC=Company,DC=Corp,DC=Net (also fake one) Now, I am trying to find a way to locate another PC, lets say CN=MyPC0002. Any ideas? Thank you. Jeka.
GaryFrost Posted November 29, 2005 Posted November 29, 2005 I am trying to find a way to locate a specific computer in LDAP and pass it's distinguishedName in to a variable.The problem is, I am not sure which OU the PC is in.The common LDAP path is LDAP://OU=Computers,DC=Company,DC=Corp,DC=Net (fake one) under OU=Computers there couple of dozen OUs, and each one of them has 4-10 OUs, and those are the OUs that contain the computer containers.So the full path for one of the computers would be:LDAP://CN=MyPC0001,OU=IT,OU=Desktops,OU=Computers,DC=Company,DC=Corp,DC=Net (also fake one)Now, I am trying to find a way to locate another PC, lets say CN=MyPC0002.Any ideas?Thank you.Jeka. Might want to take a look at the Admin Tool in my signature. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now