?
Solved

Get Delivery Restriction Senders (Exchange 2010)

Posted on 2013-01-23
3
Medium Priority
?
2,768 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 2000 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦
Suggested Courses
Course of the Month8 days, 6 hours left to enroll

764 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