1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

VBscript AD extract problelm

Discussion in 'Software Development' started by draceplace, Aug 9, 2005.

Thread Status:
Not open for further replies.
Advertisement
  1. draceplace

    draceplace Thread Starter

    Joined:
    Jun 8, 2001
    Messages:
    2,056
    I'm trying to pull computer names from Active Directory. The computers are listed under their various 'functional containers'.
    This line works:
    ("LDAP://cn=computers, dc=axxx, dc=xxx, dc=xxx, dc=xxx")

    This one doesn't:
    ("LDAP://cn=Domain Controllers, dc=xxx, dc=xxx, dc=xxx, dc=xxx")

    I get this message:
    GET_PC_AD_DCs.vbs(31, 1) (null): There is no such object on the server.

    I've tried " and () around Domain Controllers thinking its the space between words thats fouling my script?

    Thanks for reading my post and being part of this Great Resourse!
     
  2. draceplace

    draceplace Thread Starter

    Joined:
    Jun 8, 2001
    Messages:
    2,056
    The problem was 'Domain Controllers' is an ou not a cn.

    I figured as soon as a posted I would figure it out!!
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/388879