Skip to content

FSRMFileGroup

dscbot edited this page Jun 16, 2024 · 3 revisions

FSRMFileGroup

Parameters

Parameter Attribute DataType Description Allowed Values
Name Key String The name of the FSRM File Group.
Description Write String The description for the FSRM File Group.
Ensure Write String Specifies whether the FSRM File Group should exist. Present, Absent
IncludePattern Write StringArray[] An array of file patterns to include in this FSRM File Group.
ExcludePattern Write StringArray[] An array of file patterns to exclude in this FSRM File Group.

Description

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

Examples

Example 1

This configuration will create a FSRM File Group called 'Portable Document Files'.

Configuration FSRMFileGroup_Config
{
    Import-DscResource -Module FSRMDsc

    Node localhost
    {
        FSRMFileGroup FSRMFileGroupPortableFiles
        {
            Name           = 'Portable Document Files'
            Description    = 'Files containing portable document formats'
            Ensure         = 'Present'
            IncludePattern = '*.eps', '*.pdf', '*.xps'
        } # End of FSRMFileGroup Resource
    } # End of Node
} # End of Configuration