Solved

Get Delivery Restriction Senders (Exchange 2010)

Posted on 2013-01-23
3
2,637 Views
Last Modified: 2013-01-24
-Exchange 2010-
In EMC> Mail Flow Settings> Message Delivery Restrictions> Only senders in the following list

------------
The below mailboxes have rights to send emails to Dynamic DLs and Univerisal DLs.
Is there a script that can locate which DLs the mailboxes have rights to.

Mailboxes:
Corporate Services
Travel Services
Procurement
Real Estate
0
Comment
Question by:GJohn32
[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
3 Comments
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 38811416
You will have to customize it more according to your needs ....

- Rancy
0
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 38811549
Try this script.. Run it in Exchange Management Shell..
$Result = @()
$Users = "Corporate Services","Travel Services","Procurement","Real Estate"
$DynamicGroups = Get-DynamicDistributionGroup -ResultSize Unlimited
$Groups = Get-DistributionGroup -ResultSize Unlimited
foreach ($User in $Users){
$Result += $DynamicGroups | ?{$_.AcceptMessagesOnlyFrom -Match $User} | Select @{n="User";e={$User}},Name,PrimarySmtpAddress,AcceptMessagesOnlyFrom
$Result += $Groups | ?{$_.AcceptMessagesOnlyFrom -Match $User} | Select @{n="User";e={$User}},Name,PrimarySmtpAddress,AcceptMessagesOnlyFrom
}
$Result | Select User,Name,PrimarySmtpAddress,{$_.AcceptMessagesOnlyFrom} | Export-Csv C:\report.csv -NoTypeInformation

Open in new window

0
 
LVL 1

Author Closing Comment

by:GJohn32
ID: 38815402
Thanks for your help Subsun.  I was unable to get the script to work.  Not sure why. The CSV file created but was blank.  But with your script I broke it down and made individual cmds.  Your help was greatly appreciated.

Get-DynamicDistributionGroup -ResultSize Unlimited | Where {$_.AcceptMessagesOnlyFrom -Match "xxx/xxx"} | Select displayname,primarysmtpaddress | Export-CSV C:\xxx.csv


Get-DistributionGroup -ResultSize Unlimited | Where {$_.AcceptMessagesOnlyFrom -Match "xxx\xxx"} | Select displayname,primarysmtpaddress | Export-CSV C:\xxx.csv
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

705 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