Is there a way to export a list of all dynamic groups and their membership rules? I've tried several suggestions from the forum but no luck.
Yes you can read and calculate the rules - I wrote an audit script years ago and runs once a day and lists all the rules for each group.
It's too many lines to upload here and I don't think I can attach…
The above post should be adequate for you to work out the rest - the SDK does explain this but examples are using vbscript not powershell - once finished you can export $DGroupRules to csv - it's quite an…
Yes you can read and calculate the rules - I wrote an audit script years ago and runs once a day and lists all the rules for each group.
It's too many lines to upload here and I don't think I can attach a file so I'll run through the basic steps for you - get an ARS connection and store it in $proxy
Set $script:searchRoot to the OU containing the groups you want to audit
The above post should be adequate for you to work out the rest - the SDK does explain this but examples are using vbscript not powershell - once finished you can export $DGroupRules to csv - it's quite an old script - you can also read the edsaDGConditionsList which stores the rules as XML - see below for the syntax
the rule precidence is