DSCResources/DSC_FSRMQuotaTemplateAction/en-US/about_FSRMQuotaTemplateAction.help.txt
.NAME
FSRMQuotaTemplateAction .DESCRIPTION This resource is used to configures Quota Template Actions for Quota Templates in File Server Resource Manager. .PARAMETER Name Key - String The name of the FSRM Quota Template that this Action is attached to. .PARAMETER Percentage Key - UInt32 This is the threshold percentage the action is attached to. .PARAMETER Type Key - String Allowed values: Email, Event, Command, Report The type of FSRM Action. .PARAMETER Ensure Write - String Allowed values: Present, Absent Specifies whether the FSRM Action should exist. .PARAMETER Subject Write - String The subject of the e-mail sent. Required when Type is Email. .PARAMETER Body Write - String The body text of the e-mail or event. Required when Type is Email or Event. .PARAMETER MailTo Write - String The mail to of the e-mail sent. Required when Type is Email. .PARAMETER MailCC Write - String The mail CC of the e-mail sent. Required when Type is Email. .PARAMETER MailBCC Write - String The mail BCC of the e-mail sent. Required when Type is Email. .PARAMETER EventType Write - String Allowed values: None, Information, Warning, Error The type of event created. Required when Type is Event. .PARAMETER Command Write - String The Command to execute. Required when Type is Command. .PARAMETER CommandParameters Write - String The Command Parameters. Required when Type is Command. .PARAMETER KillTimeOut Write - SInt32 Int containing kill timeout of the command. Required when Type is Command. .PARAMETER RunLimitInterval Write - SInt32 Int containing the run limit interval of the command. Required when Type is Command. .PARAMETER SecurityLevel Write - String Allowed values: None, LocalService, NetworkService, LocalSystem The security level the command runs under. Required when Type is Command. .PARAMETER ShouldLogError Write - Boolean Boolean specifying if command errors should be logged. Required when Type is Command. .PARAMETER WorkingDirectory Write - String The working directory of the command. Required when Type is Command. .PARAMETER ReportTypes Write - StringArray Array of Reports to create. Required when Type is Report. .EXAMPLE 1 This configuration will create a FSRM Quota Template called '5 GB Hard Limit', with a Hard Limit of 5GB and threshold percentages of 85 and 100. An e-mail action is bound to each threshold. An event action is also bound to the 85 percent threshold. Configuration FSRMQuotaTemplateAction_Config { Import-DscResource -Module FSRMDsc Node localhost { FSRMQuotaTemplate HardLimit5GB { Name = '5 GB Limit' Description = '5 GB Hard Limit' Ensure = 'Present' Size = 5GB SoftLimit = $false ThresholdPercentages = @( 85, 100 ) } # End of FSRMQuotaTemplate Resource FSRMQuotaTemplateAction HardLimit5GBEmail85 { Name = '5 GB Limit' Percentage = 85 Ensure = 'Present' Type = 'Email' Subject = '[Quota Threshold]% quota threshold exceeded' Body = 'User [Source Io Owner] has exceed the [Quota Threshold]% quota threshold for quota on [Quota Path] on server [Server]. The quota limit is [Quota Limit MB] MB and the current usage is [Quota Used MB] MB ([Quota Used Percent]% of limit).' MailBCC = '' MailCC = 'fileserveradmins@contoso.com' MailTo = '[Source Io Owner Email]' DependsOn = "[FSRMQuotaTemplate]HardLimit5GB" } # End of FSRMQuotaTemplateAction Resource FSRMQuotaTemplateAction HardLimit5GBEvent85 { Name = '5 GB Limit' Percentage = 85 Ensure = 'Present' Type = 'Event' Body = 'User [Source Io Owner] has exceed the [Quota Threshold]% quota threshold for quota on [Quota Path] on server [Server]. The quota limit is [Quota Limit MB] MB and the current usage is [Quota Used MB] MB ([Quota Used Percent]% of limit).' EventType = 'Warning' DependsOn = "[FSRMQuotaTemplate]HardLimit5GB" } # End of FSRMQuotaTemplateAction Resource FSRMQuotaTemplateAction HardLimit5GBEmail100 { Name = '5 GB Limit' Percentage = 100 Ensure = 'Present' Type = 'Email' Subject = '[Quota Threshold]% quota threshold exceeded' Body = 'User [Source Io Owner] has exceed the [Quota Threshold]% quota threshold for quota on [Quota Path] on server [Server]. The quota limit is [Quota Limit MB] MB and the current usage is [Quota Used MB] MB ([Quota Used Percent]% of limit).' MailBCC = '' MailCC = 'fileserveradmins@contoso.com' MailTo = '[Source Io Owner Email]' DependsOn = "[FSRMQuotaTemplate]HardLimit5GB" } # End of FSRMQuotaTemplateAction Resource } # End of Node } # End of Configuration |