O365 activation issue - Microsoft.AAD.BrokerPlugin.exe crash

%3CLINGO-SUB%20id%3D%22lingo-sub-2218054%22%20slang%3D%22en-US%22%3EO365%20activation%20issue%20-%20Microsoft.AAD.BrokerPlugin.exe%20crash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2218054%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20having%20issue%20activating%20O365%20on%20a%202019%20RDS%20Server.%3C%2FP%3E%3CP%3EWe%20have%20deployed%20following%20using%20the%20deployment%20tool%20as%20per%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployoffice%2Fdeploy-microsoft-365-apps-remote-desktop-services%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%20this%20procedure%3C%2FA%3E%20and%20everything%20went%20ok%2C%20except%20that%20whenever%20an%20user%20wants%20to%20launch%20an%20app%20they%20are%20prompted%20to%20activate%20with%20their%20account.%20They%20enter%20the%20username%20then%20a%20blank%20window%20pops%20up%20for%20a%20few%20second%20and%20disappears.%20No%20error%20reported%20...%20but%20no%20activation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELooking%20into%20%25localappdata%25%5CMicrosoft%5COffice%5C16.0%5CLicensing%20we%20see%20that%20there%20was%20no%20token%20generated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELooking%20into%20the%20event%20log%20we%20can%20correlate%20this%20with%20a%20crash%20of%20Microsoft.AAD.BrokerPlugin.exe%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3ELog%20Name%3A%20%20%20%20%20%20Application%0A%0ASource%3A%20%20%20%20%20%20%20%20Application%20Error%0A%0ADate%3A%20%20%20%20%20%20%20%20%20%2015%2F03%2F2021%2020%3A34%3A28%0A%0AEvent%20ID%3A%20%20%20%20%20%201000%0A%0ATask%20Category%3A%20(100)%0A%0ALevel%3A%20%20%20%20%20%20%20%20%20Error%0A%0AKeywords%3A%20%20%20%20%20%20Classic%0A%0AUser%3A%20%20%20%20%20%20%20%20%20%20N%2FA%0A%0AComputer%3A%20%20%20%20%20%20rd-dn-01.domain.local%0A%0ADescription%3A%0A%0AFaulting%20application%20name%3A%20Microsoft.AAD.BrokerPlugin.exe%2C%20version%3A%2010.0.17763.529%2C%20time%20stamp%3A%200x5cde4ed1%0A%0AFaulting%20module%20name%3A%20edgehtml.dll%2C%20version%3A%2011.0.17763.1817%2C%20time%20stamp%3A%200x409d5916%0A%0AException%20code%3A%200x8000ffff%0A%0AFault%20offset%3A%200x00000000004b5ab6%0A%0AFaulting%20process%20id%3A%200x19f0%0A%0AFaulting%20application%20start%20time%3A%200x01d719d23699f2e6%0A%0AFaulting%20application%20path%3A%20C%3A%5CWindows%5CSystemApps%5CMicrosoft.AAD.BrokerPlugin_cw5n1h2txyewy%5CMicrosoft.AAD.BrokerPlugin.exe%0A%0AFaulting%20module%20path%3A%20C%3A%5CWindows%5CSYSTEM32%5Cedgehtml.dll%0A%0AReport%20Id%3A%20d1e78a5d-2dcd-4313-b547-c41eefe64980%0A%0AFaulting%20package%20full%20name%3A%20Microsoft.AAD.BrokerPlugin_1000.17763.1.0_neutral_neutral_cw5n1h2txyewy%0A%0AFaulting%20package-relative%20application%20ID%3A%20App%0A%0AEvent%20Xml%3A%0A%0A%3CEVENT%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%3E%0A%0A%20%20%3CSYSTEM%3E%0A%0A%20%20%20%20%3CPROVIDER%20name%3D%22Application%20Error%22%3E%3C%2FPROVIDER%3E%0A%0A%20%20%20%20%3CEVENTID%20qualifiers%3D%220%22%3E1000%3C%2FEVENTID%3E%0A%0A%20%20%20%20%3CLEVEL%3E2%3C%2FLEVEL%3E%0A%0A%20%20%20%20%3CTASK%3E100%3C%2FTASK%3E%0A%0A%20%20%20%20%3CKEYWORDS%3E0x80000000000000%3C%2FKEYWORDS%3E%0A%0A%20%20%20%20%3CTIMECREATED%20systemtime%3D%222021-03-15T19%3A34%3A28.839239700Z%22%3E%3C%2FTIMECREATED%3E%0A%0A%20%20%20%20%3CEVENTRECORDID%3E41399%3C%2FEVENTRECORDID%3E%0A%0A%20%20%20%20%3CCHANNEL%3EApplication%3C%2FCHANNEL%3E%0A%0A%20%20%20%20%3CCOMPUTER%3Erd-dn-01.domain.local%3C%2FCOMPUTER%3E%0A%0A%20%20%20%20%3CSECURITY%3E%3C%2FSECURITY%3E%0A%0A%20%20%3C%2FSYSTEM%3E%0A%0A%20%20%3CEVENTDATA%3E%0A%0A%20%20%20%20%3CDATA%3EMicrosoft.AAD.BrokerPlugin.exe%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3E10.0.17763.529%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3E5cde4ed1%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3Eedgehtml.dll%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3E11.0.17763.1817%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3E409d5916%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3E8000ffff%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3E00000000004b5ab6%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3E19f0%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3E01d719d23699f2e6%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3EC%3A%5CWindows%5CSystemApps%5CMicrosoft.AAD.BrokerPlugin_cw5n1h2txyewy%5CMicrosoft.AAD.BrokerPlugin.exe%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3EC%3A%5CWindows%5CSYSTEM32%5Cedgehtml.dll%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3Ed1e78a5d-2dcd-4313-b547-c41eefe64980%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3EMicrosoft.AAD.BrokerPlugin_1000.17763.1.0_neutral_neutral_cw5n1h2txyewy%3C%2FDATA%3E%0A%0A%20%20%20%20%3CDATA%3EApp%3C%2FDATA%3E%0A%0A%20%20%3C%2FEVENTDATA%3E%0A%0A%3C%2FEVENT%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20opened%20a%20ticket%20with%20support%20but%20they%20are%20completely%20useless%20%E2%80%93%20hardly%20managed%20to%20schedule%20a%20call-back%20within%20a%20week.%20We've%20run%20usual%20t-shooting%20(sfc%2C%20dism%2C%20desintall-reinstall%2C%20etc).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETried%20to%20follow%20this%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Ftroubleshoot%2Fauthentication%2Fautomatic-authentication-fails%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%3C%2FA%3E%20but%20did%20not%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20this%20stage%20we%20are%20pretty%20much%20stumped%20and%20unable%20to%20use%20or%20365%20subscription%20for%20a%20week.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2218054%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

We are having issue activating O365 on a 2019 RDS Server.

We have deployed following using the deployment tool as per this procedure and everything went ok, except that whenever an user wants to launch an app they are prompted to activate with their account. They enter the username then a blank window pops up for a few second and disappears. No error reported ... but no activation.

 

Looking into %localappdata%\Microsoft\Office\16.0\Licensing we see that there was no token generated.

 

Looking into the event log we can correlate this with a crash of Microsoft.AAD.BrokerPlugin.exe

 

 

 

 

Log Name:      Application

Source:        Application Error

Date:          15/03/2021 20:34:28

Event ID:      1000

Task Category: (100)

Level:         Error

Keywords:      Classic

User:          N/A

Computer:      rd-dn-01.domain.local

Description:

Faulting application name: Microsoft.AAD.BrokerPlugin.exe, version: 10.0.17763.529, time stamp: 0x5cde4ed1

Faulting module name: edgehtml.dll, version: 11.0.17763.1817, time stamp: 0x409d5916

Exception code: 0x8000ffff

Fault offset: 0x00000000004b5ab6

Faulting process id: 0x19f0

Faulting application start time: 0x01d719d23699f2e6

Faulting application path: C:\Windows\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\Microsoft.AAD.BrokerPlugin.exe

Faulting module path: C:\Windows\SYSTEM32\edgehtml.dll

Report Id: d1e78a5d-2dcd-4313-b547-c41eefe64980

Faulting package full name: Microsoft.AAD.BrokerPlugin_1000.17763.1.0_neutral_neutral_cw5n1h2txyewy

Faulting package-relative application ID: App

Event Xml:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

  <System>

    <Provider Name="Application Error" />

    <EventID Qualifiers="0">1000</EventID>

    <Level>2</Level>

    <Task>100</Task>

    <Keywords>0x80000000000000</Keywords>

    <TimeCreated SystemTime="2021-03-15T19:34:28.839239700Z" />

    <EventRecordID>41399</EventRecordID>

    <Channel>Application</Channel>

    <Computer>rd-dn-01.domain.local</Computer>

    <Security />

  </System>

  <EventData>

    <Data>Microsoft.AAD.BrokerPlugin.exe</Data>

    <Data>10.0.17763.529</Data>

    <Data>5cde4ed1</Data>

    <Data>edgehtml.dll</Data>

    <Data>11.0.17763.1817</Data>

    <Data>409d5916</Data>

    <Data>8000ffff</Data>

    <Data>00000000004b5ab6</Data>

    <Data>19f0</Data>

    <Data>01d719d23699f2e6</Data>

    <Data>C:\Windows\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\Microsoft.AAD.BrokerPlugin.exe</Data>

    <Data>C:\Windows\SYSTEM32\edgehtml.dll</Data>

    <Data>d1e78a5d-2dcd-4313-b547-c41eefe64980</Data>

    <Data>Microsoft.AAD.BrokerPlugin_1000.17763.1.0_neutral_neutral_cw5n1h2txyewy</Data>

    <Data>App</Data>

  </EventData>

</Event>

 

 

 

 

I have opened a ticket with support but they are completely useless – hardly managed to schedule a call-back within a week. We've run usual t-shooting (sfc, dism, desintall-reinstall, etc).

 

Tried to follow this and this but did not help.

 

At this stage we are pretty much stumped and unable to use or 365 subscription for a week.

1 Reply

Hey @alexTak ,

 

Couple of things you can try, update the .NET framework on the machine, try downloading the office via ODT on a different channel; semi-annual may be. Most importantly look at your firewall add an exception for :

C:\Windows\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\Microsoft.AAD.BrokerPlugin.exe

C:\Windows\System32\backgroundTaskHost.exe

Take a look at this: https://docs.microsoft.com/en-us/office365/troubleshoot/authentication/connection-issue-when-sign-in...