Enterprise Vault™ PowerShell Cmdlet
- Enterprise Vault PowerShell Cmdlet 简介
- 归档:Exchange
- 归档:FSA
- Get-EVFSAComputerSettings
- Get-EVFSAFileServer
- Get-EVFSAFolder
- Get-EVFSASiteSettings
- Get-EVFSAVolume
- New-EVFSAFileServer
- New-EVFSAFolder
- New-EVFSAVolume
- Remove-EVFSAFileServer
- Remove-EVFSAFolder
- Remove-EVFSAVolume
- Set-EVFSAComputerSettings
- Set-EVFSAFileServer
- Set-EVFSAFolder
- Set-EVFSASiteSettings
- Set-EVFSAVolume
- 归档:Skype for Business
- 归档:SMTP
- Get-EVSMTPHoldingFolder
- Get-EVSMTPMessageTrackingLogLocation
- Get-EVSMTPPolicy
- Get-EVSMTPServerSettings
- Get-EVSMTPTarget
- New-EVSMTPPolicy
- New-EVSMTPServerSettings
- New-EVSMTPTarget
- Remove-EVSMTPPolicy
- Remove-EVSMTPTarget
- Set-EVSMTPMessageTrackingLogLocation
- Set-EVSMTPPolicy
- Set-EVSMTPServerSettings
- Set-EVSMTPTarget
- Sync-EVSMTPServerSettings
- 备份
- Get-EVIndexSnapshotLocationBackupMode
- Set-EVIndexSnapshotLocationBackupMode
- Clear-EVIndexSnapshotLocationBackupMode
- Get-IndexLocationBackupMode
- Set-IndexLocationBackupMode
- Clear-IndexLocationBackUpMode
- Get-VaultStoreBackupMode
- Set-VaultStoreBackupMode
- Clear-VaultStoreBackupMode
- Set-EVIndexSnapshotLocation
- Get-EVIndexSnapshotLocation
- Remove-EVIndexSnapshotLocation
- New-EVIndexSnapshot
- Get-EVIndexSnapshot
- Remove-EVIndexSnapshot
- Restore-EVIndexSnapshot
- Get-EVIndexSnapshotRepository
- Remove-EVIndexSnapshotRepository
- Export-EVIndexData
- Import-EVIndexData
- 分类
- Disable-EVClassification
- Get-EVClassificationFCITags
- Get-EVClassificationPolicy
- Get-EVClassificationStatus
- Get-EVClassificationTestMode
- Get-EVClassificationVICTags
- Import-EVClassificationFCIRules
- Initialize-EVClassificationVIC
- Set-EVClassificationVICFIPSMode
- New-EVClassificationPolicy
- Publish-EVClassificationFCIRules
- Remove-EVClassificationPolicy
- Set-EVClassificationPolicy
- Set-EVClassificationTestMode
- 数据库
- IMAP 访问
- 索引
- 记录管理
- 保留计划
- 基于角色的管理
- 站点和服务器
- 任务和服务
- 保管库存储和归档
New-EVSMTPPolicy
New-EVSMTPPolicy 使用指定名称、说明和 X-HEADER列表创建一个新的 SMTP 策略。如果您未使用 -SiteID 参数指定站点 ID,且 New-EVSMTPPolicy 无法确定站点,则将提示您输入站点 ID。如果您指定的策略名称已存在,New-EVSMTPPolicy 将失败。
New-EVSMTPPolicy 由管理单元 Symantec.EnterpriseVault.PowerShell.AdminAPI.dll 提供。
New-EVSMTPPolicy [-SiteId] <String> [-Name] <String> [-Description <String>] [-XHeaders <Symantec.EnterpriseVault.Admin.SMTPXHeaders>] [<CommonParameters>]
表:New-EVSMTPPolicy 参数
参数 | 说明 |
|---|---|
-SiteId(必填) | 您要向其添加新 SMTP 策略的站点 ID。 |
-Name(必填) | 新 SMTP 策略的名称。 |
-Description | 新 SMTP 策略的说明。 |
-XHeaders | 要添加到新 SMTP 策略的 X-HEADER。 有关 X-HEADER列表管理的详细信息,在 PowerShell 提示符处键入 get-help about_SMTPXHeaders。 |
New-EVSMTPPolicy -SiteId 13E...example.com -Name "SMTP policy" -Description "SMTP policy created using PowerShell"
使用说明“使用 PowerShell 创建的 SMTP 策略”创建名为“SMTP 策略”的新 SMTP 策略。
您可以使用以下命令序列创建一个 X-HEADER 对象,向对象添加两个 X-HEADER,然后创建一个新 SMTP 策略:
$xheaders = New-Object Symantec.EnterpriseVault.Admin.SMTPXHeaders
创建一个 X-HEADER对象。
$xheaders.Add('x-code1')
$xheaders.Add('x-code2')
这些命令会将 X-HEADER“x-code1”和“x-code2”添加到 X-HEADER对象。
New-EVSMTPPolicy -Name "SMTP policy" -XHeaders $xheaders
创建一个名为“SMTP 策略”的新 SMTP 策略,向其添加新的 X-HEADER,并生成下列输出:
SiteId : 13E...example.com EntryId : 11E...example.com IsADefaultPolicy : False XHeaders : Symantec.EnterpriseVault.Admin.SMTPXHeaders Name : SMTP policy Description :
New-EVSMTPPolicy 返回 Symantec.EnterpriseVault.Admin.SMTPPolicy 类型的对象,其中包含下表中列出的属性。
表:Symantec.EnterpriseVault.Admin.SMTPPolicy 属性
名称 | 类型 | 说明 |
|---|---|---|
Description | 字符串 | SMTP 策略的说明。 |
EntryId | 字符串 | SMTP 策略的目录条目 ID。 |
IsADefaultPolicy | 布尔值 | 如果 SMTP 策略为默认策略,则为 $true,否则为 $false。 |
Name | 字符串 | SMTP 策略的名称。 |
SiteId | 字符串 | SMTP 策略所属的站点 ID。 |
XHeaders | 对象 | Symantec.EnterpriseVault.Admin.SMTPXHeaders:提供与 SMTP 策略相关联的 X-HEADER列表。有关 X-HEADER列表的详细信息,在 PowerShell 提示符处键入 get-help about_SMTPXHeaders。 |