×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Export blocked senders list

Export blocked senders list

Export blocked senders list

(OP)
This is driving me nuts because I know I've done it before but can't find the how-to again.  All I want to do is export my list of Blocked Senders (get-senderfilterconfig) to a txt or csv file.

Can someone please point me in the right direction?

Thanks!

RE: Export blocked senders list

If you're looking to grab just one parameter in the Get-SenderFilterConfig, you can filter it by using something like
Get-SenderFilterConfig | Select BlockedSenders | Export-CSV c:\config.csv   

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
http://www.ucblogs.net/blogs/exchange/
 

RE: Export blocked senders list

(OP)
Thanks sniper, but that only gives me the short version of the command output.  I could have swore I did this once before and got the full list of the Blocked Senders we have configured (it's alot).

RE: Export blocked senders list

(OP)
Get-SenderFilterConfig | Select BlockedSenders | Export-CSV c:\config.csv

That just gives me this in the output:

#TYPE Selected.Microsoft.Exchange.Data.Directory.SystemConfiguration.SenderFilterConfig
"BlockedSenders"
"Microsoft.Exchange.Data.MultiValuedProperty`1[Microsoft.Exchange.Data.SmtpAddress]"

RE: Export blocked senders list

Ah - my bad on that
Get-SenderFilterConfig | Select BlockedSenders | Out-File c:\config.txt

would give you the info in a text file. Depends on what you're intending on doing with it to determine if that format is valid.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
http://www.ucblogs.net/blogs/exchange/
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close