I need some basic script to list details about all users in a domain and all groups in a domain
for users I just need basic stuff like username, last logon date, password last set, account status (i.e. enabled/disabled/expired)
for groups I just need stuff like group name and all members (to also include nested groups)
I want them written to a CSV, so all users in 1 report, and all groups in another...