Exemplo n.º 1
0
        protected override void InternalProcessRecord()
        {
            TaskLogger.LogEnter();
            string installPath = ConfigurationContext.Setup.InstallPath;

            try
            {
                this.InstallMPAuditLog(installPath);
            }
            catch (InvalidOperationException)
            {
                EventSourceInstaller.UninstallSecurityEventSource("MSExchange Messaging Policies");
                this.InstallMPAuditLog(installPath);
            }
            TaskLogger.LogExit();
        }
Exemplo n.º 2
0
 protected override void InternalProcessRecord()
 {
     TaskLogger.LogEnter();
     EventSourceInstaller.UninstallSecurityEventSource("MSExchange Messaging Policies");
     TaskLogger.LogExit();
 }
Exemplo n.º 3
0
 private static void UnRegisterEventSource()
 {
     EventSourceInstaller.UninstallSecurityEventSource(EventLogName);
 }