Solved

What is the syntax to use "Set-SenderFilterConfig -BlockedSenders" with multiple addresses?

Posted on 2013-01-21
7
1,364 Views
Last Modified: 2013-01-21
What is the syntax to use "Set-SenderFilterConfig -BlockedSenders" with multiple addresses?
I tried "Set-SenderFilterConfig -BlockedSenders address, address, address"
0
Comment
Question by:rpizzo
[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
  • 4
  • 3
7 Comments
 
LVL 37

Expert Comment

by:Jamie McKillop
ID: 38801729
Hello,

That is the correct syntax. Are you getting an error?

JJ
0
 

Author Comment

by:rpizzo
ID: 38801758
No, there's no error but when I go back in via the Console and check only the first address is listed.
So if I enter one at a time via Shell they are each listed in the Console, if I enter multiple emails using a "," in the Shell only the first one gets listed in the Console.  It just seems to ignore multiple entries if I use the comma.

?
0
 
LVL 37

Accepted Solution

by:
Jamie McKillop earned 500 total points
ID: 38801770
Try placing quotes around each address.

JJ
0
Office 365 Training for Admins - 7 Day Trial

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.

 

Author Comment

by:rpizzo
ID: 38801868
Tried the quotes, no error but now doesn't even take the first value now.

I have about 300 addresses I'd like to enter and one at a time even via shell would be slow going.
0
 
LVL 37

Expert Comment

by:Jamie McKillop
ID: 38801885
Try a semi-colon between the addresses.

JJ
0
 

Author Comment

by:rpizzo
ID: 38801912
Got it, it's "address","address","address"
but what is happening, everytime you do it via the shell it erases any prior values.  I kept testing with 3 addresses and I kept looking for 4,5,6 to show up and it was actually replacing 1,2,3
So now I'll just do the entire thing as one job, should work.
Thank you
0
 
LVL 37

Expert Comment

by:Jamie McKillop
ID: 38801921
You this format to add or remove individual items:

Set-SenderFilterConfig -BlockedSenders @{Add="<sender1>","<sender2>"...; Remove="<sender1>","<sender2>"...}

JJ
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Suggested Courses

630 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