How to manually install, uninstall, or temporarily disable the CodeTwo transport agent
Problem:
CodeTwo email signature software for on-prem Exchange processes emails via a dedicated Exchange transport agent. In most cases, the agent is installed automatically together with the program. On rare occasions, however, the installation of the transport agent might fail and you might need to install it manually. This article shows how to manually install the agent, as well as how to uninstall, disable, or re-enable it.
Solution:
- Installing the agent
- Removing the agent
- Disabling the agent
- Enabling a disabled agent
- Checking the installed agents and their statuses
Read this before you proceed
- Before running the commands from the solution below, please ensure that you are logged in as a user who is a direct member of the Organization Management and Domain Admin groups.
- Be aware that after you apply any of the changes below, a restart of MS Exchange Transport Service is required. To do that, open Exchange Management Shell and execute this commandlet:
Restart-Service MSExchangeTransport
How to manually install the CodeTwo transport agent
Open Exchange Management Shell and execute the following PowerShell cmdlets:
- If you use CodeTwo Email Signatures On-prem:
Install-TransportAgent -Name "CodeTwo Exchange Transport Agent" -TransportAgentFactory "Agent.CAgentFactoryRouting" -AssemblyPath "C:\Program Files\CodeTwo\CodeTwo Email Signatures On-prem\CodeTwo.ER.Agent.dll" Enable-TransportAgent -Identity "CodeTwo Exchange Transport Agent"
- If you use CodeTwo Exchange Rules Pro 2.x (discontinued):
Install-TransportAgent -Name "CodeTwo Exchange Rules" -TransportAgentFactory "Agent.CAgentFactoryRouting" -AssemblyPath "C:\Program Files\CodeTwo\CodeTwo Exchange Rules\CodeTwo.ER.Agent.dll" Enable-TransportAgent -Identity "CodeTwo Exchange Rules" - If you use CodeTwo Exchange Rules 2019 1.x (discontinued):
Install-TransportAgent -Name "CodeTwo Exchange Rules" -TransportAgentFactory "Agent.CAgentFactoryRouting" -AssemblyPath "C:\Program Files\CodeTwo\CodeTwo Exchange Rules\CodeTwo.ER.Agent.dll" Enable-TransportAgent -Identity "CodeTwo Exchange Rules" - If you use CodeTwo Exchange Rules 2016 1.x (discontinued):
Install-TransportAgent -Name "CodeTwo Exchange Rules" -TransportAgentFactory "Agent.CAgentFactoryRouting" -AssemblyPath "C:\Program Files\CodeTwo\CodeTwo Exchange Rules\CodeTwo.ER.Agent.dll" Enable-TransportAgent -Identity "CodeTwo Exchange Rules" - If you use CodeTwo Exchange Rules 2013 2.x (discontinued):
Install-TransportAgent -Name "CodeTwo Exchange Rules" -TransportAgentFactory "Agent.CAgentFactoryRouting" -AssemblyPath "C:\Program Files\CodeTwo\CodeTwo Exchange Rules\CodeTwo.ER.Agent.dll" Enable-TransportAgent -Identity "CodeTwo Exchange Rules"
How to manually remove the CodeTwo transport agent
Open Exchange Management Shell and execute the PowerShell cmdlet below (type in the appropriate name of the agent instead of <Transport Agent Name>):
Uninstall-TransportAgent -Identity "<Transport Agent Name>"How to manually disable the CodeTwo transport agent
Open Exchange Management Shell and execute the PowerShell cmdlet below (provide the appropriate name of the agent instead of <Transport Agent Name>):
Disable-TransportAgent -Identity "<Transport Agent Name>"How to manually enable the previously disabled CodeTwo transport agent:
Open Exchange Management Shell and execute the PowerShell Cmdlet below (type in the appropriate name of the agent instead of <Transport Agent Name>):
Enable-TransportAgent -Identity "<Transport Agent Name>"How to check what transport agents are installed and what their statuses are
Open Exchange Management Shell and execute the following PowerShell cmdlet:
Get-TransportAgentCodeTwo transport agent name
The name of the CodeTwo transport agent depends on the product that you use:
- CodeTwo Email Signatures On-prem: CodeTwo Exchange Transport Agent
- CodeTwo Exchange Rules 2013/2016/2019/Pro (discontinued): CodeTwo Exchange Rules
See also:
Microsoft articles on the PowerShell cmdlets described above:
- Install-TransportAgent
- Uninstall-TransportAgent
- Disable-TransportAgent
- Enable-TransportAgent
- Get-TransportAgent
Info
Be aware that the articles above apply to MS Exchange Server 2010 and later, but the usage of cmdlets is almost identical in the previous Exchange versions. To get manuals on the usage of cmdlets that match your Exchange Server version, search the official Microsoft documentation.
CodeTwo resources:
| Related products: | CodeTwo Email Signatures On-prem, CodeTwo Exchange Rules 2007 1.x, 2.x, 3.x, 4.x, CodeTwo Exchange Rules 2010 1.x, 2.x, 3.x, CodeTwo Exchange Rules 2013 1.x, 2.x, CodeTwo Exchange Rules 2016 1.x, CodeTwo Exchange Rules 2019 1.x, CodeTwo Exchange Rules Pro 1.x, 2.x |
| Categories: | How-To, Troubleshooting |
| Last modified: | February 18, 2026 |
| Created: | May 18, 2011 |
| ID: | 176 |



