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

Set-RASScheduleMessage

SYNOPSIS

Modifies a Schedule Message from a Schedule Item.

SYNTAX

Set-RASScheduleMessage [-Id] <uint> -MessageId <uint> -ObjType {RDS | VDI | AVD} [-Enabled <bool>]
 [-Message <string>] [-MessageTitle <string>] [-SendMsgSecs <uint>] [-SendMsgWhen {Before | After}]
 [<CommonParameters>]
Set-RASScheduleMessage [-Name] <string> [[-SiteId] <uint>] -MessageId <uint>
 -ObjType {RDS | VDI | AVD} [-Enabled <bool>] [-Message <string>] [-MessageTitle <string>]
 [-SendMsgSecs <uint>] [-SendMsgWhen {Before | After}] [<CommonParameters>]

DESCRIPTION

Modifies a Schedule Message from a Schedule Item.

EXAMPLES

Example 1

Set-RASScheduleMessage -ObjType VDI -Name "SchedItem" -Enabled 0 -SendMsgSecs 60 -SendMsgWhen Before -MessageTitle "messageTitle" -Message "messageBody"

Modifies the specified message by id within the specified schedule item by name.

Example 2

Modifies the specified message by id within the specified schedule item by id.

PARAMETERS

-MessageId

Scheduler job message ID.

-Enabled

Whether to enable or disable the message.

-MessageTitle

The title of the message.

-Message

A message that should be sent to users before the job starts.

-SendMsgSecs

Time interval in seconds before the job starts when the message to users should be sent.

-SendMsgWhen

Whether the message is sent Before/After the schedule is triggered.

SendMsgWhen can only be set to After in the case of Reboot.

Possible values: Before, After

Type reference: SendMsgWhen

-Name

Scheduler job name.

-SiteId

Site ID to modify the schedule job.

-Id

Scheduler job ID.

-ObjType

Schedule message object type.

Possible values: RDS, VDI, AVD

Type reference: ScheduleObjType

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

None

OUTPUTS

None

Last updated