Get-ContentFilterPhrase

 

適用版本: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1

上次修改主題的時間: 2007-06-28

使用 Get-ContentFilterPhrase 指令程式可檢視內容篩選器代理程式所處理的一個或所有自訂文字。

語法

Get-ContentFilterPhrase [-Identity <ContentFilterPhraseIdParameter>] [-DomainController <Fqdn>]

Get-ContentFilterPhrase [-DomainController <Fqdn>] [-Phrase <ContentFilterPhraseIdParameter>]

詳細描述

若要執行 Get-ContentFilterPhrase 指令程式,您使用的帳戶必須已委派下列資格:

  • Exchange 僅檢視管理角色

若要在已安裝 Edge Transport server role 的電腦上執行 Get-ContentFilterPhrase 指令程式,則必須使用該電腦之本機 Administrators 群組成員的帳戶進行登入。

如需管理 Microsoft Exchange Server 2007 所需之權限、委派角色以及權利的相關資訊,請參閱權限考量

參數

參數 必要 類型 描述

DomainController

選用

Microsoft.Exchange.Data.Fqdn

若要指定將此組態變更寫入至 Active Directory 目錄服務之網域控制站的網域全名 (FQDN),請在命令中加入 DomainController 參數。執行 Edge Transport server role 的電腦不支援 DomainController 參數。Edge Transport server role 只會讀取和寫入至本機 ADAM 執行個體。

Identity

選用

Microsoft.Exchange.Configuration.Tasks.ContentFilterPhraseIdParameter

使用 Identity 參數可顯示特定的自訂文字或字詞。Identity 參數可指定您要檢視的字詞。您必須以雙引號括住 Identity 參數。例如,如果您想要取得 BadWord 識別 This is a bad phrase 的自訂文字組態資料,請以雙引號括住此字詞,如下所示:"This is a bad phrase"

對於此命令來說,Identity 參數與 Phrase 參數沒有任何不同。

Phrase

選用

Microsoft.Exchange.Configuration.Tasks.ContentFilterPhraseIdParameter

使用 Phrase 參數來顯示特定自訂文字。Phrase 參數是 ContentFilterPhrase 組態中的 Phrase 參數。您必須以雙引號括住 Phrase 參數。例如,如果您想要取得 BadWord 文句 This is a bad phrase 的自訂文字組態資料,請以雙引號括住此文句如右:"This is a bad phrase"

輸入類型

傳回類型

錯誤

錯誤 描述

 

範例

下列程式碼範例會示範 Get-ContentFilterPhrase 指令程式的語法。

第一個範例會示範如何使用 Get-ContentFilterPhrase 指令程式,傳回執行命令的電腦所儲存的所有自訂文字。

第二個範例則會示範如何使用 Get-ContentFilterPhrase 指令程式,傳回 Phrase 參數所指定的特定自訂文字。在此範例中,自訂文字是 BadWord 字詞 (This is a bad phrase)。

Get-ContentFilterPhrase
Get-ContentFilterPhrase -Phrase "This is a bad phrase"

若要確保您目前閱讀的是最新資訊,並尋找其他的 Exchange Server 2007 說明文件,請造訪 Exchange Server 技術資源中心.