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}}
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}}