Veritas Enterprise Vault™ PowerShell Cmdlets

Last Published:
Product(s): Enterprise Vault (12.2)
  1. Introducing the Enterprise Vault PowerShell cmdlets
    1.  
      About the Enterprise Vault Management Shell
    2.  
      Importing modules
    3.  
      Getting Help for Enterprise Vault PowerShell cmdlets
    4.  
      Rules for PowerShell strings
    5. Where to get more information about Enterprise Vault
      1.  
        Enterprise Vault training modules
  2. Archiving: Exchange
    1.  
      Add-EVPstComputer
    2.  
      Add-EVPstFile
    3.  
      Get-EVExchangeMailboxPolicy
    4.  
      New-EVExchangeMailboxPolicy
    5.  
      Remove-EVExchangeFolderPolicy
    6.  
      Remove-EVExchangeMailboxPolicy
    7.  
      Set-EVExchangeMailboxPolicy
  3. Archiving: FSA
    1.  
      Get-EVFSAFileServer
    2.  
      Get-EVFSAFolder
    3.  
      Get-EVFSAVolume
    4.  
      New-EVFSAFileServer
    5.  
      New-EVFSAFolder
    6.  
      New-EVFSAVolume
    7.  
      Remove-EVFSAFileServer
    8.  
      Remove-EVFSAFolder
    9.  
      Remove-EVFSAVolume
    10.  
      Set-EVFSAFileServer
    11.  
      Set-EVFSAFolder
    12.  
      Set-EVFSAVolume
  4. Archiving: Skype for Business
    1.  
      Get-EVSkypeForBusinessTarget
    2.  
      New-EVSkypeForBusinessTarget
    3.  
      Remove-EVSkypeForBusinessTarget
    4.  
      Set-EVSkypeForBusinessTarget
  5. Archiving: SMTP
    1.  
      Get-EVSMTPHoldingFolder
    2.  
      Get-EVSMTPMessageTrackingLogLocation
    3.  
      Get-EVSMTPPolicy
    4.  
      Get-EVSMTPServerSettings
    5.  
      Get-EVSMTPTarget
    6.  
      New-EVSMTPPolicy
    7.  
      New-EVSMTPServerSettings
    8.  
      New-EVSMTPTarget
    9.  
      Remove-EVSMTPPolicy
    10.  
      Remove-EVSMTPTarget
    11.  
      Set-EVSMTPMessageTrackingLogLocation
    12.  
      Set-EVSMTPPolicy
    13.  
      Set-EVSMTPServerSettings
    14.  
      Set-EVSMTPTarget
    15.  
      Sync-EVSMTPServerSettings
  6. Backup
    1.  
      Clear-IndexLocationBackupMode
    2.  
      Clear-VaultStoreBackupMode
    3.  
      Get-IndexLocationBackupMode
    4.  
      Get-VaultStoreBackupMode
    5.  
      Set-IndexLocationBackupMode
    6.  
      Set-VaultStoreBackupMode
  7. Classification
    1.  
      Disable-EVClassification
    2.  
      Get-EVClassificationFCITags
    3.  
      Get-EVClassificationPolicy
    4.  
      Get-EVClassificationStatus
    5.  
      Get-EVClassificationTestMode
    6.  
      Get-EVClassificationVICTags
    7.  
      Import-EVClassificationFCIRules
    8.  
      Initialize-EVClassificationVIC
    9.  
      New-EVClassificationPolicy
    10.  
      Publish-EVClassificationFCIRules
    11.  
      Remove-EVClassificationPolicy
    12.  
      Set-EVClassificationPolicy
    13.  
      Set-EVClassificationTestMode
  8. Databases
    1.  
      Get-EVDatabase
    2.  
      Get-EVDatabaseDetail
    3.  
      Get-EVDatabaseFileInfo
    4.  
      Get-EVStorageDatabase
    5.  
      Set-EVDatabaseDetail
    6.  
      Start-EVDatabaseUpgrade
  9. IMAP access
    1.  
      Get-EVIMAPUsers
    2.  
      Get-EVIMAPUserSettings
    3.  
      Set-EVIMAPServerDisabled
    4.  
      Set-EVIMAPServerEnabled
  10. Indexing
    1.  
      Get-EVIndexLocation
    2.  
      Get-EVMDSStatus
    3.  
      Get-IndexServerForIndexLocation
    4.  
      New-EVMDSBuildTask
    5.  
      Set-IndexMetadataSyncLevel
  11. Records management
    1.  
      Export-EVNARAArchive
    2.  
      Get-EVRecordSettings
  12. Retention plans
    1.  
      Get-EVRetentionPlan
    2.  
      New-EVRetentionPlan
    3.  
      Remove-EVRetentionPlan
    4.  
      Set-EVRetentionPlan
  13. Roles-based administration
    1.  
      Add-EVRBARoleMember
    2.  
      Get-EVRBAAzStoreXml
    3.  
      Get-EVRBARole
    4.  
      Get-EVRBARoleMember
    5.  
      Remove-EVRBARoleMember
    6.  
      Set-EVRBAAzStoreXml
  14. Sites and servers
    1.  
      Get-EVComputers
    2.  
      Get-EVFileLocation
    3.  
      Get-EVIISWebsite
    4.  
      Get-EVServer
    5.  
      Get-EVSite
    6.  
      Get-EVSiteInfo
  15. Tasks and services
    1.  
      Get-EVDependencyService
    2.  
      Get-EVDependencyServiceState
    3.  
      Get-EVService
    4.  
      Get-EVServiceState
    5.  
      Get-EVTask
    6.  
      Get-EVTaskState
  16. Vault stores and archives
    1.  
      Export-EVArchive
    2.  
      Get-EVArchive
    3.  
      Get-EVVaultStore
    4.  
      Get-EVVaultStorePartition
    5.  
      Set-EVArchive
    6.  
      Start-PartitionRollover

Get-EVRetentionPlan

Get-EVRetentionPlan returns a list of all the retention plans that are configured in an Enterprise Vault site. You can filter the list of returned retention plans by description, retention category, override retention flag, and classification policy.

You can also return the properties of a specific retention plan and any retention folder information that you have defined in the plan. For more information on retention folders, see the Administrator's Guide.

Get-EVRetentionPlan is provided by Symantec.EnterpriseVault.PowerShell.AdminAPI.dll, which is loaded by the Enterprise Vault Management Shell.

Syntax

Get-EVRetentionPlan [-SiteId <String>] [-Name <String>] [-Description <String>] [-RetentionCategory <String>] [-OverrideRetention [<SwitchParameter>]] [-ClassificationPolicy <String>] [<CommonParameters>]

Parameters

Table: Get-EVRetentionPlan parameters

Parameter

Description

-SiteId

The ID of the Enterprise Vault site for which to return the retention plan details. If you omit this parameter, and the cmdlet cannot determine the ID by looking in the registry, then Get-EVRetentionPlan prompts you to enter the required ID.

You can use Get-EVSite to obtain the site ID.

-Name

The name of a specific retention plan whose properties you want to return.

-Description

The retention plan description with which to filter the list of returned plans.

-RetentionCategory

The name of a retention category with which to filter the list of returned retention plans.

-OverrideRetention

If specified, return only those retention plans for which you have set the override retention flag. This flag instructs Enterprise Vault to expire each item according to the retention category that you have set with the retention plan. This retention category overrides the item's individual retention category.

-ClassificationPolicy

The name of a classification policy with which to filter the list of returned retention plans.

Examples
  • Get-EVRetentionPlan

    Returns a list of all the retention plans that are configured in the Enterprise Vault site. As no site ID is specified, the cmdlet first looks for it in the registry and then, if it cannot find the ID there, prompts you for it.

  • Get-EVRetentionPlan -SiteId 13E...localdomain.com

    Returns a list of all the retention plans that are configured in the specified Enterprise Vault site.

  • Get-EVRetentionPlan -SiteId 13E...localdomain.com -Name ManagersPlan

    Returns the properties of the retention plan that is named "ManagersPlan".

  • Get-EVRetentionPlan -SiteId 13E...localdomain.com -Description RetentionPlanForManagers

    Restricts the list of returned retention plans to those that have a description of "RetentionPlanForManagers".

  • Get-EVRetentionPlan -SiteId 13E...localdomain.com -RetentionCategory 3years

    Restricts the list of returned retention plans to those that have a retention category of "3years".

  • Get-EVRetentionPlan -OverrideRetention

    Restricts the list of returned retention plans to those for which you have set the override retention flag.

  • Get-EVRetentionPlan -ClassificationPolicy "Managers CP"

    Restricts the list of returned retention plans to those that have a classification policy name of "Managers CP".

  • Get-EVRetentionPlan -ClassificationPolicy ""

    Restricts the list of returned retention plans to those for which no classification policy has been specified.

  • Get-EVRetentionPlan -Name "ManagersPlan" |select -expand Folders | Format-Table

    Returns the retention folder information that is defined in the "ManagersPlan" retention plan. For example:

    FolderPath       FolderName   RetentionCategory   Expiry                  Inheritance
    ----------       ----------   -----------------   ------                  -----------
    \Business        Business     2-year              Folder   ThisFolderAndAllSubfolders
    \Business\2018   2018         5-year                Item   ThisFolderAndAllSubfolders
    \Business\2020   2020         2-year              Folder   ThisFolderAndAllSubfolders
    \Inbox           Inbox        1-year                Item               ThisFolderOnly
    \Inbox\Finance   Finance      2-year              Folder   ThisFolderAndAllSubfolders
    \Inbox\Legal     Legal        5-year                Item               ThisFolderOnly

    The OverrideRetention and ClassificationPolicy settings for this retention plan determine whether the Expiry values are effective.

  • Get-EVRetentionPlan -Name "ManagersPlan" |select -expand FolderXml

    Returns the retention folder information for the "ManagersPlan" retention plan in XML format.

  • Get-EVRetentionPlan -Name "ManagersPlan" |select -expand FolderXml | Out-File c:\retention_plan_folders.xml

    Exports the retention folder information for the "ManagersPlan" retention plan to the file c:\retention_plan_folders.xml. You can edit this file and then resubmit the retention folder information with the Set-EVRetentionPlan cmdlet.

Output

Table: Get-EVRetentionPlan properties lists the properties that are available.

Table: Get-EVRetentionPlan properties

Name

Type

Description

Name

String

The name of the retention plan.

Description

String

The description of the retention plan.

RetentionCategory

String

The name of the retention category that is associated with the retention plan.

OverrideRetention

SwitchParameter

Whether you have specified the override retention flag for this retention plan.

ClassificationPolicy

String

The name of the classification policy that is associated with the retention plan.

HasFolders

Boolean

Whether the retention plan defines any retention folders. If true, the Folders and FolderXml properties contain information about the retention folders.

The Folders property contains the information as tabulated text, which you can format using Format-Table.

The FolderXml property contains the information as XML, which you can output to a file. You can edit this file and then resubmit the retention folder information with the Set-EVRetentionPlan cmdlet.

DisableStorageExpiry

SwitchParameter

Whether you have chosen to disable Storage Expiry in any archive that has retention folder issues.

If no retention plans are available, or if the cmdlet cannot find any plans that match the specified criteria, then it outputs a suitable error message.

Related cmdlets