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

Set-RASSchedule

SYNOPSIS

Modifies a Schedule.

SYNTAX

Set-RASSchedule [-Id] <uint> -ObjType {RDS | VDI | AVD} [-CompleteIn <uint>] [-Description <string>]
 [-DurationInSecs <double>] [-Enabled <bool>] [-EnableDrainMode <bool>]
 [-EnforceScheduleInactiveHost <bool>] [-ForceServerRebootAfter <uint>] [-MembersToStart <uint>]
 [-NewName <string>] [-OnDisable <bool>] [-PercentageMembers <uint>] [-PoolMembersType <uint>]
 [-PowerOnAssignedPoolMembers <uint>]
 [-Repeat {Never | EveryDay | EveryWeek | Every2Weeks | EveryMonth | EveryYear | SpecificDays}]
 [-SpecificDays {Never | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}]
 [-StartDateTime <DateTime>] [-TriggerOnlyIfSessionStateDown <bool>] [<CommonParameters>]
Set-RASSchedule [-InputObject] <Schedule> [-CompleteIn <uint>] [-Description <string>]
 [-DurationInSecs <double>] [-Enabled <bool>] [-EnableDrainMode <bool>]
 [-EnforceScheduleInactiveHost <bool>] [-ForceServerRebootAfter <uint>] [-MembersToStart <uint>]
 [-NewName <string>] [-OnDisable <bool>] [-PercentageMembers <uint>] [-PoolMembersType <uint>]
 [-PowerOnAssignedPoolMembers <uint>]
 [-Repeat {Never | EveryDay | EveryWeek | Every2Weeks | EveryMonth | EveryYear | SpecificDays}]
 [-SpecificDays {Never | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}]
 [-StartDateTime <DateTime>] [-TriggerOnlyIfSessionStateDown <bool>] [<CommonParameters>]

DESCRIPTION

Modifies a Schedule property.

EXAMPLES

Example 1

Disables the Schedule property specified by name.

Example 2

Disables the Schedule property specified by ID.

Example 3

Disables the Schedule property specified by the $Schedule variable (an object of type Schedule).

PARAMETERS

-Name

Scheduler job name.

-SiteId

Site ID from which to retrieve the schedule job.

-Id

Scheduler job ID.

-ObjType

Schedule object type.

Possible values: RDS, VDI, AVD

Type reference: ScheduleObjType

-InputObject

An object of type Schedule representing the target scheduler job.

To obtain the object, use the Get-RASSchedule command."

Type reference: Schedule

-NewName

A new name for the scheduler job.

-Enabled

Whether to enable or disable the schedule.

-Description

Schedule description.

-StartDateTime

Start time. Default: Now.

-DurationInSecs

Duration in seconds.

-Repeat

Repeat interval. Default: EveryWeek

Accepted values: Never, EveryDay, EveryWeek, Every2Weeks, EveryMonth, EveryYear.

Possible values: Never, EveryDay, EveryWeek, Every2Weeks, EveryMonth, EveryYear, SpecificDays

Type reference: RepeatType

-SpecificDays

Repeat on Specific Days.

Possible values: Never, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday

Type reference: RepeatSpecificDays

-CompleteIn

The duration of the scheduler task in seconds. Minimum: 60 seconds. Maximum: 2592000 seconds (30 days).

Default: 900 seconds for disable task, 600 seconds for reboot task.

-TriggerOnlyIfSessionStateDown

Specifies if 'Trigger only if a session state is "Down"' option is enabled or disabled.

Only available for reboot schedules for object types RDS and AVD.

-PoolMembersType

Whether to select the percentage or specific number of members to be started

-PercentageMembers

Percentage of members to be started

-MembersToStart

Specific number of members to be started

-PowerOnAssignedPoolMembers

Power On Assigned Pool Members

-EnableDrainMode

Whether to enable Drain Mode

-ForceServerRebootAfter

Force server reboot after the specified time in seconds

-EnforceScheduleInactiveHost

Enforce schedule for currently inactive host

-OnDisable

What action to take on Disable

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

Schedule

OUTPUTS

None

Last updated