Microsoft.aad.brokerplugin_cw5n1h2txyewy error code 2147024864

Toh Ang Poh 45 Reputation points
2023-03-04T05:20:51.07+00:00

User is getting periodic Microsoft 365 login prompt.

From the event log, found the error Failure to load the application settings for package Microsoft.AAD.BrokerPlugin__cw5n1h2txyewy. Error Code: -2147024864

Source: AppModel-State.

Tried the Powershell script: if (-not (Get-AppxPackage Microsoft.AAD.BrokerPlugin)) { Add-AppxPackage -Register "$env:windir\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\Appxmanifest.xml" -DisableDevelopmentMode -ForceApplicationShutdown } Get-AppxPackage Microsoft.AAD.BrokerPlugin

The problem did not go away.

What could be wrong?

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft 365 and Office | Install, redeem, activate | For business | Windows

6 answers

Sort by: Most helpful
  1. Toh Ang Poh 45 Reputation points
    2024-01-30T11:38:28.82+00:00

    Yes, the probem for me was due to Trend Micro Worry Free Anti-virus.

    Was this answer helpful?

    3 people found this answer helpful.

  2. Tom Boxall 10 Reputation points
    2023-03-23T05:08:24.6333333+00:00

    Try closing all Office apps and then clearing the %localappdata%\Microsoft\TokenBroker\Cache folder. One of those TBRES files contains the token for the Microsoft.AAD.BrokerPlugin.

    Was this answer helpful?

    2 people found this answer helpful.

  3. Jamie Cordoba 0 Reputation points Microsoft Employee
    2024-09-23T15:33:18.15+00:00

    That error is a generic one related to not able to use that token at the time of sign in.

    Are you using a non persistent VDI with Roaming profiles? Because that might be the whole thing.

    You can check

    https://learn.microsoft.com/en-us/entra/identity/devices/howto-device-identity-virtual-desktop-infrastructure

    https://learn.microsoft.com/en-us/microsoftteams/new-teams-vdi-requirements-deploy

    I would suggest to open a case if this is the scenario.

    Was this answer helpful?

    0 comments No comments

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.