-ContentFilter 参数的可筛选属性

 

适用于: Exchange Server 2010 SP2, Exchange Server 2010 SP3

上一次修改主题: 2015-09-10

本主题列出了 ContentFilter 参数的可筛选属性。ContentFilter 参数用于将邮件导出到与筛选器匹配的 .pst 文件。ContentFilter 参数用在 New-MailboxExportRequest cmdlet 中。

可筛选属性

ContentFilter 参数的许多属性都接受通配符。如果使用通配符,请使用 -like 运算符,而不要使用 -eq 运算符。-like 运算符可用于查找多种类型(诸如字符串)的模式匹配项,而 -eq 运算符可用于查找完全匹配项。

下表包含 ContentFilter 参数的可筛选属性列表。此表列出了属性的名称、说明、可接受的值以及语法示例。有关 OPATH 筛选器的详细信息,请参阅在收件人命令中创建筛选器

属性

说明

示例语法

All

此属性返回在任何索引属性中具有特定字符串的所有邮件。例如,如果要导出以“Ayla”作为收件人、发件人或在邮件正文中提到该名称的所有邮件,则使用此属性。

字符串

通配符

-ContentFilter {All -like '*Ayla*'}

Attachment

此属性返回在附件内容或附件文件名中包含指定字符串的邮件。

字符串

通配符

-ContentFilter {Attachment -like '*.jpg'}

Body

此属性返回邮件正文中包含指定字符串的邮件。

字符串

通配符

-ContentFilter {Body -like '*prospectus*'}

Category

此属性返回具有匹配类别的邮件。类别是由用户或收件箱规则设置的。

字符串

通配符

-ContentFilter {Category -like '*Blue*'}

Expires

此属性返回具有指定的过期时间戳的邮件。

日期时间戳

-ContentFilter {Expires -lt '01/01/2010'}

HasAttachment

此属性返回带有或不带附件的邮件。

布尔值

$true$false

-ContentFilter {HasAttachment -eq $true}

Importance

此属性返回具有指定的重要性级别的邮件。

0 或者“低”

1 或者“普通”

2 或者“高”

-ContentFilter {Importance -eq 'high'}
-ContentFilter {Importance -eq 2}

IsFlagged

此属性返回已由用户或收件箱规则标记的邮件。

布尔值

$true$false

-ContentFilter {IsFlagged -eq $true}

IsRead

此属性返回用户已阅读或未阅读的邮件。

布尔值

$true$false

-ContentFilter {IsRead -eq $true}

MessageKind

此属性返回指定类型的邮件。

电子邮件

日历

任务

注释

文档

日记

联系人

InstantMessage

语音邮件

传真

文章

RSSFeed

-ContentFilter {MessageKind -eq 'Calendar'}
-ContentFilter {MessageKind -ne 'Email'}

MessageLocalee

此属性返回指定区域设置的邮件。

CultureInfo

-ContentFilter {MessageLocale -ne 'en-US'}
-ContentFilter {MessageLocale -eq 'tr-TR'}

PolicyTag

此属性返回带有策略标记的邮件。Exchange 存储仍然将策略标记作为 GUID。因此,字符串既可以包含随后由 PR_POLICY_TAG 搜索的显式 GUID 值,也可以包含通配符字符串。

如果提供的值不是 GUID,则命令会使用 Active Directory 信息将名称解析为 GUID。

字符串

通配符

-ContentFilter {PolicyTag -ne '00000000-0000-0000-0000-000000000000'}

Received

此属性返回接收的带有指定接收时间戳的邮件。

日期时间戳

-ContentFilter {Received -lt '01/01/2010 9:00'}
-ContentFilter {(Received -lt '01/01/2010') -and (Received -gt '01/01/2009')}

Sent

此属性返回发送的带有指定发送时间戳的邮件。

日期时间戳

-ContentFilter {Sent -lt '01/01/2010 9:00'}
-ContentFilter {(Sent -lt '01/01/2010') -and (Sent -gt '01/01/2009')}

Size

此属性返回特定大小的邮件。

B(字节)

KB(千字节)

MB(兆字节)

-ContentFilter {Size -gt '10KB'}

Subject

此属性返回邮件主题中包含指定字符串的邮件。

字符串

通配符

-ContentFilter {Subject -like '*meeting*'}

 © 2010 Microsoft Corporation。保留所有权利。