agentName = "Sans échec pièce jointe traitement Agent" ; $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachm ...

$agentName = "Sans échec pièce jointe traitement Agent" ;                $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.SafeAttachmentProcessingAgentFactory" ;                $agentAssembly = ($RoleInstallPath + "TransportRoles\agents\SafeAttachmentProcessingAgent\Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.dll") ;                $agent = get-transportagent-identité: $agentName ;                Si {($agent)                désinstallation-transportagent-identité: $agentName ;                };                installation-TransportAgent-nom: $agentName - TransportAgentFactory: $agentFactory - AssemblyPath: $agentAssembly ;                Si ($agent.enabled- ou! $agent) {enable-transportagent-identité: $agentName} ;