Solved

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

Posted on 2013-01-21
7
1,272 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
  • 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AD CONNECT:  Installing AD FS without AD CONNECT (or not)? 4 40
Office 365 cutover migration questions 2 30
ACTIVE DIRECTORY 18 43
Exchange 2007 3 29
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
To show how to create a transport rule 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 >> Rules tab.:  To cr…
This video discusses moving either the default database or any database to a new volume.

815 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now