Set-RASNotification
SYNOPSIS
Update notification.
SYNTAX
Set-RASNotification -Id <uint> [-AllServers <bool>] [-Direction {RisesAbove | LowersBelow}]
[-Enabled <bool>] [-EnableGracePeriod <bool>] [-EnableInterval <bool>] [-ExecuteScript <bool>]
[-GracePeriod <uint>] [-Interval <uint>] [-Recipients <string[]>] [-ScriptId <uint>]
[-ScriptObject <NotificationScript>] [-SendEmail <bool>] [-TargetIds <List`1>]
[-TargetType {AllServers | RDSHostPools | VDIHostPools | AVDHostPools | RemotePCs | SecureGateways | Brokers | EnrollmentServers | ForceAllAgents}]
[-Threshold <uint>] [-WaitUntilRecovered <bool>] [<CommonParameters>]Set-RASNotification -InputObject <Notification> [-AllServers <bool>]
[-Direction {RisesAbove | LowersBelow}] [-Enabled <bool>] [-EnableGracePeriod <bool>]
[-EnableInterval <bool>] [-ExecuteScript <bool>] [-GracePeriod <uint>] [-Interval <uint>]
[-Recipients <string[]>] [-ScriptId <uint>] [-ScriptObject <NotificationScript>]
[-SendEmail <bool>] [-TargetIds <List`1>]
[-TargetType {AllServers | RDSHostPools | VDIHostPools | AVDHostPools | RemotePCs | SecureGateways | Brokers | EnrollmentServers | ForceAllAgents}]
[-Threshold <uint>] [-WaitUntilRecovered <bool>] [<CommonParameters>]DESCRIPTION
Updates the selected notification with new settings.
EXAMPLES
Example 1
Changes notification of Id 1 to be a License notification with grace period of 22min.
Example 2
Changes notification of Id 2 to be a CPU notification with a raises above 50% rule.
PARAMETERS
-InputObject
InputObject from pipeline or by parameter.
Type reference: Notification
-Id
Notification ID.
-Enabled
Enable/Disable notification.
-GracePeriod
Notification grace period (minutes).
-EnableGracePeriod
Enable/Disable grace period.
-Recipients
Notification recipients.
-SendEmail
Enable/Disable email notification.
-ScriptId
Use script of given ID.
-ScriptObject
Script object.
Type reference: Notification
-ExecuteScript
Enable/Disable notification scripts.
-Interval
Notification interval (minutes).
-EnableInterval
Enable/Disable notification intervals.
-WaitUntilRecovered
Wait until recovered.
-AllServers
All servers in site.
-TargetType
Target type.
Possible values: AllServers, RDSHostPools, VDIHostPools, AVDHostPools, RemotePCs, SecureGateways, Brokers, EnrollmentServers, ForceAllAgents
Type reference: TargetType
-TargetIds
Target IDs.
-Threshold
Tolerance value which triggers notification.
-Direction
Threshold direction.
Possible values: RisesAbove, LowersBelow
Type reference: ThresholdDirection
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Notification
OUTPUTS
None
RELATED LINKS
Last updated