New-RASSchedule
Last updated
Last updated
New-RASSchedule
Creates a new Schedule.
New-RASSchedule [-] <string> [[-] <uint>] - {Disable | Reboot | Startup | Shutdown | Recreate} - <string> - <string> - <string> - {RDS | VDI | AVD} - <uint> - {Host | HostPool} [- <uint>] [- <string>] [- <double>] [- <bool>] [- <bool>] [- <bool>] [- <uint>] [- <uint>] [- <bool>] [- <uint>] [- <uint>] [- <uint>] [- {Never | EveryDay | EveryWeek | Every2Weeks | EveryMonth | EveryYear | SpecificDays}] [- {Never | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}] [- <DateTime>] [- <uint>] [<>]
New-RASSchedule [-] <string> [[-] <uint>] - {Disable | Reboot | Startup | Shutdown | Recreate} - {RDS | VDI | AVD} - <uint> - {Host | HostPool} [- <uint>] [- <string>] [- <double>] [- <bool>] [- <bool>] [- <bool>] [- <uint>] [- <uint>] [- <bool>] [- <uint>] [- <uint>] [- <uint>] [- {Never | EveryDay | EveryWeek | Every2Weeks | EveryMonth | EveryYear | SpecificDays}] [- {Never | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}] [- <DateTime>] [- <uint>] [<>]
Creates a new Schedule property.
-Name <string> Schedule name.
-SiteId <uint> Site ID from which to retrieve the schedule.
Possible values: RDS, VDI, AVD
Possible values: Disable, Reboot, Startup, Shutdown, Recreate
Possible values: Host, HostPool
-Enabled <bool> Whether to enable or disable the schedule.
-Description <string> Schedule description.
-Type <uint> Schedule type
-TargetID <uint> The target RD Session Host server or server group Ids depending on the TargetType parameter.
-PoolId <uint> The TargetNativeHost Pool Id
-GUID <string> The TargetNativeHost GUID
-GuestName <string> The TargetNativeHost Guest Name
-HostAzureID <string> The TargetNativeHost Host Azure ID
-StartDateTime <DateTime> Start time. Default: Now.
-DurationInSecs <double> Duration in seconds.
Accepted values: Never, EveryDay, EveryWeek, Every2Weeks, EveryMonth, EveryYear.
Possible values: Never, EveryDay, EveryWeek, Every2Weeks, EveryMonth, EveryYear, SpecificDays
Possible values: Never, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
-CompleteIn <uint> The duration of the scheduler task in minutes.
Default: 15 minutes for disable task, 10 minutes 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 ----------
New-RASSchedule "My Schedule" -ObjType RDS -Action Disable -TargetType Host
Creates a new Schedule property with the specified name.
-ObjType <> Schedule object type.
-Action <> Schedule Action Type
-TargetType <> Schedule target type. Accepted values: Host, Host Pool.
-Repeat <> Repeat interval. Default: EveryWeek
-SpecificDays <> Repeat on Specific Days.