Don Coleman
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.
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.
See, for example
net user >%temp%\users.txt
will produce a textfile with 3 columns.
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok thanks for the help
A simple batch command "net user" will do when executed at a domain controller.