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

Set-EVExchangeMailboxPolicy

Set-EVExchangeMailboxPolicy sets or updates the properties of an existing Exchange mailbox policy.

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

Several parameters use enumeration values. For details of the Exchange Mailbox policy enumerations, type get-help about_ExchMbxPolicyEnumerations.

Syntax

Set-EVExchangeMailboxPolicy -Name <String> [-ArchivingStrategy <ArchivingStrategyEnum>] [-LockArchivingStrategy <Boolean>] [-ArchiveItemsOlderThan <Integer>] [-ArchiveItemsOlderThanUnits <AgeUnitsEnum>] [-PercentageOfQuota <Integer>] [-MinimumArchiveAge <Integer>] [-MinimumArchiveAgeUnits <AgeUnitsEnum>] [-SizePriority <Boolean>] [-MinimumItemSizeKB <Integer>] [-ArchiveMsgsWithAttachmentsOnly <Boolean>] [-ShortcutInactivityPeriod <Integer>] [-ShortcutInactivityUnits <AgeUnitsEnum>] [-DeleteAfterArchive <Boolean>] [-LockDeleteAfterArchive <Boolean>] [-CreateShortcutAfterArchive <Boolean>] [-LockCreateShortcutAfterArchive <Boolean>] [-ArchiveUnreadItems <Boolean>] [-LockArchiveUnreadItems <Boolean>] [-OverallLock <Boolean>] [-IncludeRecipientInformation <Boolean>] [-ContentOfShortcutBody <ShortcutBodyContent Enum>] [-IncludeBanner <Boolean>] [-IncludeLinkToArchivedItem <Boolean>] [-MessageCharsToInclude <Integer>] [-DisplayAttachmentsAs <AttachmentsDisplay Enum>] [-IndexLevel <IndexingLevelEnum>] [-IndexPreviewLength <Integer>] [-CreateAttachmentPreview <Boolean>] [-IsADefaultPolicy <Boolean>] [-Description <String>] [-SiteId <String>] [-EntryId <String>] [<CommonParameters>]

Parameters

Table: Set-EVExchangeMailboxPolicy parameters

Parameter

Description

-Name (required)

The name of the existing Exchange mailbox policy.

-ArchivingStrategy

The archiving strategy for the Exchange mailbox policy. The enumeration values are as follows:

  • BasedOnAge or 0. The archiving strategy is based on the age of items. This is the default value.

  • BasedOnQuota or 1. The archiving strategy is based on keeping a percentage of each user's Exchange mailbox storage limit free.

  • BasedOnAgeAndQuota or 2. The archiving strategy is based both on the age of items and on keeping a percentage of each user's Exchange mailbox storage limit free. The task performs age-based archiving first. If age-based archiving does not make the required percentage of mailbox storage limit free, archiving continues until the required percentage is reached.

-LockArchivingStrategy

Whether to prevent users from changing the archiving strategy in Outlook for this policy. The default is $true.

-ArchiveItemsOlderThan

The Exchange mailbox tasks archive items that have not been modified for the length of time that you specify.

-ArchiveItemsOlderThanUnits

The unit of time to use with ArchiveItemsOlderThan. The enumeration values are as follows:

  • Days or 0.

  • Weeks or 1.

  • Months or 2. This is the default value.

  • Years or 3.

-PercentageOfQuota

If you implement a quota based archiving strategy, this specifies the percentage of each user's Exchange mailbox storage limit that is to be kept free. The Exchange mailbox tasks archive items until each mailbox has this percentage of the mailbox storage limit free.

The default value is 10.

-MinimumArchiveAge

The minimum age of items that are archived.

The default value is 2.

-MinimumArchiveAgeUnits

The units of time to use with MinimumArchiveAge. The enumeration values are as follows:

  • Days or 0.

  • Weeks or 1. This is the default value.

  • Months or 2.

  • Years or 3.

-SizePriority

Whether the Exchange mailbox tasks give priority to items that are larger than MinimumItemSizeKB. The default is $false.

-MinimumItemSizeKB

The Exchange mailbox tasks give priority to items that are larger than this size in KB. The default size is 10240.

-ArchiveMsgsWithAttachmentsOnly

Whether a mailbox item is archived only if it has an attachment. The default is $false.

-ShortcutInactivityPeriod

Delete shortcuts that are older than the age specified. The default is 0.

-ShortcutInactivityUnits

The units of time to use with ShortcutInactivityPeriod. The enumeration values are as follows:

  • Days or 0. This is the default value.

  • Weeks or 1.

  • Months or 2.

  • Years or 3.

-DeleteAfterArchive

Whether Enterprise Vault deletes items from mailboxes when the items have been successfully stored in an archive. The default is $true.

-LockDeleteAfterArchive

Whether users are prevented from changing the DeleteAfterArchive setting in their personal settings. The default is $true.

-CreateShortcutAfterArchive

Whether Enterprise Vault creates a shortcut for newly-archived items. The default is $true.

-LockCreateShortcutAfterArchive

Whether users are prevented from changing the CreateShortcutAfterArchive setting in their personal settings. The default is $true.

-ArchiveUnreadItems

Whether Enterprise Vault archives items that have not yet been read.

-LockArchiveUnreadItems

Whether users are prevented from changing the ArchiveUnreadItems setting in their personal settings. The default is $true.

-OverallLock

Prevents users from changing the following settings: DeleteAfterArchive, CreateShortcutAfterArchive, ArchiveUnreadItems, and ArchivingStrategy.

Specifying a value of $true (the default) forces users to use policy and target settings for mailbox archiving.

-IncludeRecipientInformation

Whether to include details of To and Cc recipients in shortcuts. Shortcuts always contain the From and Subject information. The default is $true.

-ContentOfShortcutBody

What to use as the shortcut body. The enumeration values are as follows:

  • None or 0. Enterprise Vault generates shortcuts that do not contain any of the original message body.

  • UseMessageBody or 1. Enterprise Vault generates shortcuts that contain all the original message body. Message text can be searched from within Outlook and can be shown in the Outlook Preview pane. Enterprise Vault still archives complete messages, with attachments. When you retain the message body, the shortcut is larger than if you did not retain the body. For messages with no attachments, the shortcut is actually slightly larger than the original message.

  • Customize or 2. Use IncludeBanner, IncludeLinkToArchivedItem, MessageCharsToInclude, and DisplayAttachmentsAs to control precisely the content of shortcuts. If you specify Customize, you must also copy the appropriate ShortcutText.txt file from the Languages folder to the Enterprise Vault installation folder.

The default value is Customize.

-IncludeBanner

For customized shortcuts, specifies whether the shortcut contains a colored banner at the top. You can modify the text that appears in the banner by editing the ShortcutText.txt file. The default is $false.

-IncludeLinkToArchivedItem

For customized shortcuts, specifies whether you have selected to make shortcuts contain links to the archived items. The default is $false.

MessageCharsToInclude

For customized shortcuts, specifies how many characters of the message body section to include in the shortcut. The default value is 1000.

-DisplayAttachmentsAs

For customized shortcuts, the type of attachment list that you want Enterprise Vault to include in shortcuts. The enumeration values are as follows:

  • None or 0. Attachments are not listed in the shortcut.

  • Text or 1. The subject text of each attachment is listed. Users must open the complete archived item to access the attachments.

  • Links or 2. A list of links to the archived attachments are included. Users can open individual attachments directly.

The default value is None.

-IndexLevel

The indexing level to assign to the archive index. The enumeration values are as follows:

  • Brief or 0. Enterprise Vault indexes the metadata of archived items but not the content. For example, Enterprise Vault indexes the sender and the item date. Users cannot search for any content in these items.

  • Full or 2. Enterprise Vault indexes the metadata and content of archived items and their attachments. Users can search for the content of items and attachments.

The default value is Full.

-IndexPreviewLength

The amount of text that Enterprise Vault shows for each item in search results. The default value is 128.

-CreateAttachmentPreview

Whether Enterprise Vault creates previews of attachment content. Note that these previews cannot be viewed in this release of Enterprise Vault. The default is $false.

-IsADefaultPolicy

Whether the policy is the default policy. The default is $false.

-Description

Description of the Exchange mailbox policy. The description can contain up to 127 alphanumeric, space, or special characters.

-SiteId

The directory entry ID of the Enterprise Vault site in which the policy is configured.

-EntryId

The directory entry ID of the policy.

Examples
  • Set-EVExchangeMailboxPolicy -Name "Default Exchange Mailbox Policy" -DisplayAttachmentsAs LINKS

    Sets properties in the policy called Default Exchange Mailbox Policy. It is assumed that the default Exchange mailbox policy is already configured to use customized shortcuts.

    This example sets the DisplayAttachmentsAs property to include a list of links to attachments in the customized shortcuts.

  • Set-EVExchangeMailboxPolicy -Name "Default Exchange Mailbox Policy" -ArchivingStrategy BASEDONAGE -ArchiveItemsOlderThan 3 -ArchiveItemsOlderThanUnits YEARS MinimumArchiveAge 2 MinimumArchiveAgeUnits MONTHS SizePriority $true MinimumItemSizeKB 5000

    Changes archiving strategy properties in the policy called Default Exchange Mailbox Policy. The archiving strategy is changed so that it is now based on age. Items that are larger than 5 MB (SizePriority/MinimumItemSizeKB ) and older than 2 months (MinimumArchiveAge/MinimumArchiveAgeUnits) are archived first. The three year age limit (ArchiveItemsOlderThan and ArchiveItemsOlderThanUnits) does not apply to these large items. MinimumArchiveAge and MinimumArchiveAgeUnits prevent Enterprise Vault from archiving of any items that are younger than two months.

    To make the new strategy effective, synchronize the target mailboxes using the Synchronization tab in the Exchange Mailbox task properties.

Output

None.

Related cmdlets