Powershell & cmdlet - In a Nutshell - Part 9 - Modifying Transport Agent using Set-TransportAgent cmdlet (Exchange Management Shell)
Modifying Exchange Transport Agent
For administer transport agents, we must use the Set-TransportAgent cmdlet (Exchange Management Shell). For its details syntax and parameters, please refer here.
The following example shows how the priority of a sample agent for Exchange agent would be modified. You can use the Exchange Management Shell to modify the priority of an existing transport agent by using,
Set-TransportAgent "Sample Agent for Exchange" -Priority 2
Note:
To run the Set-TransportAgent cmdlet on a computer that has the Edge Transport server role installed.
You must be a member of the local Administrators group on that computer.
To run the Set-TransportAgent cmdlet, the account you use must be delegated to: Exchange Server Administrator role and local Administrators group for the target server.