FSRMFileScreen_UsingTemplate_Config.ps1

<#PSScriptInfo
.VERSION 1.0.0
.GUID ad79f76f-568e-4adb-80a2-57db7b9d53d7
.AUTHOR Daniel Scott-Raynsford
.COMPANYNAME
.COPYRIGHT (c) 2018 Daniel Scott-Raynsford. All rights reserved.
.TAGS DSCConfiguration
.LICENSEURI https://github.com/PlagueHO/FSRMDsc/blob/master/LICENSE
.PROJECTURI https://github.com/PlagueHO/FSRMDsc
.ICONURI
.EXTERNALMODULEDEPENDENCIES
.REQUIREDSCRIPTS
.EXTERNALSCRIPTDEPENDENCIES
.RELEASENOTES First version.
.PRIVATEDATA 2016-Datacenter,2016-Datacenter-Server-Core
#>


#Requires -module FSRMDsc

<#
    .DESCRIPTION
    This configuration will assign the 'Block Some Files' file screen template to the
    path 'D:\Users'. It will also force the File Screen assigned to this path to
    exactly match the 'Block Some Files' template. Any changes to the actions, include
    groups or active setting on the File Screen assigned to this path will cause
    the File Screen to be removed and reapplied.
#>

Configuration FSRMFileScreen_UsingTemplate_Config
{
    Import-DscResource -Module FSRMDsc

    Node localhost
    {
        FSRMFileScreen DUsersFileScreens
        {
            Path            = 'd:\users'
            Description     = 'File Screen for Blocking Some Files'
            Ensure          = 'Present'
            Template        = 'Block Some Files'
            MatchesTemplate = $true
        } # End of FSRMFileScreen Resource
    } # End of Node
} # End of Configuration