New-RASSchedule
Creates a new Schedule.
New-RASSchedule [-Name] <string> [[-SiteId] <uint>] -Action {Disable | Reboot | Startup | Shutdown} -GuestName <string> -GUID <string> -HostAzureID <string> -ObjType {RDS | VDI | AVD} -PoolId <uint> -TargetType {Host | HostPool} [-CompleteIn <uint>] [-Description <string>] [-DurationInSecs <double>] [-Enabled <bool>] [-EnableDrainMode <bool>] [-EnforceScheduleInactiveHost <bool>] [-ForceServerRebootAfter <uint>] [-MembersToStart <uint>] [-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>] [-Type <uint>] [<CommonParameters>] New-RASSchedule [-Name] <string> [[-SiteId] <uint>] -Action {Disable | Reboot | Startup | Shutdown} -ObjType {RDS | VDI | AVD} -TargetID <uint> -TargetType {Host | HostPool} [-CompleteIn <uint>] [-Description <string>] [-DurationInSecs <double>] [-Enabled <bool>] [-EnableDrainMode <bool>] [-EnforceScheduleInactiveHost <bool>] [-ForceServerRebootAfter <uint>] [-MembersToStart <uint>] [-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>] [-Type <uint>] [<CommonParameters>]
Creates a new Schedule property.
-Name <string> Schedule name.
-SiteId <uint> Site ID from which to retrieve the schedule.
-ObjType <ScheduleObjType> Schedule object type. Possible values: RDS, VDI, AVD
-Action <ScheduleActionType> Schedule Action Type Possible values: Disable, Reboot, Startup, Shutdown
-TargetType <ScheduleTargetType> Schedule target type. Accepted values: Host, Host Pool. Possible values: Host, HostPool
-Enabled <bool> Whether to enable or disable the schedule.
-Description <string> Schedule description.
-Type <uint> Type
-TargetID <uint> The target RD Session Host server or server group Ids depending on the TargetType parameter.
-PoolId <uint> Pool Id
-GUID <string> GUID
-GuestName <string> Guest Name
-HostAzureID <string> Host Azure ID
-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 minutes. Default: 15 minutes for disable task, 10 minutes for reboot task.
-PoolMembersType <uint> Pool Members Type
-PercentageMembers <uint> Percentage of members
-MembersToStart <uint> Specific number of members to be started
-PowerOnAssignedPoolMembers <uint> Power On Assigned Pool Members
-EnableDrainMode <bool> Enable Drain Mode
-ForceServerRebootAfter <uint> Force server reboot after
-EnforceScheduleInactiveHost <bool> Enforce schedule for currently inactive host
-OnDisable <bool> On Disable
<CommonParameters>
-none-
---------- EXAMPLE 1 ---------- New-RASSchedule "My Schedule" -ObjType RDS -Action Disable -TargetType Server Creates a new Schedule property with the specified name.