Skip to content

FSRMClassification

dscbot edited this page Jun 16, 2024 · 3 revisions

FSRMClassification

Parameters

Parameter Attribute DataType Description Allowed Values
Id Key String This is a unique identifier for this resource.
Continuous Write Boolean Enable FSRM Classification continuous mode for new files.
ContinuousLog Write Boolean Enable FSRM Classification continuous mode logging.
ContinuousLogSize Write UInt32 The maximum number of KB that can be used for the continuous mode log file.
ExcludeNamespace Write StringArray[] An array of Namespaces that will be excluded from FSRM Classification.
ScheduleMonthly Write UInt32Array[] An array of days of the month the FSRM Classification should run on.
ScheduleWeekly Write StringArray[] An array of named days of the week the FSRM Classification should run on.
ScheduleRunDuration Write SInt32 The maximum number of hours the FSRM Classification can run for. Setting this to -1 will disable this.
ScheduleTime Write String A string containing the time of day the FSRM Classification should run at.
LastError Read String
Status Read String

Description

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

Examples

Example 1

This will configure the FSRM Classification settings on this server. It enables Continous Mode, Logging and sets the maximum Log size to 2 MB. The Classification schedule is also set to Monday through Wednesday at 11:30pm and will run a maximum of 4 hours.

Configuration FSRMClassification_Config
{
    Import-DscResource -Module FSRMDsc

    Node localhost
    {
        FSRMClassification FSRMClassificationSettings
        {
            Id                  = 'Default'
            Continuous          = $true
            ContinuousLog       = $true
            ContinuousLogSize   = 2048
            ScheduleWeekly      = 'Monday', 'Tuesday', 'Wednesday'
            ScheduleRunDuration = 4
            ScheduleTime        = '23:30'
        } # End of FSRMClassification Resource
    } # End of Node
} # End of Configuration