Solved

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

Posted on 2013-01-21
7
1,290 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
Does Powershell have you tied up in knots?

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Read this checklist to learn more about the 15 things you should never include in an email signature.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 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