Back Up and Clear an Event Log

Backs up and clears the Application event log.

 
 
 
 
 
4.5 Star
(4)
Add to favorites
8/10/2009
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Backup and Clear Event logs on W2K3
    1 Posts | Last post November 05, 2012
    • I am using the Backup and Clear Event logs script on W2K8 Server. I am trying to use the same script on W2K3 and for some reason the script will create the folder I specify; however, it will not populate the folder with the event logs as it does on W2K8. Has anyone seen this issue?
  • How backup and clear the SECURITY event log
    5 Posts | Last post November 15, 2011
    • Hi,
      Your code works fine with System and Application event log, but not works with the Security.
      Do you know why?
      Best regards and thanks
      
    • I had the same problem, I finally found some one that gave me this.
      Basically just add Security into the impersonation-level. 
      
      ####################################################
      dtmThisDay = Day(Date)
      dtmThisMonth = Month(Date)
      dtmThisYear = Year(Date)
      
      strBackupName = dtmThisYear 
    • Set objWMIService = GetObject("winmgmts:" _
          
    • impersonationLevel=impersonate,(Backup, security)
      
      3rd time a charm
    • cmghoughton, thanks for troubleshooting this!