Enterprise Vault™ PowerShell Cmdlets

Last Published:
Product(s): Enterprise Vault (12.3)
  1. Introducing the Enterprise Vault PowerShell cmdlets
    1.  
      About the Enterprise Vault Management Shell
    2.  
      Getting Help for Enterprise Vault PowerShell cmdlets
    3.  
      Rules for PowerShell strings
    4. 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.  
      Remove-EVArchive
    6.  
      Set-EVArchive
    7.  
      Start-PartitionRollover

Remove-EVArchive

Remove-EVArchive deletes the specified archive and the items that it contains.

Remove-EVArchive does not delete an archive in the following circumstances:

  • The archive is already marked for deletion.

  • The vault store that is associated with the archive is in backup mode.

  • The archive is protected from deletion.

  • The archive has a status other than Available or Closed.

  • The archive is being moved.

  • The archive is associated with one or more Exchange journal mailbox, Exchange public folder, SharePoint site collection, Domino journaling location, SMTP, Skype for Business archiving targets, or SMTP Group Journaling provisioning groups.

This cmdlet prompts you to confirm the removal of the archive.

Caution:

You cannot stop the deletion process or undo the deletion.

Remove-EVArchive supports the WhatIf switch, which lets you view the changes that would occur without having to apply any of those changes.

By default, Remove-EVArchive does not generate any output. You can use the PassThru switch to return an ArchiveInfo object that provides details of the deleted archive.

Remove-EVArchive is provided by the snap-in Symantec.EnterpriseVault.PowerShell.Snapin.dll

Syntax

Remove-EVArchive [-ArchiveId] <String> [-PassThru [<SwitchParameter>]] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]

Parameters

Table: Remove-EVArchive parameters

Parameter

Description

-ArchiveID (required)

The ID of the archive to be deleted. You can obtain the ID with the Get-EVArchive cmdlet.

-PassThru

Returns an ArchiveInfo object that provides the details of the archive that you want to delete. By default, this cmdlet does not generate any output.

-Confirm

Prompts you for confirmation before running the cmdlet. To suppress the confirmation prompt, use the syntax -Confirm:$False. You must include a colon ( : ) in the syntax.

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not actually run.

The WhatIf switch also displays any errors or warnings that could occur when the command is executed.

Examples
  • Remove-EVArchive -ArchiveId "123...example.com"

    Deletes the archive with ID '123...example.com'.

  • Get-EVArchive -ArchiveName "ArchiveToBeDeleted" | Remove-EVArchive

    Pipes the ArchiveInfo object that is obtained from Get-EVArchive to Remove-EVArchive and deletes the archive.

  • Remove-EVArchive -ArchiveId "123...example.com" -PassThru

    Deletes the archive with ID '123...example.com'. It also returns an ArchiveInfo object that provides the details of the deleted archive.

  • Get-EVArchive -ArchiveName "ArchiveToBeDeleted" | Remove-EVArchive -WhatIf

    Pipes the ArchiveInfo object that is obtained from Get-EVArchive to Remove-EVArchive. It then lets you view any errors or warnings that could occur on executing the command. If there are no errors or warnings to display, the command displays the following message:

    'This operation will permanently delete archive 'ArchiveToBeDeleted' and all items stored in it. This action overrides the Retention Category option 'Prevent automatic deletion of expired items'. You cannot cancel the operation.'

  • Get-EVArchive -DeleteProtected:$false | Remove-EVArchive -Confirm:$false

    This command uses Get-EVArchive to retrieve all the archives that are not protected from deletion and deletes them using Remove-EVArchive. This command also suppresses the confirmation prompt.

Output

Remove-EVArchive returns no output, or a modified object of the type Symantec.EnterpriseVault.Admin.ArchiveInfo when the -PassThru parameter is specified. Symantec.EnterpriseVault.Admin.ArchiveInfo has the following properties.

Table: Symantec.EnterpriseVault.Admin.ArchiveInfo properties

Name

Type

Description

ArchiveId

String

The ID of the deleted archive.

ArchiveName

String

The name of the deleted archive.

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 could manually delete items from the archive ($false) or not ($true).

OnHold

Boolean

Indicates whether the archive contained 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 was applied to the archive.

Related cmdlets