Citrix XenDesktop does not wait for the VMWare UEM (formerly known as Immidio Flex+) ‘logoff‘ script to finish. VMWare UEM personal archive files are not (completely) saved during logoff.
Disable ShutdownDesktopsAfterUse (Citrix)
Run the following command to load the Citrix Modules: ASNP Citrix.*
Run the following command to list all the Desktop Groups in the environment and the respective properties:
Set-BrokerDesktopGroup -Name “Desktop Group Name” -ShutdownDesktopsAfterUse $False
Create/adjust logoff script in Immidio Flex GPO
“C:\Program Files\Immidio\Flex Profiles\FlexEngine.exe” -s
shutdown /f /s /t
When above settings are used, some users may get connected to a session which is still in the process of shutting down. This is because the shutdown/reboot is not performed by XenDesktop but with a logoff script. XenDesktop will mark the VDI as available and may assign it to a user who logs on.
Therefor change ShutdownDesktopsAfterUse back to enabled to let XenDesktop control the reboot behavior.
Set-BrokerDesktopGroup -Name “Desktop Group Name” -ShutdownDesktopsAfterUse $True
Change the following setting to let XenDesktop wait for 2 minutes before the actual reboot takes place; SettlementPeriodBeforeAutoShutdown
Set-BrokerDesktopGroup -Name “Desktop Group Name” –SettlementPeriodBeforeAutoShutdown “00:02:00”