This script will enumerate user and groups on a server. There a few different usages for the script.
You can enumerate all users or all groups. You can also enumerate just the users in a certain group.
All the information is written to a comma delimited text file, except the enumeration of groups.