Add-RASScheduleMessage

NAME

Add-RASScheduleMessage

SYNOPSIS

Adds schedule message information for a Schedule.

SYNTAX

Add-RASScheduleMessage [-Idarrow-up-right] <uint> -Messagearrow-up-right <string> -MessageTitlearrow-up-right <string> -ObjTypearrow-up-right {RDS | VDI | AVD} [-Enabledarrow-up-right <bool>] [-SendMsgSecsarrow-up-right <uint>] [-SendMsgWhenarrow-up-right {Before | After}] [-TargetTypearrow-up-right {Host | HostPool}] [<CommonParametersarrow-up-right>] Add-RASScheduleMessage [-Namearrow-up-right] <string> [[-SiteIdarrow-up-right] <uint>] -Messagearrow-up-right <string> -MessageTitlearrow-up-right <string> -ObjTypearrow-up-right {RDS | VDI | AVD} [-Enabledarrow-up-right <bool>] [-SendMsgSecsarrow-up-right <uint>] [-SendMsgWhenarrow-up-right {Before | After}] [-TargetTypearrow-up-right {Host | HostPool}] [<CommonParametersarrow-up-right>]

DESCRIPTION

Adds schedule message information for a Schedule.

PARAMETERS

-Enabled <bool> Whether to enable or disable the message.

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

-MessageTitle <string> The title of the message.

-Message <string> A message that should be sent to users before the job starts.

-SendMsgSecs <uint> Time interval in seconds before the job starts when the message to users should be sent.

-SendMsgWhen <SendMsgWhenarrow-up-right> Whether the message is sent Before/After the schedule is triggered. Send Message When can only be set to After in the case of Reboot. Possible values: Before, After

-Name <string> Scheduler job name.

-SiteId <uint> Site ID to modify the schedule job.

-Id <uint> Scheduler job ID.

-ObjType <ScheduleObjTypearrow-up-right> Schedule message object type. Possible values: RDS, VDI, AVD

-TargetType <ScheduleTargetTypearrow-up-right> Schedule target type. Possible values: Host, HostPool

<CommonParameters>

INPUTS

-none-

OUTPUTS

ScheduleMessagearrow-up-right

EXAMPLES

---------- EXAMPLE 1 ---------- Add-RASScheduleMessage -ObjType VDI -Name "SchedItem" -Enabled 0 -SendMsgSecs 60 -MessageTitle "messageTitle" -Message "messageBody" Adds a Message to the schedule item specified by name, set to send 1 minute after schedule trigger. ---------- EXAMPLE 2 ---------- Add-RASScheduleMessage -ObjType VDI -Id 2 -Enabled 1 -SendMsgSecs 120 -MessageTitle "messageTitle" -Message "messageBody" Adds a Message to the schedule item specified by id, set to send 2 minutes after schedule trigger.

Last updated