You can start a policy using a script. For example, after a backup has been completed and the backup software allows for starting a script upon completion.
- On the Archive server, browse to the SDK folder in the installation directory, by default: C:\Program Files (x86)\C2C Systems\ArchiveOne
- If the NLog.dll file is not present, copy the file from C:\Program Files (x86)\C2C Systems\ArchiveOne\WebSupport into the folder C:\Program Files (x86)\C2C Systems\ArchiveOne\SDK
- Create a new text file and rename it MyScript.vbs.
Open the .vbs file in Notepad, and add the following lines to the contents:
Dim polman
Set polman=CreateObject("C2CSystems.ArchiveOne.Policy.PolicyManager")
polman.StartPolicy("<mypolicyname>")
where <mypolicyname> is the name of the Policy you wish to run.- Save and close the file.
To run the script, open a command prompt and type:
C:\Windows\SysWOW64\CScript <FolderPath\script.vbs>
where <FolderPath\script.vbs> is the location and name of the VBS script you have created, e.g. C:\MyScripts\ScheduledPolicy.vbsTo verify the script has successfully started the specified policy, open the ArchiveOne Admin console.
Right click the Policy node, and click View Status. Verify the policy status displays as running.
If the test is successful, you can schedule the VBS file to run via Task Scheduler or through your backup software.