Solved

List Distribution-Groups and the users that can change them

Posted on 2012-04-10
1
564 Views
Last Modified: 2012-04-16
Hi,

as the title already says, I need to list every distribution-group in our Exchange 2007 environment and the users that are able to change these groups (i.e. add or remove members).

I was able to Google a script that would do this, but it only lists users that have the "WriteMember" and "ReadMember" property and nothing else:
Get-DistributionGroup | Get-ADPermission | ? {$_.Properties -like "member"} | Select Identity,User

Open in new window


However, it does not list users that have either full access or at least write access (via the ADUC console) on a distribution group which I found strange because full/write access includes the "WriteMember" property.
0
Comment
Question by:tfildebrand
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

by:
slidingfox earned 500 total points
ID: 37832928
Give this one a try. Hopefully it'll do what your after.

Get-DistributionGroup |
Get-ADPermission |
Where { ($_.AccessRights -match 'Write') -or ($_.AccessRights -eq 'GenericAll') }

Open in new window

0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
This video discusses moving either the default database or any database to a new volume.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question