Enterprise Vault™ PowerShell Cmdlets

Last Published:
Product(s): Enterprise Vault (12.4)
  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-EVFSAComputerSettings
    2.  
      Get-EVFSAFileServer
    3.  
      Get-EVFSAFolder
    4.  
      Get-EVFSASiteSettings
    5.  
      Get-EVFSAVolume
    6.  
      New-EVFSAFileServer
    7.  
      New-EVFSAFolder
    8.  
      New-EVFSAVolume
    9.  
      Remove-EVFSAFileServer
    10.  
      Remove-EVFSAFolder
    11.  
      Remove-EVFSAVolume
    12.  
      Set-EVFSAComputerSettings
    13.  
      Set-EVFSAFileServer
    14.  
      Set-EVFSAFolder
    15.  
      Set-EVFSASiteSettings
    16.  
      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-EVArchivePermission
    4.  
      Get-EVVaultStore
    5.  
      Get-EVVaultStorePartition
    6.  
      Remove-EVArchive
    7.  
      Remove-EVArchivePermission
    8.  
      Set-EVArchive
    9.  
      Set-EVArchivePermission
    10.  
      Start-PartitionRollover

Export-EVArchive

Export-EVArchive exports items from the specified archive. You can limit the export to items that match the specified search criteria.

Note:

If you want to export items to fulfil the requirements of the Capstone records management system, you may prefer to run the Export-EVNARAArchive cmdlet. Export-EVNARAArchive has many of the same features as Export-EVArchive but limits the export to items that Enterprise Vault has marked as permanent records.

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

Syntax

Export-EVArchive [-ArchiveId] <String> [-OutputDirectory] <String> [[-SearchString] [<String>]] [[-Format] [<ExportFormat>]] [[-MaxThreads] [<Integer>]] [-Retry <SwitchParameter>] [-MaxPSTSizeMB <Integer>] [<CommonParameters>]

Parameters

Table: Export-EVArchive parameters

Parameter

Description

-ArchiveId (required)

Specifies the ID of the archive from which to export the items. You can use Get-EVArchive to obtain the required ID.

-OutputDirectory (required)

Specifies the path to the folder in which the cmdlet should place the exported items. Type an absolute, relative, or UNC path that contains up to 200 characters. Enclose the path in quotation marks if it contains space characters.

If the specified folder does not exist, the cmdlet attempts to create it.

-SearchString

Specifies a search query with which to identify selected items for export. You can use the same query syntax as you might use to look for specific items in Enterprise Vault Search. For example, the search query "to:mike_smith" selects for export only those items for which he was a recipient. Enclose the query in quotation marks if it contains space characters.

For more information on the query syntax, see the online Help for Enterprise Vault Search.

-Format

Specifies the format in which to export the items. The possible values are EML, NATIVE, and PST, where NATIVE is the default. To export to PST, Microsoft Outlook must be installed and set as the default email client on both the local server and the server hosting the Enterprise Vault Storage service for the specified archive.

The NATIVE value instructs the cmdlet to export each item in its original format: MSG for Microsoft Exchange items, EML for SMTP items, TXT for text files, and so on.

With the PST value, the cmdlet first exports the items as MSG files and then collects them in a PST file. The folder structure within the PST file matches that of the source archive. However, if a source folder contains more than 100,000 items then the cmdlet automatically creates additional folders in the PST file to hold the excess items.

If an exported item is larger than 250 MB, the cmdlet leaves it outside the PST file instead of collecting it in the file. If the item exceeds 2 GB, the cmdlet exports it in its native format rather than as MSG.

-MaxThreads

Specifies the maximum number of threads to use for the export process. Type a value between 1 and 100. The default value is 16.

Reducing the number of threads can help to minimize the load on Enterprise Vault server resources. Alternatively, in distributed or high specification Enterprise Vault environments, increasing the number of threads can improve throughput.

-Retry

If specified, runs the cmdlet again to export items that it did not export during a previous run. For example, this may be necessary if the previous run stopped for some reason before it completed, or the run completed but failed to export certain items.

Take care to specify the same ArchiveId and OutputDirectory parameter values as you specified for the previous run. You do not need to specify the SearchString and Format parameter values again, as the cmdlet automatically uses the values that you previously specified.

-MaxPSTSizeMB

For exports to PST only, specifies the maximum size in MB of each PST file. After a PST file reaches this limit, the cmdlet automatically creates a new file for the remaining items. Type a value between 500 and 51200. The default value is 20480 (20 GB).

Examples
  • Export-EVArchive -ArchiveId 19D...EVServer1 -OutputDirectory c:\Temp

    Exports all the items from the specified archive to the output folder c:\Temp.

  • Export-EVArchive -ArchiveId 19D...EVServer1 -OutputDirectory "c:\Exported Items" -SearchString "to:mike_smith"

    Exports only those items for which Mike Smith was a recipient.

  • Export-EVArchive -ArchiveId 19D...EVServer1 -OutputDirectory c:\Temp -Format PST -MaxPSTSizeMB 51200

    Exports all the items to one or more PST files, each of which can be up to 50 GB in size.

  • Export-EVArchive -ArchiveId 19D...EVServer1 -OutputDirectory c:\Temp -MaxThreads 100

    Allocates 100 threads to the process of exporting all the items from the specified archive.

  • Export-EVArchive -ArchiveId 19D...EVServer1 -OutputDirectory c:\Temp -Retry

    For the specified archive, retries an export run that previously failed to export all the required items. The specified output folder is the same as that for the previous run. The cmdlet automatically uses the same search string and format values as those specified for the previous run.

  • "19D...EVServer1","18F...EVServer2","14C...EVServer3" | Export-EVArchive -OutputDirectory "c:\Exported Items"

    Pipes the IDs of three archives from which to export all the items.

Output

There is a confirmation message on completion.

In addition, the cmdlet creates a report file called ExportReport_datetime.txt; for example, ExportReport_20160311125651.txt. This file shows the number of exported items and identifies any that the cmdlet failed to export. If the export failed altogether for some reason, the report indicates the probable cause.

Related cmdlets