Skip to content

FSRMClassification

Daniel Scott-Raynsford edited this page Sep 19, 2017 · 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 String[] An array of Namespaces that will be excluded from FSRM Classification.
ScheduleMonthly Write Uint32[] An array of days of the month the FSRM Classification should run on.
ScheduleWeekly Write String[] 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 Example
{
    param
    (
        [Parameter()]
        [System.String[]]
        $NodeName = 'localhost'
    )

    Import-DscResource -Module FSRMDsc

    Node $NodeName
    {
        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