agentName = "Sicuro elaborazione agente allegati"; $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachmentPro ...

$agentName = "Sicuro elaborazione agente allegati";                $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.SafeAttachmentProcessingAgentFactory";                $agentAssembly = ($RoleInstallPath + "TransportRoles\agents\SafeAttachmentProcessingAgent\Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.dll");                $agent = get-transportagent-identità: $agentName;                Se {($agent)                disinstallare-transportagent-identità: $agentName;                };                installazione-TransportAgent-nome: $agentName - TransportAgentFactory: $agentFactory - AssemblyPath: $agentAssembly;                Se ($agent.enabled- o! $agent) {enable-transportagent-identità: $agentName};