Veritas Enterprise Vault™ PowerShell Cmdlets

Last Published:
Product(s): Enterprise Vault (12.1)
  1. Introducing the Enterprise Vault PowerShell cmdlets
    1.  
      What's new in Enterprise Vault 12.1
    2.  
      About the Enterprise Vault Management Shell
    3.  
      Importing modules
    4.  
      Getting Help for Enterprise Vault PowerShell cmdlets
    5.  
      Rules for PowerShell strings
    6. Where to get more information about Enterprise Vault
      1.  
        Enterprise Vault training modules
  2. Archiving: Exchange
    1.  
      Add-EVPstComputer
    2.  
      Add-EVPstFile
    3.  
      Remove-EVExchangeFolderPolicy
  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: SMTP
    1.  
      Get-EVSMTPHoldingFolder
    2.  
      Get-EVSMTPPolicy
    3.  
      Get-EVSMTPServerSettings
    4.  
      Get-EVSMTPTarget
    5.  
      New-EVSMTPPolicy
    6.  
      New-EVSMTPServerSettings
    7.  
      New-EVSMTPTarget
    8.  
      Remove-EVSMTPPolicy
    9.  
      Remove-EVSMTPTarget
    10.  
      Set-EVSMTPPolicy
    11.  
      Set-EVSMTPServerSettings
    12.  
      Set-EVSMTPTarget
    13.  
      Sync-EVSMTPServerSettings
  5. Backup
    1.  
      Clear-IndexLocationBackupMode
    2.  
      Clear-VaultStoreBackupMode
    3.  
      Get-IndexLocationBackupMode
    4.  
      Get-VaultStoreBackupMode
    5.  
      Set-IndexLocationBackupMode
    6.  
      Set-VaultStoreBackupMode
  6. Classification
    1.  
      Get-EVClassificationPolicy
    2.  
      Get-EVClassificationTags
    3.  
      Get-EVClassificationTestMode
    4.  
      Import-EVClassificationRules
    5.  
      New-EVClassificationPolicy
    6.  
      Publish-EVClassificationRules
    7.  
      Remove-EVClassificationPolicy
    8.  
      Set-EVClassificationPolicy
    9.  
      Set-EVClassificationTestMode
  7. Databases
    1.  
      Get-EVDatabase
    2.  
      Get-EVDatabaseDetail
    3.  
      Get-EVDatabaseFileInfo
    4.  
      Get-EVStorageDatabase
    5.  
      Set-EVDatabaseDetail
    6.  
      Start-EVDatabaseUpgrade
  8. IMAP access
    1.  
      Get-EVIMAPUsers
    2.  
      Get-EVIMAPUserSettings
    3.  
      Set-EVIMAPServerDisabled
    4.  
      Set-EVIMAPServerEnabled
  9. Indexing
    1.  
      Get-EVIndexLocation
    2.  
      Get-EVMDSStatus
    3.  
      Get-IndexServerForIndexLocation
    4.  
      New-EVMDSBuildTask
    5.  
      Set-IndexMetadataSyncLevel
  10. Records management
    1.  
      Export-EVNARAArchive
    2.  
      Get-EVRecordSettings
  11. Retention plans
    1.  
      Get-EVRetentionPlan
    2.  
      New-EVRetentionPlan
    3.  
      Remove-EVRetentionPlan
    4.  
      Set-EVRetentionPlan
  12. Roles-based administration
    1.  
      Add-EVRBARoleMember
    2.  
      Get-EVRBAAzStoreXml
    3.  
      Get-EVRBARole
    4.  
      Get-EVRBARoleMember
    5.  
      Remove-EVRBARoleMember
    6.  
      Set-EVRBAAzStoreXml
  13. Sites and servers
    1.  
      Get-EVComputers
    2.  
      Get-EVFileLocation
    3.  
      Get-EVIISWebsite
    4.  
      Get-EVServer
    5.  
      Get-EVSite
  14. Tasks and services
    1.  
      Get-EVDependencyService
    2.  
      Get-EVDependencyServiceState
    3.  
      Get-EVService
    4.  
      Get-EVServiceState
    5.  
      Get-EVTask
    6.  
      Get-EVTaskState
  15. Vault stores and archives
    1.  
      Export-EVArchive
    2.  
      Get-EVArchive
    3.  
      Get-EVVaultStore
    4.  
      Get-EVVaultStorePartition
    5.  
      Set-EVArchive
    6.  
      Start-PartitionRollover

Get-EVArchive

Get-EVArchive returns a list of some or all of the archives in the Enterprise Vault site. You can filter this list to show the following:

  • Archives in which a specified user has various permissions, either directly or through membership of an Active Directory group.

  • Archives whose name exactly matches the specified name.

You can further filter the list by a number of archive properties. For example, you can choose to list only those archives in which a specified user has permission to delete the archived items, or only those archives that are on legal hold.

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

Syntax

Get-EVArchive [-User] <String> [[-Server] <String>] [-DeleteProtected [<Boolean>]] [-DeleteExpiredItems [<Boolean>]] [-OnHold [<Boolean>]] [-Permissions [<String>]] [<CommonParameters>]

Get-EVArchive [[-ArchiveName] <String>] [[-Server] <String>] [-DeleteProtected [<Boolean>]] [-DeleteExpiredItems [<Boolean>]] [-OnHold [<Boolean>]] [<CommonParameters>]

Parameters

Table: Get-EVArchive parameters

Parameter

Description

-User (required if you use the first parameter set in the Syntax section)

Identifies the user for which to retrieve the archive list. Type the user's Windows logon name, user principal name, or Domino user ID. For example: user@domain.com, domain\user.

-ArchiveName

Specifies the name of an archive for which to retrieve the details.

-Server

Identifies the Enterprise Vault server for which to retrieve the archive list. For example: localhost, evserver.domain.com.

If you omit this parameter, the cmdlet looks in the registry to identify the Enterprise Vault Directory service computer.

-DeleteProtected

Filters the archive list according to whether the user can manually delete the items in the archives. Set to $false to list the archives in which the user can manually delete items, or $true to list the archives in which the user cannot delete items.

-DeleteExpiredItems

Filters the archive list according to whether Enterprise Vault can automatically delete the archived items whose retention periods have expired. Set to $false to list the archives in which Enterprise Vault does not delete expired items, or $true to list the archives in which it does.

-OnHold

Filters the archive list according to the legal hold status of the archives. Set to $false to list the archives in which either the user or Enterprise Vault (or both) can delete items, or $true to list the archives that are on legal hold.

Legal hold is equivalent to DeleteProtected set to $true and DeleteExpiredItems set to $false.

-Permissions

Filters the archive list according to the permissions that the user has on the archives. Specify the permissions as a combination of r (for read), w (for write), and d (for delete); for example, rw and rwd. A blank value () denotes any permission. The default permission if not specified is d (delete).

You can only set this parameter if you have also specified the -User parameter.

Examples
  • Get-EVArchive

    Lists all the archives in the Enterprise Vault site.

  • Get-EVArchive -DeleteProtected $false

    Filters the list of archives in the Enterprise Vault site to show only those in which users can manually delete items.

  • Get-EVArchive -User Domain\User

    Lists the archives in which the user Domain\User has delete permissions.

  • Get-EVArchive -User user@domain -DeleteProtected $false -DeleteExpiredItems $false -Permissions rw

    Lists the archives in which the user user@domain.com has both read and write permissions. Get-EVArchive filters the list to show only those archives in which the user can manually delete items but in which Enterprise Vault cannot automatically delete expired items.

  • Get-EVArchive -User Domain\User -OnHold $false | format-table -auto

    Lists the archives in which the user Domain\User has delete permissions. Get-EVArchive excludes from the list all the archives that are on legal hold and writes the output to format-table.

  • Get-EVArchive -ArchiveName msmith | format-table -auto

    Lists the archives that have the name "msmith".

  • Get-EVArchive | where-object {$_.ArchiveName -ilike "*journal*"}

    Lists the archives whose names contain the case-insensitive string "journal".

Output

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

Table: Get-EVArchive properties

Name

Type

Description

ArchiveId

String

The ID of an archive to which the specified user has access.

ArchiveName

String

The name of an archive to which the specified user has access.

ArchiveType

EV_STG_API_ARCHIVE_TYPE

The Enterprise Vault archive type enumeration. The possible values are as follows:

  • ARCHIVE_TYPE_DOMINO_JOURNAL

  • ARCHIVE_TYPE_DOMINO_MAILBOX

  • ARCHIVE_TYPE_FILE_SYSTEM

  • ARCHIVE_TYPE_INTERNETMAIL

  • ARCHIVE_TYPE_JOURNAL

  • ARCHIVE_TYPE_MAILBOX

  • ARCHIVE_TYPE_PUBLIC_FOLDER

  • ARCHIVE_TYPE_SHARED

  • ARCHIVE_TYPE_SHAREPOINT

  • ARCHIVE_TYPE_SMTP

DeleteExpiredItems

EV_STG_API_EXPIRE_ITEMS

The Enterprise Vault expire items enumeration. The possible values are as follows:

  • DONT_EXPIRE_ITEMS

  • EXPIRE_ITEMS

DeleteProtected

Boolean

Indicates whether the user can manually delete items from the archive ($false) or not ($true).

OnHold

Boolean

Indicates whether the archive contains items that are on legal hold ($true) or not ($false).

Status

EV_STG_API_STATUS

The Enterprise Vault archive status enumeration. The possible values are as follows:

  • STS_AVAILABLE

  • STS_INBACKUPMODE

  • STS_TEMPORARILY_UNAVAILABLE

  • STS_UNAVAILABLE

RetentionPlanName

String

The name of the retention plan that you have applied to the archive.

Related cmdlets