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

Set-EVIndexSnapshotLocation 会在指定的 Enterprise Vault 站点的指定 Enterprise Vault 索引服务器上配置具有指定路径的索引快照位置。

语法
  • Set-EVIndexSnapshotLocation [-EVServerName <String>] -SnapshotLocationPath <String> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]

  • Set-EVIndexSnapshotLocation -SiteId <String> [-EVServerName <String>] -SnapshotLocationPath <String> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]

Set-EVIndexSnapshotLocation 会在指定的 Enterprise Vault 站点的指定 Enterprise Vault 索引服务器上配置具有指定路径的索引快照位置。

Set-EVIndexSnapshotLocation 会在指定的 Enterprise Vault 站点的所有 Enterprise Vault 索引服务器上配置具有指定路径的索引快照位置。

此命令还将停用 Enterprise Vault 索引服务器的现有活动索引快照位置。因此,与以前的索引快照位置相关的现有索引快照存储库将不会被用于创建索引数据的快照。新的索引快照位置将在重新启动 Enterprise Vault 索引服务器上的 Enterprise Vault Indexing Service 后生效,并且将为新配置的索引快照位置创建一个新的索引快照存储库。索引数据的下一个即时快照将是一个完整快照。

Set-EVIndexSnapshotLocation 由 Enterprise Vault Management Shell 加载的 Symantec.EnterpriseVault.PowerShell.AdminAPI.dll 提供。

参数

表:Set-EVIndexSnapshotLocation 参数

参数

描述

-SiteId

Enterprise Vault 站点的 ID,您想在每个 Enterprise Vault 索引服务器上配置具有指定路径的索引快照位置。

如果忽略此参数,Set-EVIndexSnapshotLocation 会从指定为 EVServerName 参数的 Enterprise Vault 索引服务器中检索 SiteId;否则,它会使用运行该命令的 Enterprise Vault 索引服务器的站点的 ID。可以使用 Get-EVSite 命令获取 SiteId。

-EVServerName

Enterprise Vault 索引服务器的名称,您要为其配置具有指定路径的索引快照位置。如果忽略此参数,Set-EVIndexSnapshotLocation 会使用运行该命令的 Enterprise Vault 索引服务器的主机名。

可以使用 Get-EVComputers 命令获取 Enterprise Vault 索引服务器名称。

-SnapshotLocationPath

您要配置的用于拍摄索引数据快照的目录的路径。该目录路径可以是在 Enterprise Vault 索引服务器上的本地路径,或者最好是在网络文件共享上。Enterprise Vault Service 帐户应该对这个位置有读取和写入的权限。此位置不应是根目录。

注意:

不支持映射网络驱动器的路径,因为 Elasticsearch 不允许。

-Confirm

您可以使用 Confirm 切换,用于禁止在执行此 cmdlet 时默认显示确认提示。要禁止显示确认提示,请使用语法 -Confirm:$False。必须在语法中包括冒号 (:)。

-WhatIf

WhatIf 切换指示命令模拟将在对象上执行的操作。通过使用 WhatIf 切换,您可以预览将发生的变化,而不应用任何这些变化。无需为 WhatIf 切换指定任何值。

示例
  • C:\PS> Set-EVIndexSnapshotLocation -SnapshotLocationPath "C:\Location1"

    配置“C:\Location1”作为当前执行此命令的 Enterprise Vault 索引服务器的索引快照位置。

  • C:\PS> Set-EVIndexSnapshotLocation -SnapshotLocationPath "\\Share1\Directory1" -ServerName SMTPEV2.domain.local

    配置“\\Share1\Directory1”作为 Enterprise Vault 索引服务器“SMTPEV2.domain.local”的索引快照位置。

  • C:\PS> Set-EVIndexSnapshotLocation -SnapshotLocationPath "\\Share1\Directory2" -ServerName SMTPEV2.domain.local

    配置“\\Share1\Directory2”作为 Enterprise Vault 索引服务器“SMTPEV2.domain.local”的索引快照位置。它还停用了 Enterprise Vault 索引服务器“SMTPEV2.domain.local”的现有活动索引快照位置“\\Share1\Directory1”。因此,与以前的索引快照位置相关的现有索引快照存储库将不会被用来创建索引数据。新的索引快照位置将在重新启动 Enterprise Vault 索引服务器“SMTPEV2.domain.local”上的 Enterprise Vault Indexing Service 后生效,并且将为新配置的索引快照位置创建一个新的索引快照存储库。索引数据的下一个即时快照将是一个完整快照。

  • C:\PS> Get-EVComputers | Set-EVIndexSnapshotLocation -SnapshotLocationPath "\\Share1\Directory3"

    配置“\\Share1\Directory3”作为 Get-EVComputers 命令返回的所有 Enterprise Vault 索引服务器的索引快照位置。

  • C:\PS> Set-EVIndexSnapshotLocation -SiteId 143D204F2CD9C674AAE40FB8058B96A351d10000SMTPEV2 -SnapshotLocationPath "\\Share1\Directory4"

    配置“\\Share1\Directory4”作为指定 Enterprise Vault 站点中所有 Enterprise Vault 索引服务器的索引快照位置。

  • C:\PS> Get-EVSite | Set-EVIndexSnapshotLocation -SnapshotLocationPath "\\Share1\Directory5"

    配置“\\Share1\Directory5”作为 Get-EVSite 命令返回的 Enterprise Vault 站点中的所有 Enterprise Vault 索引服务器的索引快照位置。

输出

Symantec.EnterpriseVault.Admin.IndexSnapshotLocation

此命令返回 Symantec.EnterpriseVault.Admin.IndexSnapshotLocation 类型的对象,其中包含以下属性:

名称

类型

描述

SiteId

字符串

配置索引快照位置的 Enterprise Vault 站点的 ID。

SiteNameOrId

字符串

配置索引快照位置的 Enterprise Vault 站点的名称或 ID。

EVServerEntryId

字符串

配置索引快照位置的 Enterprise Vault 索引服务器的 ID。

EVServerName

字符串

配置索引快照位置的 Enterprise Vault 索引服务器的名称。

Path

字符串

为索引快照位置配置的路径,索引快照存储库是在这里创建的,而索引数据快照存储在这里。

BackupMode

布尔值

指示索引快照位置是否处于备份模式。

Active

布尔值

指示索引快照位置是否处于活动状态。

LocationIdentity

数字

索引快照位置的标识号。

相关的 cmdlet