New-FsrmClassificationRule

New-FsrmClassificationRule

Creates an automatic classification rule.

構文

Parameter Set: cim:CreateInstance0
New-FsrmClassificationRule [-Name] <String> -ClassificationMechanism <String> -Namespace <String[]> -Property <String> [-AsJob] [-CimSession <CimSession[]> ] [-ContentRegularExpression <String[]> ] [-ContentString <String[]> ] [-ContentStringCaseSensitive <String[]> ] [-Description <String> ] [-Disabled] [-Flags <RuleFlagsEnum[]> ] [-Parameters <String[]> ] [-PropertyValue <String> ] [-ReevaluateProperty <RuleReevaluatePropertyEnum> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The New-FsrmClassificationRule cmdlet creates an automatic classification rule on the server. Each rule sets the value for a single property. By default, a rule runs only once and ignores files that already have a property value assigned. However, you can configure a rule to evaluate files regardless of whether a value is already assigned to the property.

パラメーター

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。

エイリアス

Session

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ClassificationMechanism<String>

Specifies the name of a valid classification mechanism available on the server for assigning the property value.

The classification mechanisms are provided by a series of plug-ins that are included with Windows Server® 2012 or produced by you or an ISV.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ContentRegularExpression<String[]>

Specifies an array of regular expressions for pattern matching.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ContentString<String[]>

Specifies an array of strings for the content classifier to search for.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ContentStringCaseSensitive<String[]>

Specifies an array of case sensitive strings for the content classifier to search for.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Description<String>

Specifies a description for the classification rule.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Disabled

Indicates that the classification rule is disabled.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Flags<RuleFlagsEnum[]>

Specifies an array of flags that defines the possible states of the rule. このパラメーターに対して使用できる値:

-- ClearAutomaticallyClassifiedProperty. Integer value 1024.
-- ClearManuallyClassifiedProperty. Integer value 2048.
-- Deprecated. Integer value 4096.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Name<String>

Specifies a name for the classification rule.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Namespace<String[]>

Specifies an array of namespaces where the rule is applied. Each value must be either a value of the FolderType property defined on the server (using the format "[Folder type property name=<value>]") or a static path.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Parameters<String[]>

Specifies an array of strings using the format <name>=<value>. The File Classification Infrastructure and other management tools use these parameters.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Property<String>

Specifies the name of a classification property definition to set. Specify the value of the Name property in a FsrmClassificationPropertyDefinition object.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-PropertyValue<String>

Specifies the property value that the rule will assign. The property value that you set must be an valid value supported by the classification mechanism that you specify in the ClassificationMechanism parameter.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ReevaluateProperty<RuleReevaluatePropertyEnum>

Specifies the evaluation policy of the rule. このパラメーターに対して使用できる値:
-- Never: Assign values to properties only if that property does not already have a value for the file.
-- Overwrite: Reclassify files when the files change and overwrite this property.
-- Aggregate: Reclassify files when the files change and aggregate the new value for the property with the existing value.

エイリアス

なし

必須?

false

位置は?

named

既定値

Never

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ThrottleLimit<Int32>

このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0 を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Create a classification rule

This command creates a classification rule that marks any files as Impact=High if the files contain the word "Confidential" and the files do not already have an Impact property.

PS C:\> New-FsrmClassificationRule -Name "Find confidential files" -Namespace @("C:\shares\CtrShare03") -Property "Impact" -PropertyValue "High" -ClassificationMechanism "Content Classifier" -ContentString "Confidential"

Example 2: Create a classification rule and overwrite the property value

This command creates a classification rule that marks any files as Impact=High if they contain the word "Confidential", and overwrites any existing Impact property value.

PS C:\> New-FsrmClassificationRule -Name "Find confidential files" -Namespace @("C:\shares\CtrShare03") -Property "Impact" -PropertyValue "High" -ClassificationMechanism "Content Classifier" -ContentString "confidential" -ReevaluateProperty Overwrite

関連トピック

Get-FsrmClassificationRule

Set-FsrmClassificationRule

Remove-FsrmClassificationRule

Get-FsrmClassificationPropertyDefinition