Set-RASNotificationResource

NAME

Set-RASNotificationResource

SYNOPSIS

Update resource notification.

SYNTAX

Set-RASNotificationResource [-Idarrow-up-right] <uint> [-AllServersarrow-up-right <bool>] [-Directionarrow-up-right {RisesAbove | LowersBelow}] [-Enabledarrow-up-right <bool>] [-EnableGracePeriodarrow-up-right <bool>] [-EnableIntervalarrow-up-right <bool>] [-ExecuteScriptarrow-up-right <bool>] [-GracePeriodarrow-up-right <uint>] [-Intervalarrow-up-right <uint>] [-Recipientsarrow-up-right <string[]>] [-ScriptIdarrow-up-right <uint>] [-ScriptObjectarrow-up-right <NotificationScriptarrow-up-right>] [-SendEmailarrow-up-right <bool>] [-TargetIdsarrow-up-right <List`1>] [-TargetTypearrow-up-right {AllServers | RDSHostPools | RDSHGroups | VDIHostPools | VDIPools | AVDHostPools | RemotePCs | SecureGateways | Gateways | Brokers | PublishingAgents | EnrollmentServers | ForceAllAgents}] [-Thresholdarrow-up-right <uint>] [-WaitUntilRecoveredarrow-up-right <bool>] [<CommonParametersarrow-up-right>] Set-RASNotificationResource [-InputObjectarrow-up-right] <NotificationResourcearrow-up-right> [-AllServersarrow-up-right <bool>] [-Directionarrow-up-right {RisesAbove | LowersBelow}] [-Enabledarrow-up-right <bool>] [-EnableGracePeriodarrow-up-right <bool>] [-EnableIntervalarrow-up-right <bool>] [-ExecuteScriptarrow-up-right <bool>] [-GracePeriodarrow-up-right <uint>] [-Intervalarrow-up-right <uint>] [-Recipientsarrow-up-right <string[]>] [-ScriptIdarrow-up-right <uint>] [-ScriptObjectarrow-up-right <NotificationScriptarrow-up-right>] [-SendEmailarrow-up-right <bool>] [-TargetIdsarrow-up-right <List`1>] [-TargetTypearrow-up-right {AllServers | RDSHostPools | RDSHGroups | VDIHostPools | VDIPools | AVDHostPools | RemotePCs | SecureGateways | Gateways | Brokers | PublishingAgents | EnrollmentServers | ForceAllAgents}] [-Thresholdarrow-up-right <uint>] [-WaitUntilRecoveredarrow-up-right <bool>] [<CommonParametersarrow-up-right>]

DESCRIPTION

Updates the selected resource notification with new settings.

PARAMETERS

-Threshold <uint> Tolerance value which triggers notification.

        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Direction <ThresholdDirectionarrow-up-right> Threshold direction. Possible values: RisesAbove, LowersBelow

-InputObject <NotificationResourcearrow-up-right> InputObject from pipeline or by parameter.

-Id <uint> Notification ID.

-Enabled <bool> Enable/Disable notification.

-GracePeriod <uint> Notification grace period (minutes).

-EnableGracePeriod <bool> Enable/Disable grace period.

-Recipients <string[]> Notification recipients.

-SendEmail <bool> Enable/Disable email notification.

-ScriptId <uint> Use script of given ID.

-ScriptObject <NotificationScriptarrow-up-right> Script object.

-ExecuteScript <bool> Enable/Disable notification scripts.

-Interval <uint> Notification interval (minutes).

-EnableInterval <bool> Enable/Disable notification intervals.

-WaitUntilRecovered <bool> Wait until recovered.

-AllServers <bool> All servers in site.

-TargetType <TargetTypearrow-up-right> Target type. Possible values: AllServers, RDSHostPools, RDSHGroups, VDIHostPools, VDIPools, AVDHostPools, RemotePCs, SecureGateways, Gateways, Brokers, PublishingAgents, EnrollmentServers, ForceAllAgents

-TargetIds <List`1> Target IDs.

<CommonParameters>

INPUTS

NotificationResourcearrow-up-right

OUTPUTS

-none-

EXAMPLES

---------- EXAMPLE 1 ---------- Set-RASNotificationResource -Id 1 -Type CPUEvent -Threshold 50 -Direction RisesAbove -Enabled Changes resource notification of Id 1 to be a CPU notification with a raises above 50% rule.

Last updated