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?

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,940 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,851 questions
{count} votes

5 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.

    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.

    2 people found this answer helpful.

  3. 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

  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. 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.

    0 comments No comments

Your answer

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