Windows Vista Forums

VBScript for retrieving user account info. from a domain controller
  1. #1


    edm786 Guest

    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

  2. #2


    Monitor Guest

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


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

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

    > 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

  3. #3


    Richard Mueller [MVP] Guest

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


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

    > 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

  4. #4


    edm786 via WebmasterKB.com Guest

    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:

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

    >>
    >> 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

VBScript for retrieving user account info. from a domain controller problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
domain account user vs local account user in vista pbodavula System Security 1 23 Oct 2009
Solved Change User Account info Graham Musician General Discussion 3 16 Jun 2009
domain user account UAC without domain admin id/password?? tom12010 Vista security 0 28 Jan 2009
retrieving files from deleted user account nikita Vista account administration 1 10 Dec 2008
retrieving domain info KeithK PowerShell 3 08 Sep 2008