Veritas System Recovery 16 Automation - THIS SCRIPTING DOCUMENTATION IS PROVIDED IN CONJUNCTION WITH YOUR LICENSE FOR VERITAS SYSTEM RECOVERY SOFTWARE PRODUCTS, AND MAY BE USED ONLY IN CONJUNCTION WITH THAT SOFTWARE, UNDER THE TERMS OF THE END USER LICENSE AGREEMENT THAT ACCOMPANIED THE SOFTWARE. THIS SCRIPTING DOCUMENTATION IS PROPRIETARY VERITAS PROPERTY. YOU MAY NOT COPY, DISTRIBUTE, LICENSE OR SUBLICENSE THE SCRIPTING DOCUMENTATION.
RemoveAllJobs.ps1 Example Script 

Description: Removes all saved backup image jobs from a computer.
Version: 11.1
View Script
Objects Used
ProtectorAuto Central automation object for accessing VProRecovery functionality.
ImageJob Information used to create volume images.
Remarks

This script permanently removes all saved backup image jobs by connecting to the Veritas System Recovery service on the local computer and removing each saved ImageJob object.

Steps:

  1. Create a new instance of the ProtectorAuto object.
  2. Use the Connect method of the ProtectorAuto object to initiate a connection to the agent on a specific computer. Although this script connects to the agent on the local computer, any computer that has the agent installed can be connected to by providing that computer's name or IP address.
  3. Enumerate the saved backup image jobs, removing each saved job using the RemoveImageJob method. Alternatively, the properties of each job could be displayed or saved for reporting purposes.

Home

Copyright © 2005-2016 Veritas Technologies LLC. All Rights Reserved.