agentName = "TenantAttributionAndInboundConnectorAgent"; $agentFactory = "Microsoft.Exchange.Hygiene.TenantAttribution.T ...

$agentName = "TenantAttributionAndInboundConnectorAgent";                    $agentFactory = "Microsoft.Exchange.Hygiene.TenantAttribution.TenantInboundConnectorAgentFactory";                    $agentAssembly = ($RoleInstallPath + "TransportRoles\agents\Hygiene\Microsoft.Exchange.Hygiene.TenantAttribution.TenantInboundConnectorAgent.dll");                    $agent = Get-Transportagent-Identität: $agentName - TransportService: Front-End;                    Wenn {($agent)                        Uninstall-Transportagent-Identität: $agentName - TransportService: Front-End;                    };                    Install-TransportAgent-Name: $agentName - TransportAgentFactory: AssemblyPath - $agentFactory: $agentAssembly - TransportService: Front-End;                    Wenn ($agent.enabled- oder! $agent) {Enable-Transportagent-Identität: $agentName - TransportService: FrontEnd};                    Set-TransportConfig-Priorität: 2-Identität: $agentName - TransportService: Front-End;