Start button not responding, Outlook will not connect to Office365, Event Log inundated with warnings

Daniel Kaliel 1,236 Reputation points
2022-06-07T20:49:54.347+00:00

We are running Windows 10 20H2 with the latest updates being installed 2 weeks ago. We are currently experiencing an issue where users Start Menu stops working, Outlook will no longer connect to Office365 and the application event log is filled with AppModel-State warnings, event ID's 20,21,22,23,24. They are appearing at a rate of almost 1 every second.

209271-screenshot-2022-06-07-144540.jpg

Event ID: 20
Triggered repair because operation LocalSettings against package microsoft.windowscommunicationsapps_8wekyb3d8bbwe hit error -2147024891.

Event ID: 21
Repair for operation LocalSettings against package Microsoft.YourPhone_8wekyb3d8bbwe with error -2147024891 returned Error Code: -2147009279

Event ID: 23
Triggered repair of state locations because operation SettingsInitialize against package Microsoft.YourPhone_8wekyb3d8bbwe hit error -2147024891.

Event ID: 24
Repair of state locations for operation SettingsInitialize against package Microsoft.YourPhone_8wekyb3d8bbwe with error -2147024891 returned Error Code: 0

Its not just YourPhone though as the identified app. Its allso Windows Store, microsoft.windowscommunicationsapps and more.

The user first notices a Windows alert, Critical Error your Start menu isn't working. We'll try to fix it the next time you sign in. Then they notice that Outlook is no longer connected to Office365.

209262-microsoftteams-image.png

Reboots don't fix it. We have tried to repair office. We have run sfc /scannow. We have uninstalled and reinstalled office.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,611 questions
{count} votes

Accepted answer
  1. Jeremiah Zulueta 116 Reputation points
    2022-06-16T18:27:06.243+00:00

    We still don't know the root cause but it seems to be related to Windows Update and only causing certain machine models only, in our env anyways. (affected models were HP EB G3,G4,G5)

    The fix is (without rebuilding the windows user profile or re-imaging) is to re-apply registry permissions and rebuilding the Windows System Appx.

    Log in as the user
    Open registry and validate permission on the below entries that it has "All Application Packages" are in there and has "Read" box checked.

    • HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
    • HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

    Open two Powershell windows, one as normal and one as elevated/admin (don't minimize...)

    Open Task Manager and End task Explorer.exe

    On the elevated Powershell, run the below command. You will see errors but ignore...
    Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

    On the normal (non-elevated) Powershell, do the following commands, ignore any errors...

    • Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "C:\Windows\SystemApps\Microsoft.Windows.Search_cw5n1h2txyewy\AppXManifest.xml"}
    • Get-AppxPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\AppXManifest.xml"}
    • Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\AppXManifest.xml"}
    • 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
    • if (-not (Get-AppxPackage Microsoft.Windows.CloudExperienceHost)) { Add-AppxPackage -Register "$env:windir\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\Appxmanifest.xml" -DisableDevelopmentMode -ForceApplicationShutdown } Get-AppxPackage Microsoft.Windows.CloudExperienceHost
    • Start-Process explorer.exe

    Once taskbar/explorer is up, test start/search/o365 auth/registration.

    6 people found this answer helpful.

19 additional answers

Sort by: Most helpful
  1. Javier Moldes 21 Reputation points
    2022-11-03T13:24:58.117+00:00

    this worked for us without new user profil and o365 worked again

    as user!

    $acl1 = Get-Acl "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\" #$person = [System.Security.Principal.NTAccount]"all application packages" ##S-1-15-2-1 $sid = New-Object System.Security.Principal.SecurityIdentifier ("S-1-15-2-1") $person_temp = $sid.Translate( [System.Security.Principal.NTAccount]) $person = $person_temp.Value.Split("\")[1] $access = [System.Security.AccessControl.RegistryRights]"ReadKey" $inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit,ObjectInherit" $propagation = [System.Security.AccessControl.PropagationFlags]"None" $type = [System.Security.AccessControl.AccessControlType]"Allow" $rule = New-Object System.Security.AccessControl.RegistryAccessRule($person,$access,$inheritance,$propagation,$type) $acl1.AddAccessRule($rule) $acl1 | Set-Acl
    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

    4 people found this answer helpful.

  2. Hajo van Vulpen 20 Reputation points
    2023-01-18T08:42:33.98+00:00

    Could it be this issue is introduced again in the latest Clickshare Update ?

    4 people found this answer helpful.

  3. Rudy Ooms 596 Reputation points
    2022-06-30T09:23:07.383+00:00

    Just wondering... but those problem devices also had the clickshare app installed?

    3 people found this answer helpful.

  4. Smith, Rudolph 11 Reputation points
    2022-12-12T14:57:14.277+00:00

    Has there been any word from MS about fixing this issue? I am getting more and more users with this problem. Granted we have a "fix" but that is with our technicians having to walk through these steps.

    2 people found this answer helpful.