This article contains details on the Citrix policy settings related to the reboot settings for XenApp 6.0 and XenApp 6.5.
Background
The following screen appears when enabling the reboot settings through Citrix policies in Active Directory Group Policy Objects (GPO) or in the Delivery Services Console (DSC):

This results in some registry settings being added to the XenApp server under HKLM\SOFTWARE\Policies\Citrix\IMA\Restart Options\Schedule:
RestartSchedule_Frequency=dword:00000002
RestartSchedule_Date=dword:07da0716
RestartSchedule_Minutes=dword:0000003f
RestartScheduleEnabled=dword:00000001
Some of the settings can be used directly, for example:
- RestartScheduleEnabled – Are scheduled reboots enabled or not through policy setting)
- RestartSchedule_Frequency – Frequency of scheduled reboots (in days)
The other settings need to be converted are:
- RestartSchedule_Minutes = Time, the server reboots. Note the decimal value of this setting. It is the number of minutes past midnight (12:00 AM) that the reboot is to occur.
- RestartSchedule_Date= Reboot schedule start date set using policy setting:
From the policy setting (in format of YYYY\DD\MM)
Restart Schedule
From the preceding example:
- For RestartSchedule_Minutes = dword:0000003f = decimal:63 = reboot is set for 63 minutes past midnight or 1:03am
- For RestartSchedule_Date = dword:07da0716 = This one requires some further conversion:
Year = Upper 16 bits
Month = Upper 8 bits of the lower word (bits 8 through 15 of the dword)
Day = First 8 bits of the value (bits 0 through 7 of the dword)
Using the programmer mode of the calculator application on your PC, you can convert this as:
For the year:
- RestartSchedule_Date=dword:07da0716
- Upper 16 bits of 0x07da0716 = 0x07da
- 0x07da converted to decimal = 2010
For the Month:
- RestartSchedule_Date=dword:07da0716
- Upper 8 bits of lower word 0716 = 0x07
- 0x7 converted to decimal = 7
For the Day:
- RestartSchedule_Date=dword:07da0716
- First byte of lower word (0x07da0716 AND with 0xFF) = 0x16
- 0x16 converted to decimal = 22
Hence, this customers reboot schedule start date is = 07/22/2010.
Note: Ensure that the reboot schedule start date setting in the policy is set to an appropriate value (and not in the distant future, unless that is desired).
Additional Resources
XenApp 6 for Windows 2008 R2 – Administration – Policy Settings Reference
CTX126043 –
How to Create a Staggered Scheduled Server Reboot Policy in XenApp 6.x