Forum Discussion
MilevMartin
Mar 21, 2019Copper Contributor
Exchange Online set-transportrule syntax question
Hi Team, I hope you are all doing well, I have created Transport Rule in Exchange with the following parameters: HeaderContainsMessageHeader : From HeaderContainsWords : {Test1, Test2, T...
VasilMichev
Mar 21, 2019MVP
In PowerShell, @() designates a list, thus the example you are using replaces the entire content of the list. if you want to add an element to the list, you have to do it by copying the current value, adding to it, then passing it to the cmdlet.
Generally speaking, in some cases you can use the hash-table notation instead, but it's not supported for this particular parameter.