agentName = "Sicheren Anlage Verarbeitung Agent"; $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachmentProc ...

$agentName = "Sicheren Anlage Verarbeitung Agent";                $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.SafeAttachmentProcessingAgentFactory";                $agentAssembly = ($RoleInstallPath + "TransportRoles\agents\SafeAttachmentProcessingAgent\Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.dll");                $agent = Get-Transportagent-Identität: $agentName;                Wenn {($agent)                Uninstall-Transportagent-Identität: $agentName;                };                Install-TransportAgent-Name: $agentName - TransportAgentFactory: $agentFactory - AssemblyPath: $agentAssembly;                Wenn ($agent.enabled- oder! $agent) {Enable-Transportagent-Identität: $agentName};