How add bulk domains to allow sender domain list in Exchange Online using powershell

Use below pwershell with a csv file with column name “AllowedSenderDomains”

Import-Csv “C:\temp\AllowedDomain.csv” | foreach {Set-HostedContentFilterPolicy -Identity Default -AllowedSenderDomains @{add=$_.AllowedSenderDomains}}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.