A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
Hey Chelsea, it sounds like FSLogix is unable to detach the user’s profile VHD on SA-AVD-004 because a previous session is still “in use.” When a user disconnects without actually logging off, FSLogix leaves the VHD mounted and locked—so any new or second session can’t attach and you can’t cleanly log them off. Here’s what you can try:
- Configure session time-outs in Group Policy • Open your Session Host OU GPO under Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Session Time Limits • Set “Set time limit for disconnected sessions” (e.g. 15–30 minutes) • Set “Set time limit for idle Remote Desktop Services sessions” (e.g. 1–2 hours) • Enable “End session when time limits are reached” This makes sure disconnected sessions are terminated and FSLogix can detach the VHD.
- Enable automatic cleanup of invalid sessions • On all session hosts, create or set the DWORD CleanupInvalidSessions = 1 under HKLM\SOFTWARE\FSLogix\Apps • This tells FSLogix to find and clear orphaned mounts on next sign-in.
- If you need true concurrent sessions on the same profile • Under HKLM\SOFTWARE\FSLogix\Profiles, set ProfileType = 3 (Try Read/Write, fall back to Read-Only) on every host. • Only use this if you really intend multiple simultaneous logins; otherwise leave ProfileType = 0.
- Manually identify and clear stuck sessions/processes • From an elevated prompt on SA-AVD-004 run: qwinsta /server:SA-AVD-004 → Note SessionID(s) in “Disc” or “Unknown” state logoff <SessionID> /server:SA-AVD-004 • If you get Access Denied, run query process /id:<SessionID> → Kill hanging processes with taskkill • Or use the Azure Portal → Host pools → Session hosts → Log off each session for the affected user, then wait ~60 sec for the VHD to release.
- Review FSLogix logs for error codes • Open Event Viewer > Applications and Services Logs > FSLogix > Operational • Look for Event ID 33 (VHD attach failure) or 25 (profile load failure) with “locked” in the message • That confirms the disk is still in use
Hope that helps! If you still see issues, could you share:
• The output of qwinsta/query user on SA-AVD-004
• Any FSLogix error codes from the Operational log
• The current values of CleanupInvalidSessions and ProfileType in your registry
• Your FSLogix version
Reference List
- RDS Session Time Limits (GPO) https://learn.microsoft.com/windows-server/remote/remote-desktop-services/remote-desktop-session-host/manage-session-time-limits
- CleanupInvalidSessions https://learn.microsoft.com/fslogix/reference-configuration-settings#cleanupinvalidsessions
- Concurrent/multiple connections https://learn.microsoft.com/fslogix/concepts-multi-concurrent-connections
- FSLogix troubleshooting & logs https://learn.microsoft.com/fslogix/troubleshooting-events-logs-diagnostics
Note: This content was drafted with the help of an AI system. Please verify the information before relying on it for decision-making.