Set-RASSchedule
Last updated
Last updated
Set-RASSchedule
Modifies a Schedule.
Set-RASSchedule [-] <uint> - {RDS | VDI | AVD} [- <uint>] [- <string>] [- <double>] [- <bool>] [- <bool>] [- <bool>] [- <uint>] [- <uint>] [- <string>] [- <bool>] [- <uint>] [- <uint>] [- <uint>] [- {Never | EveryDay | EveryWeek | Every2Weeks | EveryMonth | EveryYear | SpecificDays}] [- {Never | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}] [- <DateTime>] [- {Host | HostPool}] [<>] Set-RASSchedule [-] <> [- <uint>] [- <string>] [- <double>] [- <bool>] [- <bool>] [- <bool>] [- <uint>] [- <uint>] [- <string>] [- <bool>] [- <uint>] [- <uint>] [- <uint>] [- {Never | EveryDay | EveryWeek | Every2Weeks | EveryMonth | EveryYear | SpecificDays}] [- {Never | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}] [- <DateTime>] [- {Host | HostPool}] [<>] Set-RASSchedule [[-] <string>] [[-] <uint>] - {RDS | VDI | AVD} [- <uint>] [- <string>] [- <double>] [- <bool>] [- <bool>] [- <bool>] [- <uint>] [- <uint>] [- <string>] [- <bool>] [- <uint>] [- <uint>] [- <uint>] [- {Never | EveryDay | EveryWeek | Every2Weeks | EveryMonth | EveryYear | SpecificDays}] [- {Never | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}] [- <DateTime>] [- {Host | HostPool}] [<>]
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.
-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.
-CompleteIn <uint> Default: 15 minutes for disable task, 10 minutes for reboot task.
-PoolMembersType <uint>
-PercentageMembers <uint>
-MembersToStart <uint>
-PowerOnAssignedPoolMembers <uint>
-EnableDrainMode <bool>
-ForceServerRebootAfter <uint>
-EnforceScheduleInactiveHost <bool>
-OnDisable <bool>
<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).
-ObjType <> Schedule object type. Possible values: RDS, VDI, AVD
-InputObject <> An object of type Schedule representing the target scheduler job. To obtain the object, use the Get-RASSchedule command."
-TargetType <> Schedule target type. Possible values: Host, HostPool
-Repeat <> Accepted values: Never, EveryDay, EveryWeek, Every2Weeks, EveryMonth, EveryYear. Possible values: Never, EveryDay, EveryWeek, Every2Weeks, EveryMonth, EveryYear, SpecificDays
-SpecificDays <> Repeat on Specific Days. Possible values: Never, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday