agentName = "Seguro processamento agente anexo"; $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachmentProce ...

$agentName = "Seguro processamento agente anexo";                $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.SafeAttachmentProcessingAgentFactory";                $agentAssembly = ($RoleInstallPath + "TransportRoles\agents\SafeAttachmentProcessingAgent\Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.dll");                $agent = get-transportagent-Identity: $agentName;                Se {($agent)                desinstalar-transportagent-Identity: $agentName;                };                instalação-TransportAgent-nome: $agentName - TransportAgentFactory: $agentFactory - AssemblyPath: $agentAssembly;                Se ($agent.enabled- ou! $agent) {enable-transportagent-Identity: $agentName};