New-FsrmClassificationRule

New-FsrmClassificationRule

Creates an automatic classification rule.

Sintaxis

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

Descripción detallada

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.

Parámetros

-AsJob

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

Session

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ContentRegularExpression<String[]>

Specifies an array of regular expressions for pattern matching.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ContentString<String[]>

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ContentStringCaseSensitive<String[]>

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Description<String>

Specifies a description for the classification rule.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Disabled

Indicates that the classification rule is disabled.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Flags<RuleFlagsEnum[]>

Specifies an array of flags that defines the possible states of the rule. Los valores aceptables para este parámetro son los siguientes:

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Name<String>

Specifies a name for the classification rule.

Alias

ninguno

¿Requerido?

true

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Parameters<String[]>

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Property<String>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ReevaluateProperty<RuleReevaluatePropertyEnum>

Specifies the evaluation policy of the rule. Los valores aceptables para este parámetro son los siguientes:
-- 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.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

Never

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ThrottleLimit<Int32>

Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Confirm

Solicita confirmación antes de ejecutar el cmdlet.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

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

Temas relacionados

Get-FsrmClassificationRule

Set-FsrmClassificationRule

Remove-FsrmClassificationRule

Get-FsrmClassificationPropertyDefinition