Enterprise Vault™ PowerShell Cmdlet

Last Published:
Product(s): Enterprise Vault (15.0)
  1. Enterprise Vault PowerShell Cmdlet 简介
    1.  
      关于 Enterprise Vault Management Shell
    2.  
      获取 Enterprise Vault PowerShell cmdlet 的帮助
    3.  
      PowerShell 字符串规则
    4.  
      关于使用 Import-Csv cmdlet 时导入的布尔值
    5. 从何处获取有关 Enterprise Vault 的详细信息
      1.  
        Enterprise Vault 培训模块
  2. 归档:Exchange
    1.  
      Add-EVPstComputer
    2.  
      Add-EVPstFile
    3.  
      Get-EVExchangeMailboxPolicy
    4.  
      New-EVExchangeMailboxPolicy
    5.  
      Remove-EVExchangeFolderPolicy
    6.  
      Remove-EVExchangeMailboxPolicy
    7.  
      Set-EVExchangeMailboxPolicy
  3. 归档: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. 归档:Skype for Business
    1.  
      Get-EVSkypeForBusinessTarget
    2.  
      New-EVSkypeForBusinessTarget
    3.  
      Remove-EVSkypeForBusinessTarget
    4.  
      Set-EVSkypeForBusinessTarget
  5. 归档: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. 备份
    1.  
      Get-EVIndexSnapshotLocationBackupMode
    2.  
      Set-EVIndexSnapshotLocationBackupMode
    3.  
      Clear-EVIndexSnapshotLocationBackupMode
    4.  
      Get-IndexLocationBackupMode
    5.  
      Set-IndexLocationBackupMode
    6.  
      Clear-IndexLocationBackUpMode
    7.  
      Get-VaultStoreBackupMode
    8.  
      Set-VaultStoreBackupMode
    9.  
      Clear-VaultStoreBackupMode
    10.  
      Set-EVIndexSnapshotLocation
    11.  
      Get-EVIndexSnapshotLocation
    12.  
      Remove-EVIndexSnapshotLocation
    13.  
      New-EVIndexSnapshot
    14.  
      Get-EVIndexSnapshot
    15.  
      Remove-EVIndexSnapshot
    16.  
      Restore-EVIndexSnapshot
    17.  
      Get-EVIndexSnapshotRepository
    18.  
      Remove-EVIndexSnapshotRepository
    19.  
      Export-EVIndexData
    20.  
      Import-EVIndexData
  7. 分类
    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.  
      Set-EVClassificationVICFIPSMode
    10.  
      New-EVClassificationPolicy
    11.  
      Publish-EVClassificationFCIRules
    12.  
      Remove-EVClassificationPolicy
    13.  
      Set-EVClassificationPolicy
    14.  
      Set-EVClassificationTestMode
  8. 数据库
    1.  
      Get-EVDatabase
    2.  
      Get-EVDatabaseDetail
    3.  
      Get-EVDatabaseFileInfo
    4.  
      Get-EVStorageDatabase
    5.  
      Set-EVDatabaseDetail
    6.  
      Start-EVDatabaseUpgrade
  9. IMAP 访问
    1.  
      Get-EVIMAPUsers
    2.  
      Get-EVIMAPUserSettings
    3.  
      Set-EVIMAPServerDisabled
    4.  
      Set-EVIMAPServerEnabled
  10. 索引
    1.  
      Get-EVIndexLocation
    2.  
      Get-EVMDSStatus
    3.  
      Get-IndexServerForIndexLocation
    4.  
      New-EVMDSBuildTask
    5.  
      Set-IndexMetadataSyncLevel
    6.  
      Submit-EVIndexingSubTask
    7.  
      Get-EVIndexVolume
    8.  
      Get-EVElasticsearchIndex
  11. 记录管理
    1.  
      Export-EVNARAArchive
    2.  
      Get-EVRecordSettings
  12. 保留计划
    1.  
      Get-EVRetentionPlan
    2.  
      New-EVRetentionPlan
    3.  
      Remove-EVRetentionPlan
    4.  
      Set-EVRetentionPlan
  13. 基于角色的管理
    1.  
      Add-EVRBARoleMember
    2.  
      Get-EVRBAAzStoreXml
    3.  
      Get-EVRBARole
    4.  
      Get-EVRBARoleMember
    5.  
      Remove-EVRBARoleMember
    6.  
      Set-EVRBAAzStoreXml
  14. 站点和服务器
    1.  
      Get-EVComputers
    2.  
      Get-EVFileLocation
    3.  
      Get-EVIISWebsite
    4.  
      Get-EVServer
    5.  
      Get-EVSite
    6.  
      Get-EVSiteInfo
    7.  
      Set-EVServiceAccountPassword
  15. 任务和服务
    1.  
      Get-EVDependencyService
    2.  
      Get-EVDependencyServiceState
    3.  
      Get-EVService
    4.  
      Get-EVServiceState
    5.  
      Get-EVTask
    6.  
      Get-EVTaskState
  16. 保管库存储和归档
    1.  
      Export-EVArchive
    2.  
      Get-EVArchive
    3.  
      Get-EVArchivePermission
    4.  
      Get-EVVaultStore
    5.  
      Get-EVVaultStorePartition
    6.  
      Remove-EVArchive
    7.  
      New-EVArchive
    8.  
      Remove-EVArchivePermission
    9.  
      Set-EVArchive
    10.  
      Set-EVArchivePermission
    11.  
      Start-PartitionRollover

Set-EVExchangeMailboxPolicy

Set-EVExchangeMailboxPolicy 设置或更新现有 Exchange 邮箱策略的属性。

Set-EVExchangeMailboxPolicy 由管理单元 Symantec.EnterpriseVault.PowerShell.AdminAPI.dll 提供。

多个参数使用枚举值。有关 Exchange 邮箱策略枚举的详细信息,请键入 get-help about_ExchMbxPolicyEnumerations

语法

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>]

参数

表:Set-EVExchangeMailboxPolicy 参数

参数

说明

-Name(必填)

现有 Exchange 邮箱策略的名称。

-ArchivingStrategy

Exchange 邮箱策略的归档策略。枚举值如下所示:

  • BasedOnAge 或 0。归档策略取决于项目时间。这是默认值。

  • BasedOnQuota 或 1。该归档策略取决于每个用户的 Exchange 邮箱保留的可用存储限制的百分比。

  • BasedOnAgeAndQuota 或 2。归档策略同时基于两项依据:即项目的归档时间,以及保持每个用户的一定百分比的 Exchange 邮箱存储限制可用。 任务首先执行基于归档时间的归档。如果基于归档时间的归档未使所需百分比的邮箱存储限制可用,将继续执行归档,直至达到所需百分比为止。

-LockArchivingStrategy

是否要阻止用户更改此策略在 Outlook 中的归档策略。默认值是 $true

-ArchiveItemsOlderThan

Exchange 邮箱任务将归档在您指定的时间段内尚未修改的项目。

-ArchiveItemsOlderThanUnits

要与 ArchiveItemsOlderThan 一起使用的时间单位。枚举值如下所示:

  • Days 或 0。

  • Weeks 或 1。

  • Months 或 2。这是默认值。

  • Years 或 3。

-PercentageOfQuota

如果实施基于配额的归档策略,则可以指定每个用户的 Exchange 邮箱要保留的可用存储限制的百分比。在每个邮箱保留该百分比的邮箱可用存储限制之前,Exchange 邮箱任务会持续归档项目。

默认值是 10。

-MinimumArchiveAge

归档项目的最短时间。

默认值是 2。

-MinimumArchiveAgeUnits

要与 MinimumArchiveAge 一起使用的时间单位。枚举值如下所示:

  • Days 或 0。

  • Weeks 或 1。这是默认值。

  • Months 或 2。

  • Years 或 3。

-SizePriority

Exchange 邮箱任务是否优先处理大于 MinimumItemSizeKB 的项目。默认值为 $false

-MinimumItemSizeKB

Exchange 邮箱任务优先处理大于此大小 (KB) 的项目。默认大小是 10240。

-ArchiveMsgsWithAttachmentsOnly

是否仅当邮箱项目含有附件时对其进行归档。默认值为 $false

-ShortcutInactivityPeriod

删除早于指定时间的快捷方式。默认值是 0。

-ShortcutInactivityUnits

要与 ShortcutInactivityPeriod 一起使用的时间单位。枚举值如下所示:

  • Days 或 0。这是默认值。

  • Weeks 或 1。

  • Months 或 2。

  • Years 或 3。

-DeleteAfterArchive

成功将项目存储在归档中后,Enterprise Vault 是否从邮箱中删除这些项目。默认值是 $true

-LockDeleteAfterArchive

是否阻止用户更改各自的个人设置中的 DeleteAfterArchive 设置。默认值是 $true

-CreateShortcutAfterArchive

Enterprise Vault 是否为新归档的项目创建快捷方式。默认值是 $true

-LockCreateShortcutAfterArchive

是否阻止用户更改各自的个人设置中的 CreateShortcutAfterArchive 设置。默认值是 $true

-ArchiveUnreadItems

Enterprise Vault 是否归档未读项目。

-LockArchiveUnreadItems

是否阻止用户更改各自的个人设置中的 ArchiveUnreadItems 设置。默认值是 $true

-OverallLock

阻止用户更改下列设置:DeleteAfterArchiveCreateShortcutAfterArchiveArchiveUnreadItemsArchivingStrategy

指定 $true 值(默认值)会强制用户使用策略和目标设置以归档邮箱。

-IncludeRecipientInformation

快捷方式中是否要包含“收件人”和“抄送对象”收件人的详细信息。快捷方式始终包含“发件人”和“主题”信息。默认值是 $true

-ContentOfShortcutBody

要用作快捷方式正文的内容。枚举值如下所示:

  • None 或 0。Enterprise Vault 生成不包含任何原始邮件正文的快捷方式。

  • UseMessageBody 或 1。Enterprise Vault 生成包含所有原始邮件正文的快捷方式。可在 Outlook 中搜索邮件文本,并且可以显示在 Outlook“预览”窗格中。Enterprise Vault 仍然可以归档带附件的完整邮件。与不保留邮件正文相比,保留邮件正文时快捷方式占用空间会更大。对于不带附件的邮件,快捷方式实际上比原始邮件稍大一些。

  • Customize 或 2。使用 IncludeBannerIncludeLinkToArchivedItemMessageCharsToIncludeDisplayAttachmentsAs 准确控制快捷方式的内容。如果指定 Customize,还必须将 Languages 文件夹中相应的 ShortcutText.txt 文件复制到 Enterprise Vault 安装文件夹中。

默认值为 Customize。

-IncludeBanner

对于自定义快捷方式,指定该快捷方式顶部是否包含彩色归档条。通过编辑 ShortcutText.txt 文件可以修改出现在归档条中的文本。默认值为 $false

-IncludeLinkToArchivedItem

对于自定义快捷方式,指定是否已选择让快捷方式包含指向归档项目的链接。默认值为 $false

MessageCharsToInclude

对于自定义快捷方式,指定快捷方式的邮件正文部分要包含的字符数。默认值是 1000。

-DisplayAttachmentsAs

对于自定义快捷方式,指定您希望 Enterprise Vault 包含在该快捷方式中的附件列表的类型。枚举值如下所示:

  • None 或 0。附件未列在快捷方式中。

  • Text 或 1。已列出每个附件的主题文本。用户必须打开完整的归档项目才能访问附件。

  • Links 或 2。已包含指向归档附件的链接列表。用户可以直接打开单个附件。

默认值为 None。

-IndexLevel

要分配给归档索引的索引级别。枚举值如下所示:

  • Brief 或 0。Enterprise Vault 为归档项目的元数据而非其内容编制索引。例如,Enterprise Vault 为发件人和项目日期编制索引。但用户无法搜索这些项目中的任何内容。

  • Full 或 2。Enterprise Vault 为归档项目及其附件的元数据和内容编制索引。用户可以搜索项目和附件的内容。

默认值为 Full。

-IndexPreviewLength

Enterprise Vault 在搜索结果中为每个项目显示的文本数量。默认值是 128。

-CreateAttachmentPreview

Enterprise Vault 是否创建附件内容的预览。请注意,在此版本的 Enterprise Vault 中无法查看这些预览。默认值为 $false

-IsADefaultPolicy

该策略是否为默认策略。默认值为 $false

-Description

Exchange 邮箱策略的说明。说明最多可以包含 127 个字母数字、空格或特殊字符。

-SiteId

在其中配置策略的 Enterprise Vault 站点的目录条目 ID。

-EntryId

策略的目录条目 ID。

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

    在名为 Default Exchange Mailbox Policy 的策略中设置属性。假设已将默认 Exchange 邮箱策略配置为使用自定义快捷方式。

    此示例将 DisplayAttachmentsAs 属性设置为在自定义快捷方式中包括指向附件的链接列表。

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

    更改名为 Default Exchange Mailbox Policy 的策略中的归档策略属性。归档策略已更改,它现在取决于时间。将首先归档大于 5 MB (SizePriority/MinimumItemSizeKB) 且超过 2 个月 (MinimumArchiveAge/MinimumArchiveAgeUnits) 的项目。3 年的时间限制(ArchiveItemsOlderThanArchiveItemsOlderThanUnits)不适用于这些大项目。MinimumArchiveAgeMinimumArchiveAgeUnits 让 Enterprise Vault 无法归档任何短于 2 个月的项目。

    要使新策略生效,请使用 Exchange 邮箱任务属性中的“同步”选项卡同步目标邮箱。

输出

无。

相关的 cmdlet