How would I get a list of all usernames for a particular domain, and write them into a text file. For example, I'd like to get a list of all users in DOMAIN1, and place them in a text file called text1.txt.
Then I'd like the text file to look like this...
jwilson
abrooks
jsmith
etc..
Thanks
Then I'd like the text file to look like this...
jwilson
abrooks
jsmith
etc..
Thanks