Outlook 365 error

AprilA1

Bit poster
Hello,
We are encountering an intermittent error when connecting to Outlook 365, which is published via a Windows 2025 RDSH machine pool. Upon connection, the user receives the error message shown in the attachment. We use FSLogix for profile management. Have you encountered this issue? If so, have you found a solution?
Thank you in advance.
 

Attachments

  • error_outlook.png
    error_outlook.png
    106 KB · Views: 5
Hi April,

I'm seeing something very similar on a customer farm I work on (Windows Server 2022 RDSH, FSLogix profile container only, Microsoft 365 Apps). In my case the error tag is 58tm1 rather than 7q6ch, but the pattern is the same: intermittent sign-in failures in Outlook and Teams, users moving between session hosts, and until now the only fix was rebuilding the user's VHDX.

On an affected host, the Microsoft-Windows-AAD/Operational log shows hundreds of 0xCAA50080 errors (Session transport key is in bad state, raised in NgcHelper::ImportSymmetricPopKey), plus 0x80070003 errors in SignWithSymmetricPopKey. It also shows "The device is not joined to account's tenant": the session hosts are domain-joined only, not Microsoft Entra hybrid joined.

My working theory: the farm runs with FSLogix RoamIdentity set to 1, so the WAM/AAD token cache roams inside the VHDX. Those tokens are bound to the device that issued them, so when the user lands on another host they can't be used, and Office fails. Microsoft states that the Microsoft.AAD.BrokerPlugin, TokenBroker, OneAuth and IdentityCache folders must never leave the device, and FSLogix recommends RoamIdentity set to 0. A reader on BornCity reports exactly the trade-off I see: with RoamIdentity, 58tm1 comes back; without it, constant sign-in prompts.

Short term, instead of rebuilding the VHDX, I close Outlook, Teams and OneDrive and delete these folders in the user's LocalAppData: Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\AC\TokenBroker, Microsoft\TokenBroker, Microsoft\IdentityCache and Microsoft\OneAuth. The user then signs in to Office again.

Long term, I'm going to pilot Microsoft Entra hybrid join on the session hosts (targeted deployment with a client-side SCP), then set RoamIdentity to 0. Each logon then gets a PRT valid for the current host, so tokens no longer need to roam. I'm also moving FSLogix to the latest release (26.08), but updating FSLogix alone didn't fix it here.

To check whether your case is the same, could you share your RoamIdentity value (HKLM\SOFTWARE\FSLogix\Profiles), the output of dsregcmd /status on a session host (AzureAdJoined and DomainJoined), the AAD Operational log errors around the time of the error, and whether you use Shared Computer Activation, with your Office version and channel? 7q6ch is also reported around activation.

Useful references:

I'll post an update once the hybrid join pilot is done.

Thierry

En français si tu préfères ;-)

Bonjour April,

Je rencontre quelque chose de très proche sur une ferme client dont je m'occupe (RDSH Windows Server 2022, conteneur de profil FSLogix seul, Microsoft 365 Apps). Chez moi le code est 58tm1 et non 7q6ch, mais le schéma est le même : échecs de connexion intermittents dans Outlook et Teams, des utilisateurs qui passent d'un hôte de session à l'autre, et jusqu'ici la seule réparation était de reconstruire le VHDX de l'utilisateur.

Sur un hôte touché, le journal Microsoft-Windows-AAD/Operational contient des centaines d'erreurs 0xCAA50080 (Session transport key is in bad state, levées dans NgcHelper::ImportSymmetricPopKey), plus des erreurs 0x80070003 dans SignWithSymmetricPopKey. On y trouve aussi « The device is not joined to account's tenant » : les hôtes sont seulement joints au domaine, pas en jonction hybride Microsoft Entra.

Mon hypothèse : la ferme tourne avec RoamIdentity à 1 dans FSLogix, donc le cache de jetons WAM/AAD voyage dans le VHDX. Ces jetons sont liés à l'appareil qui les a émis : quand l'utilisateur arrive sur un autre hôte, ils sont inutilisables et Office échoue. Microsoft indique que les dossiers Microsoft.AAD.BrokerPlugin, TokenBroker, OneAuth et IdentityCache ne doivent jamais quitter l'appareil, et FSLogix recommande RoamIdentity à 0. Un lecteur de BornCity décrit exactement l'arbitrage que je constate : avec RoamIdentity, 58tm1 revient ; sans, les demandes de connexion se répètent.

À court terme, au lieu de reconstruire le VHDX, je ferme Outlook, Teams et OneDrive, puis je supprime ces dossiers dans le LocalAppData de l'utilisateur : Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\AC\TokenBroker, Microsoft\TokenBroker, Microsoft\IdentityCache et Microsoft\OneAuth. L'utilisateur se reconnecte ensuite à Office.

Sur le fond, je vais piloter la jonction hybride Microsoft Entra sur les hôtes de session (déploiement ciblé, avec le SCP poussé en registre), puis passer RoamIdentity à 0. Chaque ouverture de session obtient alors un PRT valable sur l'hôte en cours, et les jetons n'ont plus besoin de voyager. Je passe aussi FSLogix à la dernière version (26.08), mais ici, la mise à jour de FSLogix seule n'a pas réglé le problème.

Pour savoir si ton cas est le même, peux-tu partager ta valeur de RoamIdentity (HKLM\SOFTWARE\FSLogix\Profiles), le résultat de dsregcmd /status sur un hôte de session (AzureAdJoined et DomainJoined), les erreurs du journal AAD Operational au moment de l'erreur, et me dire si tu utilises l'activation des ordinateurs partagés, avec ta version et ton canal d'Office ? 7q6ch est aussi signalé autour de l'activation.

Je posterai un retour une fois le pilote de jonction hybride terminé.

Thierry

P.S.: Tu peux m'envoyer les informations en privé si tu le souhaites.
 
As an FYI: We have "RoamIdentity" not set so it defaults to "0" and our workers are Hybrid joined (AzureADjoined = Yes + Domainjoined = Yes) and we don't see 58tm1 / 7q6ch.
 
Hi April,


As promised, here is a follow-up now that the fix is in production. Entra hybrid join on the session hosts, combined with FSLogix RoamIdentity=0, solved it.

Root cause, confirmed: the hosts were domain-joined only, and FSLogix ran with RoamIdentity=1. The user's identity data (Microsoft.AAD.BrokerPlugin, the TokenBroker cache, IdentityCache) roamed inside the profile container from one host to another. Part of those tokens is bound to the device that issued them, so on the next host WAM could not use them, and Office failed with 58tm1 / 0xCAA50080 ("Session transport key is in bad state"). Hybrid join gives each host its own device identity, so the user gets a fresh PRT on every logon and nothing device-bound needs to roam anymore.

This is what I did, starting with a one-server pilot and then a two-server pool:
  1. Entra Connect: I added the OU holding the session hosts to the sync scope. This is harmless on its own: Entra Connect only exports a computer object once it carries a hybrid join certificate (subject CN={objectGUID}). Before doing it, I checked that no host already had one and that the OU contained nothing else that would sync.
  2. GPO (targeted deployment, no forest-wide SCP), filtered on the session host computer accounts, with registry preferences:
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CDJ\AAD : TenantId and TenantName
    BlockAADWorkplaceJoin = 1, so users can no longer register the host as a personal device
    HKLM\SOFTWARE\FSLogix\Profiles : RoamIdentity = 0
    Tip: my FSLogix GPO set RoamIdentity=1 through the ADMX template. Registry preferences are processed after administrative templates, so the preference wins on the targeted hosts with no change to the main FSLogix GPO.
  3. On each host: gpupdate /target:computer /force, then run the scheduled task \Microsoft\Windows\Workplace Join\Automatic-Device-Join. The first attempt fails with 0x801c03f3 (device not found). That is expected: the host has just published its certificate in AD.
  4. Run a delta sync on the Entra Connect server.
  5. Run the task again on each host. dsregcmd /status then shows AzureAdJoined : YES. No reboot is needed for the join, but I rebooted anyway during the maintenance window.
Checks the next morning: on the hosts, AzureAdJoined YES with DeviceAuthStatus SUCCESS, and RoamIdentity 0x0. In a user session, AzureAdPrt YES and WorkplaceJoined NO. In the user's Entra sign-in logs, the device shows up as hybrid joined. Users get one Microsoft 365 sign-in prompt the first time they open Outlook or Teams, then nothing, including when they move between hosts. Most importantly, no more 0xCAA50080 in the AAD Operational log.

Two things to know:
- Some AAD errors remain and are just noise. An admin account with a non-routable UPN suffix logs AADSTS90002 (tenant not found) and 0xCAA90014 (WS-Trust). AADSTS700016 for application 00000000480728C5 is a consumer-account call made against the work tenant. None of them is related to 58tm1.
- In Entra, I found hundreds of "Microsoft Entra registered" devices named after the session hosts, each owned by a user who once clicked "Allow my organization to manage my device" in Office. That registration roamed with the profile too. I will clean them up once the whole farm is hybrid joined, not before.

All hosts in a pool must switch at the same time. A user moving between a joined host (RoamIdentity 0) and a non-joined one (RoamIdentity 1) brings the problem straight back. I am now rolling this out pool by pool.

Thanks to JanM25 for confirming the same setup on his side !


Thierry
 
Back
Top