I need a script of some sort to:
1) List all groups in a domain and their members (output into 1 single report ideally csv/xlsx)
2) List all users in a domain and include the following (username, account status (i.e. disabled or not), accurate last login date. Again output to csv or similar.
Any pointers most welcome. If any of the scripts require additioanl software on the windows 7 PC please detail that in your reply.