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-identidad: $agentName - TransportService: FrontEnd;                    Si {($agent)                        desinstalar-transportagent-identidad: $agentName - TransportService: FrontEnd;                    };                    instalación-TransportAgent-nombre: $agentName - TransportAgentFactory: $agentFactory - AssemblyPath: $agentAssembly - TransportService: FrontEnd;                    Si ($agent.enabled- o! $agent) {enable-transportagent-identidad: $agentName - TransportService: FrontEnd};                    Set-TransportAgent-prioridad: 2-identidad: $agentName - TransportService: FrontEnd;