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

$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 : frontal ;                    Si {($agent)                        désinstallation-transportagent-identité: $agentName - TransportService : frontal ;                    };                    installation-TransportAgent-nom: $agentName - TransportAgentFactory: $agentFactory - AssemblyPath: $agentAssembly - TransportService : frontal ;                    Si ($agent.enabled- ou! $agent) {enable-transportagent-identité: $agentName - TransportService : FrontEnd} ;                    ensemble-TransportAgent-priorité: 2-identité: $agentName - TransportService : frontal ;