The Scheduler tab in the RD Session Hosts view allows you to reboot or temporarily disable servers and server groups based on a template according to a schedule.
To create a new scheduler task or modify an existing one:
1 In the RAS Console, navigate to Farm > > RD Session Hosts.
2 In the right pane, select the Scheduler tab.
3 To create a new task, click Tasks > Add and select one of the following options:
- Disable server
- Disable server group
- Reboot server
- Reboot server group
- Startup server
- Startup server group
- Shutdown server
- Shutdown server group
The RDSH Schedule Properties dialog opens. The dialog consists of three tabs, which are described below.
Properties
On the Properties tab, specify the following:
- Select Enable Schedule to enable the scheduled task.
- Specify the task name and an optional description.
- In the Available list, select target servers or groups and click Add (repeat to add more servers or groups). To add all servers, click Add all. To remove a server or servers from the Target list, click Remove or Remove all. Note that you can only select servers and server groups based on a template.
Trigger
On the Trigger tab, specify when the scheduled task should trigger:
- In the Date, Start, and Duration fields, specify the start date, time, and duration.
- In the Recur field, specify the task recurrence. If you select Never, the task will still run as scheduled but only once. If you select On specific day(s) of the week, you need to select one or more days of the week.
Options
On the Options tab, you can do the following:
- Compose a message that will be sent to users before or after (in certain scenarios) the scheduled task is triggered. Composing a message is described later in this subsection.
- Specify additional options. Please note that the options are different depending on the task type, as described below.
If the task is Disable server, Disable server group, Shutdown server, or Shutdown server group the available options are:
- On Disable: Use this option to specify how active sessions should be handled when the task is triggered. Please note that disabling a server group with an assigned template will drain and remove RD Session Hosts from the group.
- Enforce schedule for currently inactive RD Session Hosts: This option is only enabled when you have an active message in the list, which is displayed above these options. If the option is enabled, RD Session Hosts that are currently offline are also monitored, and if such a server comes back online during the scheduled task execution, the task is applied to it too
- If you enable this option, the schedule will be applied to a currently inactive RD Session Host when it comes back online. If the option is disabled (default), the schedule will have no effect on such servers. Note that it is assumed that a server is inactive (offline) if it is disabled or cannot be reached over the network (registered on RAS Connection Broker).
If a task is Reboot Server, Reboot Server Group, Shutdown server, or Shutdown server group the available options are:
- Enable Drain Mode and Force server reboot after: The two options work together. If you enable the drain mode, the following will happen. When the task triggers, new connections to a server are refused but active connections will continue to run. The server will be rebooted when all active users close their sessions or when Force server reboot after time is reached, whichever comes first. For active users not to lose their work, create a message that will advise them to save their work and log off
- Enforce schedule for currently inactive RD Session Hosts: This option is enabled when the Enable Drain Mode option is selected. If the option is enabled, RD Session Hosts that are currently offline are also monitored and if such a server comes back online during the scheduled task execution, the task is applied to it too.
If the task is Startup server group, the available options are:
- Percentage of members: Select this option to specify the percentage of RD Session Hosts that must be started up in each group.
- Specific number of members to be started: Select this option to specify the number of RD Session Hosts that must be started up in each group.
To create a text message to be sent to users, click the Tasks > Add and specify the following:
- Select the Enable Message option to enable the message. If the option is cleared, the message will still exist, but will not be sent to users. You can also enable or disable an existing message by selecting or clearing a checkbox in the list on the Options tab.
- Specify the message title and body. This is what users will see when the message is displayed on their screens.
- In the Send message drop-down list, select the time interval specifying when the message should be sent. By default, this is the time "before" the task is triggered. However, for Reboot Server and Reboot Server Group tasks, it can also be the time "after" the task is triggered, i.e. the server is put to drain mode. This may be specifically useful when you want to send multiple messages to users at different time intervals while the scheduled task is already in progress. See the explanation below.
Was this article helpful?
Tell us how we can improve it.