We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.

Attention

Starting May 1st, 2018, we will no longer offer the ArchiveOne family of products. This includes all editions of ArchiveOne, ArchiveOne for Files, Max Compression, and Access Security Manager. If you currently hold a maintenance and support contract, you will continue to receive our award-winning support until your contract expires, or until May 1st, 2019, whichever occurs first. The license for ArchiveOne is perpetual; therefore the software may continue to be used independently without any updates or support indefinitely.

Sample Event Script

  • Last updated on

For this example, the event script is called Phase1StartNowEnd.VBS and is located in the Scripts subdirectory of the service installation directory.

Set objArgs = WScript.Arguments
set fso=CreateObject("Scripting.FileSystemObject")
set logfile=fso.OpenTextFile ("C:\MyDir\Policies.txt",8,True)

logfile.WriteLine "Policy completed"
logfile.WriteLine Now
logfile.WriteLine objArgs(0)+ " messages were found"
logfile.WriteLine "The XML results can be found at " + objArgs(1)
logfile.WriteLine

logfile.Close
set logfile=Nothing
set fso=Nothing
set objArgs=Nothing

It will write this form of output to the file "C:\MyDir\Policies.txt":

Policy completed
4/4/2006 10:00:22
7 messages were found
The XML results can be found at \\balin\Addins\
AOnePol\PolicyData\RunOnce\bigarchive$060404100015.csv

 

 

 

Last updated on