$agentName = "Spam Analysis Routing Agent"; $agentFactory = "Microsoft.Exchange.AntiSpam.SpamAnalysis.RoutingAgent.SpamAnalysisRoutingAgentFactory"; $agentAssembly = ($RoleInstallPath + "TransportRoles\agents\Hygiene\Microsoft.Exchange.AntiSpam.SpamAnalysis.RoutingAgent.dll"); $agent = get-transportagent -Identity:$agentName; if ($agent) { uninstall-transportagent -Identity:$agentName; }; install-TransportAgent -Name:$agentName -TransportAgentFactory:$agentFactory -AssemblyPath:$agentAssembly; ## Set priority order to be just before Spam Filter Agent $spamFilterAgent = get-transportagent -Identity:"Spam Filter Agent"; if ($spamFilterAgent) { set-transportagent -Identity:$agentName -Priority:$spamFilterAgent.Priority } ## Enable it back only if it is new or it was in enabled state prior to uninstall if (!$agent -or $agent.enabled) { enable-transportagent -Identity:$agentName };
agentName = "Malware Agent V2"; $agent = get-transportagent -Identity:$agentName; if ($agent) { uninstall-transportagent ...
agentName = "Protocol Filter Agent"; $agent = get-transportagent -Identity:$agentName -TransportService:FrontEnd; if ($agent) ...
agentName = "Safe Attachment Processing Agent"; $agent = get-transportagent -Identity:$agentName; if ($agent) { uninstall-transportagent ...
agentName = "Safe Attachment Processing Agent"; $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachmentProces ...
agentName = "Spam Analysis Routing Agent"; $agentFactory = "Microsoft.Exchange.AntiSpam.SpamAnalysis.RoutingAgent.SpamAnalysisRoutingAgentFactory"; ...
agentName = "System Probe Drop Routing Agent"; $agent = get-transportagent -Identity:$agentName; if ($agent) { uninstall-transportagent ...
agentName = "System Probe Drop Routing Agent"; $agentFactory = "Microsoft.Exchange.Transport.Agent.SystemProbeDrop.Syste ...
agentName = "System Probe Drop Smtp Agent"; $agent = get-transportagent -Identity:$agentName; if ($agent) { uninstall-transportagent ...
agentName = "System Probe Drop Smtp Agent"; $agent = get-transportagent -Identity:$agentName; if ($agent) { uninstall-transportagent ...