If OneDrive and Microsoft 365 credentials are not being saved in your FSLogix deployment (Azure Virtual Desktop, Citrix etc.) this registry key might help you. There is also a corresponding GPO that does the same.
This KQL query helps you compute the user’s session duration in the last 30 days.
WVDConnections | where State in (“Started”, “Connected”, “Completed”) // Filter relevant states | where TimeGenerated >= ago(30d) // Get records from the last 30 days | summarize StartTime = minif(TimeGenerated, State == “Started”), // Earliest time for “Started” EndTime = maxif(TimeGenerated, State == “Completed”), // Latest time for “Completed” HasConnected = countif(State == “Connected”) > 0, // Check for “Connected” event presence SessionHostName = anyif(SessionHostName, State == “Started”) // Capture the server name associated with the session by CorrelationId, UserName | extend DurationMinutes = iff(HasConnected and isnotnull(StartTime) and isnotnull(EndTime), datetime_diff(“minute”, EndTime, StartTime), -1) // Use -1 as a placeholder for invalid durations | where DurationMinutes >= 0 // Filter out invalid durations (those set to -1) | extend SessionDurationHours = DurationMinutes / 60.0 // Calculate duration in hours | project UserName, CorrelationId, StartTime, EndTime, DurationMinutes, SessionDurationHours, SessionHostName | order by StartTime desc // Order by StartTime for clarity
Are you getting this error in Microsoft 365 Admin center when viewing mail tab of a user? And on-prem Exchange has already been decomissioned? Well, you kinda have to “fake” the migration and clear some user’s attributes:
In AD Users and Computers, make sure Advanced Features are activated (View > Advanced Features). Go to the users OU and double click on the user. Select AttributeEditor and clear the following attributes:
msExchMailboxGuid
msExchRecipientDisplayType
msExchRecipientTypeDetails
Run AD / Entra Sync:
Start-ADSyncSyncCycle -PolicyType Delta
Wait for 15-30min and now the user will get an Exchange Online Mailbox if he has a license.