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,660 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. Artur Mielczarek 1 Reputation point
    2023-01-19T08:04:22.5366667+00:00

    Hello,

    we are currently testing a GPO deactivating the calendar integration.

    HKCU:\SOFTWARE\Barco\ClickShare Client" -Name CalendarIntegration" -Value "False"

    For 80% of the clients, the following steps helped:

    
    $idRef = System.Security.Principal.SecurityIdentifier
    $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($idRef,$access,$inheritance,$propagation,$type)
    
    $folder = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders'
    $acl = Get-Acl $folder
    try {
        $acl.AddAccessRule($rule)
        $acl |Set-Acl
    } catch { }
    
    $folder = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer'
    $acl = Get-Acl $folder
    try {
        $acl.AddAccessRule($rule)
        $acl |Set-Acl
    } catch { }
    
    
    $acl1 = Get-Acl "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" 
    $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
    
    0 comments No comments

  2. Casper Rügge 0 Reputation points
    2023-01-20T08:19:32.1133333+00:00

    We have the same problem.

    Barco click share fix works on some machines, but not on all.

    We have tried to uninstall the Barco Clickshare too, but then some users can't connect to the office apps like Michele Describe..

    "MS Teams, Outlook, OneDrive, and Word (etc) aren't working anymore. It always wants a login but the login windows immediately disappear after 0.5s ...."

    Barco click share had made a new fix "FixUserShellFolderPermissions2.zip", but that doesn't fix the problem: [https://www.barco.com/en/support/knowledge-base/6077-unresponsive-windows-taskbar-with-clickshare-app

    I have made a Microsoft ticket about this.

    I found this link from MS: [https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/authentication/automatic-authentication-fails


  3. Narciso Dant 0 Reputation points
    2023-01-24T10:01:16.9066667+00:00

    The script fixed the problem on all of them but on 2 pc's windows and explorer search stopped working. Do you know how to recover it?

    0 comments No comments