From the course: PowerShell for Exchange Administration

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Managing transport rules

Managing transport rules

(bright music) - [Anthony] Let's take a look at managing transport rules in Exchange using PowerShell. So the first thing, you either need to be inside of the Exchange Management shell, or have an Exchange PowerShell session open. And in my case I've got an Exchange PowerShell session open. So the first thing is for the New-TransportRule cmdlet, which we'll be using to create new transports rules, it has a lot of parameters. So I encourage you to check out the help. I always have that open while I'm creating new transport rules because it's very helpful. That's why it's called the help. And so the first transport rule we'll be creating here as an example is just a really simple one. So I'm calling it, giving it the name Tag External. I'm using the FromScope parameter, telling it to apply to messages that are from folks that are not in the organization. And then using the PrependSubject parameter to tell it to take the action of prepending the subject with the value that I gave it…

Contents