agentName = "안전한 첨부 파일 처리 에이전트"; $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.SafeAttachmentProcessingAgentFactory"; ...

$agentName = "안전한 첨부 파일 처리 에이전트";                $agentFactory = "Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.SafeAttachmentProcessingAgentFactory";                $agentAssembly = ($RoleInstallPath + "TransportRoles\agents\SafeAttachmentProcessingAgent\Microsoft.Exchange.Transport.Agent.SafeAttachmentProcessing.dll");                $agent = get 합니다-Identity: $agentName;                하는 경우 {($agent)                제거 합니다-Identity: $agentName;                };                설치 합니다-이름: TransportAgentFactory $agentName: $agentFactory 있는 디렉터리로: $agentAssembly;                경우 ($agent.enabled-나! $agent) {합니다-Identity: $agentName}.