For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-RASNotification

NAME

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.

PARAMETERS

InputObject (Notification)

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 (Notification)

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 (TargetType)

Target type.

Possible values: AllServers, RDSHostPools, VDIHostPools, AVDHostPools, RemotePCs, SecureGateways, Brokers, EnrollmentServers, ForceAllAgents

TargetIds (List`1)

Target IDs.

Threshold (uint)

Tolerance value which triggers notification.

Direction (ThresholdDirection)

Threshold direction.

Possible values: RisesAbove, LowersBelow

(CommonParameters)

INPUTS

Notification

OUTPUTS

-none-

---------- EXAMPLE 1 ----------

Set-RASNotification -Id 1 -Type License -Enabled $true -GracePeriod 22

Changes notification of Id 1 to be a License notification with grace period of 22min. ---------- EXAMPLE 2 ----------

Set-RASNotification -Id 2 -Type CPUEvent -Threshold 50 -Direction RisesAbove -Enabled

Changes notification of Id 2 to be a CPU notification with a raises above 50% rule.

Last updated