Jump to content

Save computer's distinguishedName from LDAP.


Recommended Posts

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...