Hi,
Please try this
$from=(Get-TransportRule "Block Sending emails").From
$from += "someone@company.com"
Set-TransportRule "Block Sending emails" -From $from
To remove it you could try this
$from=[System.Collections.ArrayList](Get-TransportRule "Block Sending emails").From
$from.Remove("someone@company.com")
Set-TransportRule "Block Sending emails" -From $from
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.