Credential prompt is showing for long time during session launch

Credential prompt is showing for long time during session launch

book

Article ID: CTX297294

calendar_today

Updated On:

Description

When launching windows 10 Desktop VDI , users screen get stuck on windows credential for 20-25 Seconds .
The single sign on works but with a delay , the machine eventually logs in if you leave it at credential screen .
 

Resolution

Check if the AzureAdJoin is Enabled 

Run the command in Powershell on the VDI .


dsregcmd /Status


+----------------------------------------------------------------------+
| Device State                                                         |
+----------------------------------------------------------------------+

             AzureAdJoined : YES
          EnterpriseJoined : NO
              DomainJoined : YES
                DomainName : ABC


If you see AzureAdJoined: yes , You can leave the Azure AD using  privileged PowerShell/CMD:
         
  dsregcmd /leave

Add a direct registry setting to prevent the device from joining again: 

HKLM\SYSTEM\CurrentControlSet\Control\WorkplaceJoin\
Name = autoWorkplaceJoin
Type = DWord
Value = 0

Problem Cause

VDIs joined to Hybrid Azure AD .

This causes a LogonUser API call to get delayed if the VDIs have restricted Access . This will delay the Auto-logon process for citrix .