RJ Tripathi
asked on
Powershell Script Exporting All Group Rights and Group membership Information at the domain level
As part of an audit request, we are trying to generate a listing which shows all of group on the domain and the user rights for each group. I was hoping that someone in the forum would be able to assist me as I limited experience in Powershell. Any advice would be appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
import-module activedirectory
to get all groups on domain
get-adgroup -filter *
to get member of each group and export to csv file
$groups=get-adgroup -filter *
foreach ($group in $groups) { get-adgroupmember $group -recursive | export-csv c:\temp\$($group.name).csv