Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I need to script adding new email addresses to transport rules via powershell.
I can get the list of email addresses using Get-TransportRule | Select-Object -ExpandProperty From
Which gives me the full list of addresses in this rule as a plain text. How do I script appending more addresses there?
I am writing here to confirm with you any update about this thread now.
If the suggestion below helps, please feel free to accept it as an answer to help more people.
It's an array actually, and you can add to it:
$from = Get-TransportRule "blabla" | select -ExpandProperty From $from += "user1" $from += "user2","user3","user4" $from Set-TransportRule "blabla" -From $from