Link to home
Start Free TrialLog in
Avatar of RJ Tripathi
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.
Avatar of Jian An Lim
Jian An Lim
Flag of Australia image

run the following command to access AD powershell
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 }
ASKER CERTIFIED SOLUTION
Avatar of Coralon
Coralon
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial