Is there anyway in powershell to run the following 2 reports:
- all AD groups in a domain and their membership (users/groups) - written to CSV
- all AD users in a domain (including username, status (i.e. enabled/disabled), last login, last login timestamp, does password expire, password last set time - written to csv?
Can anyone give any pointers? I'd prefer to use powershell without the need to install any additional software on the machine.