Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Search Search
Search for:
Tech Support Guy > > >

VBscript AD extract problelm


(!)

draceplace's Avatar
draceplace   (Dan) draceplace is offline
Computer Specs
Member with 1,851 posts.
THREAD STARTER
 
Join Date: Jun 2001
Location: Conway, Arkansas
09-Aug-2005, 11:56 AM #1
Question Solved: VBscript AD extract problelm
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!

Last edited by draceplace; 09-Aug-2005 at 12:19 PM..
draceplace's Avatar
draceplace   (Dan) draceplace is offline
Computer Specs
Member with 1,851 posts.
THREAD STARTER
 
Join Date: Jun 2001
Location: Conway, Arkansas
09-Aug-2005, 12:21 PM #2
Red face Solved
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

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
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.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑