Set-RASSchedule
Modifies a Schedule.
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>] [<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>] [<CommonParameters>]
Set-RASSchedule [[-Name] <string>] [[-SiteId] <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>] [<CommonParameters>]
Modifies a Schedule property.
-Name <string> Scheduler job name.
-SiteId <uint> Site ID from which to retrieve the schedule job.
-Id <uint> Scheduler job ID.
-ObjType <ScheduleObjType> Schedule object type.
Possible values: RDS, VDI, AVD
-InputObject <Schedule> An object of type Schedule representing the target scheduler job.
To obtain the object, use the Get-RASSchedule command."
-NewName <string> A new name for the scheduler job.
-Enabled <bool> Whether to enable or disable the schedule.
-Description <string> Schedule description.
-StartDateTime <DateTime> Start time. Default: Now.
-DurationInSecs <double> Duration in seconds.
-Repeat <RepeatType> Repeat interval. Default: EveryWeek
Accepted values: Never, EveryDay, EveryWeek, Every2Weeks, EveryMonth, EveryYear.
Possible values: Never, EveryDay, EveryWeek, Every2Weeks, EveryMonth, EveryYear, SpecificDays
-SpecificDays <RepeatSpecificDays> Repeat on Specific Days.
Possible values: Never, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
-CompleteIn <uint> 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.
-PoolMembersType <uint> Whether to select the percentage or specific number of members to be started
-PercentageMembers <uint> Percentage of members to be started
-MembersToStart <uint> Specific number of members to be started
-PowerOnAssignedPoolMembers <uint> Power On Assigned Pool Members
-EnableDrainMode <bool> Whether to enable Drain Mode
-ForceServerRebootAfter <uint> Force server reboot after the specified time in seconds
-EnforceScheduleInactiveHost <bool> Enforce schedule for currently inactive host
-OnDisable <bool> What action to take on Disable
<CommonParameters>
-none-
---------- EXAMPLE 1 ----------
Set-RASSchedule "My Schedule" -ObjType RDS -Enabled $False
Disables the Schedule property specified by name. ---------- EXAMPLE 2 ----------
Set-RASSchedule -Id 10 -ObjType RDS -Enabled $False
Disables the Schedule property specified by ID. ---------- EXAMPLE 3 ----------
Set-RASSchedule $Schedule -Enabled $False
Disables the Schedule property specified by the $Schedule variable (an object of type Schedule).