Skip to content

FSRMClassificationProperty

dscbot edited this page Jun 16, 2024 · 3 revisions

FSRMClassificationProperty

Parameters

Parameter Attribute DataType Description Allowed Values
Name Key String The name of the FSRM Classification Property.
Type Required String The type of the FSRM Classification Property. OrderedList, MultiChoice, SingleChoice, String, MultiString, Integer, YesNo, DateTime
DisplayName Write String The display name for the FSRM Classification Property.
Description Write String The description for the FSRM Classification Property.
Ensure Write String Specifies whether the FSRM Classification Property should exist. Present, Absent
PossibleValue Write StringArray[] An array of possible values that this FSRM Classification Property can take on.
Parameters Write StringArray[] An array of parameters in the format = that can be used by the File Classification Infrastructure.

Description

This resource is used to configure Classification Property Definitions in File Server Resource Manager.

Examples

Example 1

This configuration will create a FSRM Single Choice Classification Property called Privacy.

Configuration FSRMClassificationProperty_SingleChoice_Config
{
    Import-DscResource -Module FSRMDsc

    Node localhost
    {
        FSRMClassificationProperty PrivacyClasificationProperty
        {
            Name          = 'Privacy'
            Type          = 'SingleChoice'
            DisplayName   = 'File Privacy'
            Description   = 'File Privacy Property'
            Ensure        = 'Present'
            PossibleValue = 'Top Secret', 'Secret', 'Confidential'
        } # End of FSRMClassificationProperty Resource
    } # End of Node
} # End of Configuration

Example 2

This configuration will create a FSRM Yes/No Classification Property called Confidential.

Configuration FSRMClassificationProperty_YesNo_Config
{
    Import-DscResource -Module FSRMDsc

    Node localhost
    {
        FSRMClassificationProperty ConfidentialFiles
        {
            Name        = 'Confidential'
            Type        = 'YesNo'
            Description = 'Is this file a confidential file'
            Ensure      = 'Present'
        } # End of FSRMClassificationProperty Resource
    } # End of Node
} # End of Configuration