Solved

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

Posted on 2013-01-21
7
1,324 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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  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

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

Question has a verified solution.

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

Suggested Solutions

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.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create an Address List 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 Organization >> Ad…
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…

739 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