Link to home
Start Free TrialLog in
Avatar of Don Coleman
Don ColemanFlag for United States of America

asked on

VB Script that pulls all Usernames from all OU's in Active Directory.

Hello I am looking for a way to pull all users from all OU's in active directory and was wondering if anyone had a VBScript that they would be willing to share.  Any help would be appreciated thanks.
Avatar of McKnife
McKnife
Flag of Germany image

The question will be "what should the output look like?".
A simple batch command "net user" will do when executed at a domain controller.
Avatar of Don Coleman

ASKER

Sorry meant to put that in the question I would like it to output to a txt or a csv file if possible thanks.
no, I mean, is the layout of the output of any importance?
See, for example
net user >%temp%\users.txt
 will produce a textfile with 3 columns.
I would prefer just one column I only need the username but 3 columns will work if not possible to do 1.
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok thanks for the help