Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1463
  • Last Modified:

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"
0
rpizzo
Asked:
rpizzo
  • 4
  • 3
1 Solution
 
Jamie McKillopCommented:
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
 
Jamie McKillopCommented:
Try placing quotes around each address.

JJ
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
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 McKillopCommented:
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 McKillopCommented:
You this format to add or remove individual items:

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

JJ
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now