XenApp 7.17- Console session gets logged off as soon as user logs in.
To resolve this issue:
Log in the VM with an admin account and locate "userinit" key under HKLM/Software/Microsoft/WindowsNT/CurrentVersion/Winlogon and it had a path as "C:\Program Files\Citrix\Virtual Desktop Agent\upmEvent wait" after "C:\Windows\system32\UsrInit.exe"
Remove everything after "UserInit.exe"
Sign out and sign in with a regular non-admin user to test.