Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
zman md -b 2000-1-1 -e 2008-7-1
'8/oct/08
'delete messages from zcm older than 90 days
'start date hard coded at 1 Jan 2000
'end date 90 days prior to current Date
' so message 90 days and older will be deleted from ZONE
'wscript echo line is for testing uncomment the line and comment the oShell line
' the oShell lines runs the zman commands
Option Explicit
Dim DateRaw,startDate,endDate,oShell, adminUser, adminPWD
Set oShell = CreateObject("WScript.Shell")
adminUser="Administrator"
adminPWD="n0v3ll"
DateRaw = Dateadd("d",-90,Date())
endDate = Year(DateRaw) & "-" & Month(DateRaw) & "-" & Day(DateRaw)
startDate = "2000-01-01"
'WScript.Echo "zman md -b " & startDate & " -e " & endDate
oShell.Run "zman asc " & adminUser & " -P " & adminPWD
WScript.Sleep 15000 ' wait 15 seconds to allow zman asc to finish
oShell.run "zman md -b " & startDate & " -e " & endDate
WScript.Sleep 15000 'wait 15 seconds to allow zman md to finish
oShell.Run "zman acc"