Exchange online: Office 365

Copper Contributor

Hi Team,


Is there a powershell script that i could use to extract all blocked domains from my Office 365 Exchange online?


Appreciate your expert inputs.



5 Replies

Blocked how? By end users, by transport rules, by spam filter policies? 

@VasilMichev Apology , We have blocked some Email addresses and Domains through Connection filtering and I'd like to know if there's a script that i could use to extract those information?

@VasilMichev Sorry i was referring to "Spam Filter"

Here's how to get those:


Get-HostedContentFilterPolicy -Identity 'Default' | fl Blocked*,Allowed*