Virtual Delivery Agent constantly and automatically goes into maintenance mode.
Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.
On Delivery Controllers set DWORD value HKEY_LOCAL_MACHINE\Software\Citrix\DesktopServer\MaxFailedRegistrationsAllowed to a negative value (0xFFFFFFFF) to prevent the Virtual Machines (VMs) from automatically getting placed into maintenance mode.
Note: Settings delivered from the GPO appears under a local root of HKEY_LOCAL_MACHINE\Software\Policies\Citrix.
When broker service starts the VM and fails to register after the MaxRegistrationDelayMin period (default 20 minutes), the VM is shut down again. The MaxFailedRegistrationsAllowed value defines the maximum number of times that this start-up, registration failure, shut down cycle is allowed to repeat before a subsequent registration failure causes the VM to be automatically placed into maintenance mode.
The default value of 2 means that if the VM fails to register three times in succession, VM is automatically placed into maintenance mode.