Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VBScript for retrieving user account info. from a domain controller

Reply
 
Old 09-09-2008   #1 (permalink)
edm786


 
 

VBScript for retrieving user account info. from a domain controller

Hello,

Is there any VBScript available to retrieve completer user name from a AD
domain controller which is running on Windows 2000 Server and then put the
list in an excel file?


Thanks in advance.

edm786.


My System SpecsSystem Spec
Old 09-09-2008   #2 (permalink)
Monitor


 
 

Re: VBScript for retrieving user account info. from a domain controller


"edm786" <u46084@xxxxxx> wrote in message news:89f44b392359b@xxxxxx
Quote:

> Hello,
>
> Is there any VBScript available to retrieve completer [completer?] user
name from a AD
Quote:

> domain controller which is running on Windows 2000 Server and then put the
> list in an excel file?
>
To answer your question: Yes, there is. The command "net user" will tell you
too.


My System SpecsSystem Spec
Old 09-09-2008   #3 (permalink)
Richard Mueller [MVP]


 
 

Re: VBScript for retrieving user account info. from a domain controller


"edm786" <u46084@xxxxxx> wrote in message news:89f44b392359b@xxxxxx
Quote:

> Hello,
>
> Is there any VBScript available to retrieve completer user name from a AD
> domain controller which is running on Windows 2000 Server and then put the
> list in an excel file?
>
>
> Thanks in advance.
>
> edm786.
>
I have an example VBScript program that documents the Distinguished Names of
all users in the domain in an Excel spreadsheet linked here:

http://www.rlmueller.net/Create%20User%20List%203.htm

I also have a program that documents several attributes of all users in a
comma delimited file (that can be read into a spreadsheet) linked here:

http://www.rlmueller.net/DocumentUsers.htm

You can also use Joe Richards' free adfind utility to query AD for
information like this:

http://www.joeware.net/freetools/tools/adfind/index.htm

For a simple list of all user Distinguished Names (DN's), you can also use
the dsquery command line tool. For example:

dsquery user domainroot

This will spit out the DN's of all users in the domain. If you run this at a
command prompt you can redirect the output to a text file, which can be read
into a spreadsheet.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Old 09-10-2008   #4 (permalink)
edm786 via WebmasterKB.com


 
 

Re: VBScript for retrieving user account info. from a domain controller

Thanks Richard, sorry my typing mistakes.
I will give these scripts a try...for sure.

Thanks again,

edm786.

Richard Mueller [MVP] wrote:
Quote:
Quote:

>> Hello,
>>
>[quoted text clipped - 5 lines]
Quote:

>>
>> edm786.
>
>I have an example VBScript program that documents the Distinguished Names of
>all users in the domain in an Excel spreadsheet linked here:
>
>http://www.rlmueller.net/Create%20User%20List%203.htm
>
>I also have a program that documents several attributes of all users in a
>comma delimited file (that can be read into a spreadsheet) linked here:
>
>http://www.rlmueller.net/DocumentUsers.htm
>
>You can also use Joe Richards' free adfind utility to query AD for
>information like this:
>
>http://www.joeware.net/freetools/tools/adfind/index.htm
>
>For a simple list of all user Distinguished Names (DN's), you can also use
>the dsquery command line tool. For example:
>
>dsquery user domainroot
>
>This will spit out the DN's of all users in the domain. If you run this at a
>command prompt you can redirect the output to a text file, which can be read
>into a spreadsheet.
>
--
Message posted via http://www.webmasterkb.com

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Solved Change User Account info General Discussion
domain user account UAC without domain admin id/password?? Vista security
retrieving files from deleted user account Vista account administration
retrieving domain info PowerShell
How Do i setup a domain user account Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46