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à: $agentName - TransportService: front-end;                    Se {($agent)                        disinstallare-transportagent-identità: $agentName - TransportService: front-end;                    };                    installazione-TransportAgent-nome: $agentName - TransportAgentFactory: $agentFactory - AssemblyPath: $agentAssembly - TransportService: front-end;                    Se ($agent.enabled- o! $agent) {enable-transportagent-identità: $agentName - TransportService: FrontEnd};                    set-TransportAgent-priorità: 2-identità: $agentName - TransportService: front-end;