1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exporting all OU's/Users from AD into a txt file?

Discussion in 'Scripting & Programming' started by Dubfire, Feb 19, 2010.

  1. Dubfire

    Dubfire Byte Poster

    144
    0
    26
    Good morning People,

    Im looking to create a txt file of all users and what OUs they are in to a txt file.

    Ive used NET VIEW /DOMAIN:DOMAINNAME >VIEW.TXT, but I need a cmd that will give details of users that are nested inside the OUs (OU= location in our case)

    Sure ive come across a cmd that can do this - I was thinking of DSGET or DSQUERY? I think I know this but as its Friday and im definitely in cruise mode my brain is not playing ball today :D

    Any help would be very welcome .
     
    Certifications: N+, 270.
    WIP: 291 then 284 for the MCSA.. ITIL...
  2. craigie

    craigie Terabyte Poster

    3,020
    173
    155
    Mate have you tried AD Manager Plus, it's free for 30 days and is pretty powerful.

    Linky http://www.manageengine.com/products/ad-manager/download.html
     
    Certifications: CCA | CCENT | CCNA | CCNA:S | HP APC | HP ASE | ITILv3 | MCP | MCDST | MCITP: EA | MCTS:Vista | MCTS:Exch '07 | MCSA 2003 | MCSA:M 2003 | MCSA 2008 | MCSE | VCP5-DT | VCP4-DCV | VCP5-DCV | VCAP5-DCA | VCAP5-DCD | VMTSP | VTSP 4 | VTSP 5
  3. MLP

    MLP Kilobyte Poster

    305
    19
    42
    Certifications: HND Computing
    WIP: 70-680, 70-270, 70-290
  4. supernova

    supernova Gigabyte Poster

    1,422
    21
    80
    Vbscript, powershell, ADSI, WMI ... not actually sure about the latter with AD
     
    Last edited: Feb 19, 2010
    Certifications: Loads
    WIP: Lots
  5. volatile

    volatile Nibble Poster

    60
    3
    19
    Certifications: Computer Science Degree, A+
  6. supernova

    supernova Gigabyte Poster

    1,422
    21
    80
    Yeah i know they all can in one form or another.

    (later =WMI)

    I wasnt sure if WMI itself has direct method(s) to query AD. Apparently it does so they all have there own methods as well as been mash'able with each other.
     
    Last edited: Feb 25, 2010
    Certifications: Loads
    WIP: Lots

Share This Page

Loading...