New-RASNotificationEvent

NAME

New-RASNotificationEvent

SYNOPSIS

Creates new event notification.

SYNTAX

New-RASNotificationEvent [-Type] <RASNotificationEventType> {Agent | VDI | PubItem | License | Authentication} [-EnableGracePeriod <bool>] [-EnableInterval <SwitchParameter>] [-ExecuteScript <SwitchParameter>] [-GracePeriod <uint>] [-Interval <uint>] [-Recipients <string[]>] [-ScriptId <uint>] [-ScriptObject <RASNotificationScript>] [-SendEmail <bool>] [-SiteId <uint>] [-UseDefaults <bool>] [-WaitUntilRecovered <SwitchParameter>] [<CommonParameters>]

DESCRIPTION

Creates notifications for events such as license activation, agent disconect/connect etc.

PARAMETERS


-Type <RASNotificationEventType>
Notification type.

Possible values: Agent, VDI, PubItem, License, Authentication

        Required?                    true
        Position?                    0
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SiteId <uint>
Site id where notification event is setup.

Current site id is used if siteId is omitted.

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

-GracePeriod <uint>
Grace period after the notification was done.

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

-EnableGracePeriod <bool>
Enable/Disable grace period.

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

-Recipients <string[]>
Recipients to notify of the event.

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

-SendEmail <bool>
Enable/Disable email notification.

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

-ScriptId <uint>
Script to execute which has this id.

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

-ScriptObject <RASNotificationScript>
Script Object.

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

-ExecuteScript <SwitchParameter>

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

-EnableScripts <SwitchParameter>
This is an alias of the ExecuteScript parameter.

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

-UseDefaults <bool>
Use default settings

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

-Interval <uint>
Invocation interval (minutes).

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

-EnableInterval <SwitchParameter>
Enable/Disable notification intervals.

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

-WaitUntilRecovered <SwitchParameter>
Wait until recovered.

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

<CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters documentation. 

INPUTS

-none-

OUTPUTS

RASNotificationEvent

EXAMPLES


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

New-RASNotificationEvent -Type Agent

Creates a new notification for agent events.

RELATED LINKS