New-RASNotificationEvent
Last updated
Last updated
New-RASNotificationEvent
Creates new event notification.
New-RASNotificationEvent [-] {Agent | VDI | PubItem | License | Authentication | Tenant | FailedTunneledSess} [- <bool>] [- <bool>] [- <SwitchParameter>] [- <SwitchParameter>] [- <uint>] [- <uint>] [- <string[]>] [- <uint>] [- <>] [- <bool>] [- <uint>] [- <List`1>] [- {AllServers | RDSHostPools | RDSHGroups | VDIHostPools | VDIPools | AVDHostPools | RemotePCs | SecureGateways | Gateways | Brokers | PublishingAgents | EnrollmentServers | ForceAllAgents}] [- <SwitchParameter>] [<>]
Creates notifications for events such as license activation, agent disconect/connect etc.
-Type <> Notification type. Possible values: Agent, VDI, PubItem, License, Authentication, Tenant, FailedTunneledSess
-SiteId <uint> Site ID where notification event is setup. Current site ID is used if siteId is omitted.
-GracePeriod <uint> Grace period after the notification was done (minutes).
-EnableGracePeriod <bool> Enable/Disable grace period.
-Recipients <string[]> Recipients to notify of the event.
-SendEmail <bool> Enable/Disable email notification.
-ScriptId <uint> Script to execute which has this ID.
-ExecuteScript <SwitchParameter>
-Interval <uint> Invocation interval (minutes).
-EnableInterval <SwitchParameter> Enable/Disable notification intervals.
-WaitUntilRecovered <SwitchParameter> Wait until recovered.
-AllServers <bool> All servers in site.
-TargetIds <List`1> Target Ids.
<CommonParameters>
-none-
---------- EXAMPLE 1 ---------- New-RASNotificationEvent -Type Agent Creates a new notification for agent events.
-ScriptObject <> Script Object.
-TargetType <> Target type. Possible values: AllServers, RDSHostPools, RDSHGroups, VDIHostPools, VDIPools, AVDHostPools, RemotePCs, SecureGateways, Gateways, Brokers, PublishingAgents, EnrollmentServers, ForceAllAgents