Set-RASRDSScheduleMessage

NAME

Set-RASRDSScheduleMessage

SYNOPSIS

Modifies schedule message information for an RDS Schedule Message.

SYNTAX

Set-RASRDSScheduleMessage [-RDSSchedObject] <RDSSchedItem> -Id <uint> [-Enabled <bool>] [-Message <string>] [-MessageTitle <string>] [-SendMsgSecs <uint>] [-SendMsgWhen <SendMsgWhen> {Before | After}] [<CommonParameters>]

Set-RASRDSScheduleMessage [-RDSSchedName] <string> [[-SiteId] <uint>] -Id <uint> [-Enabled <bool>] [-Message <string>] [-MessageTitle <string>] [-SendMsgSecs <uint>] [-SendMsgWhen <SendMsgWhen> {Before | After}] [<CommonParameters>]

Set-RASRDSScheduleMessage [-RDSSchedId] <uint> -Id <uint> [-Enabled <bool>] [-Message <string>] [-MessageTitle <string>] [-SendMsgSecs <uint>] [-SendMsgWhen <SendMsgWhen> {Before | After}] [<CommonParameters>]

DESCRIPTION

Modifies schedule message information for an RDS Schedule Message.

PARAMETERS


-Id <uint>
Scheduler job message ID.

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

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

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

-MessageTitle <string>
The title of the message.

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

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

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

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

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

-SendMsgWhen <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

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

-RDSSchedObject <RDSSchedItem>
An object of type RDSSchedItem representing the target scheduler job.

To obtain the object, use the Get-RDSSchedule cmdlet.

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

-RDSSchedName <string>
Scheduler job name.

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

-SiteId <uint>
Site ID from which to retrieve the schedule job.

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

-RDSSchedId <uint>
Scheduler job ID.

        Required?                    true
        Position?                    0
        Default value                0
        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

RDSSchedItem

OUTPUTS

-none-

EXAMPLES


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

Set-RASRDSScheduleMessage -RDSSchedName "RDSSchedItem" -Id 1 -Message "Testing"

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

---------- EXAMPLE 2 ----------

Set-RASRDSScheduleMessage -RDSSchedId 1 -Id 1 -Message "Testing"

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

RELATED LINKS