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

What is the syntax to use "Set-SenderFilterConfig -BlockedSenders" with multiple addresses?
I tried "Set-SenderFilterConfig -BlockedSenders address, address, address"
rpizzoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Jamie McKillopConnect With a Mentor IT ManagerCommented:
Try placing quotes around each address.

JJ
0
 
Jamie McKillopIT ManagerCommented:
Hello,

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

JJ
0
 
rpizzoAuthor Commented:
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
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
rpizzoAuthor Commented:
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
 
Jamie McKillopIT ManagerCommented:
Try a semi-colon between the addresses.

JJ
0
 
rpizzoAuthor Commented:
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
 
Jamie McKillopIT ManagerCommented:
You this format to add or remove individual items:

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

JJ
0
All Courses

From novice to tech pro — start learning today.