I need to write a vbscript that will search AD using a list of computer
names and give me the OU location for each computer. I have been having
a hard time trying to figure this out. Someone please help. Thanks in
advance

RE: Search AD using a list of computer names and get OU location by mark

mark
Wed Mar 15 16:17:28 CST 2006

If you use ADSIedit.msc from the w2k or w2k3(better) support pack you will
see all the attributes you need to compare against you list and give the
results.

If you need help with constructing the script, try the windows 2000
scripting guide.

http://www.microsoft.com/technet/scriptcenter/guide/sagsas_overview.mspx

try a google search for scriptomatic wich will give you some sample scripts
or the MS Script Centre scripting repository.

Now you have the tools, go and play ;-)

Mark


"NsOnLn" wrote:

> I need to write a vbscript that will search AD using a list of computer
> names and give me the OU location for each computer. I have been having
> a hard time trying to figure this out. Someone please help. Thanks in
> advance
>
>

Re: Search AD using a list of computer names and get OU location by maximillianx

maximillianx
Mon Mar 20 11:59:17 CST 2006

Here's something that I use, you could modify it to bring in a text file
list and run it against each entry, then write that info out to a file...

http://uphold2001.brinkster.net/vbshf/forum/forums/thread-view.asp?tid=219&posts=1

Rob


"NsOnLn" <brian@neeseonline.com> wrote in message
news:1142454079.661847.193790@j33g2000cwa.googlegroups.com...
>I need to write a vbscript that will search AD using a list of computer
> names and give me the OU location for each computer. I have been having
> a hard time trying to figure this out. Someone please help. Thanks in
> advance
>