Users' rights on Distribution list
Hello,I would need to know what Ditribution lists a user has writting rights on?I assume I would find out with a power shell command but I cannot find anything.
April 7th, 2009 12:29pm

I guess you like roller coaster ride, here you go... Get all DL including inherited permission Get-DistributionGroup -ResultSize Unlimited | Get-ADPermission | where { ($_.AccessRights -like *WriteProperty*) -and ($_.User -like DomainName\UserName) } | ft -wrap This will skip inherited permission and give list of DL on which user has direct permission. Get-DistributionGroup -ResultSize Unlimited | Get-ADPermission | where { ($_.AccessRights -like *WriteProperty*) -and ($_.User -like DomainName\UserName)-and ($_.IsInherited -eq $false)} | ft -wrap Export to CSV file Get-DistributionGroup -ResultSize Unlimited | Get-ADPermission | where { ($_.AccessRights -like *WriteProperty*) -and ($_.User -like DomainName\UserName)-and ($_.IsInherited -eq $false)}| Select Identity, User, Inherited, AccessRights | Export-CSV test.csv Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
April 7th, 2009 1:02pm

In fact (and sorry for not giving you the information before) I need to get the "AcceptMessagesOnlyFrom" of a specific user for ALL the distribution lists.
April 7th, 2009 1:51pm

No problem, here you go for it... Get-DistributionGroup -ResultSize Unlimited | where {$_.AcceptMessagesOnlyFrom -like "*UserName*"} Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
April 7th, 2009 3:10pm

MANY MANY THANKS to you Amit :-D
April 7th, 2009 3:53pm

You are welcome!!! :)Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
April 7th, 2009 3:56pm

Hi Amit,How would I create a list of all my distribution groups and the AcceptMessagesOnlyFrom users and groups set on the distribution group?I need to create new universal distribution groups for our Exchange 2007 migration, the old ones are mail enabled global security groups.Regards,Raymond
June 3rd, 2009 2:59pm

Get-DistributionGroup -ResultSize Unlimited | Select Name, AcceptMessageOnlyFrom |Export-CSV test.csv Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2009 4:08pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics