A cloud-based identity and access management service for securing user authentication and resource access
The workstation’s WAM sign-in problem and the complexity around Azure AD Connect/Hybrid join are separate issues. For a single user who “just wants OneDrive and Office to stay signed in,” focus on fixing the local authentication components first instead of rebuilding hybrid.
Based on the context, there are two key areas to check on the Windows 11 client:
- Fix the Microsoft Entra WAM plugin (Microsoft.AAD.BrokerPlugin)
This plugin is required for modern authentication and WAM-based sign-in to Microsoft 365 apps (OneDrive, Office, Teams, etc.). If it is missing or broken, users see repeated prompts or errors like the one described. On the affected workstation:- Open an elevated PowerShell window:
- Right-click Start → Windows PowerShell (Admin).
- Approve the UAC prompt.
- Run the following command to repair/reinstall the Microsoft Entra WAM plugin package:
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 - After the command completes without errors, restart the workstation.
- Have the user sign in to Windows with their domain account, then open OneDrive/Office and sign in with their Microsoft 365 account again.
- Open an elevated PowerShell window:
- Use the built-in troubleshooter for Microsoft 365 desktop sign-in
Windows 10/11 includes an “Access work or school” troubleshooter that specifically targets the scenario where users cannot sign in to Microsoft 365 desktop apps (Teams, OneDrive, Outlook, Word, Excel, PowerPoint) due to missing or broken AAD broker components. On the affected workstation:- On Windows 10: Start → Settings → Update & Security → Troubleshoot → View troubleshooting history and confirm whether the Access work or school troubleshooter has run. If it appears, it may already have attempted to repair the AAD broker plugin.
- On Windows 11: Start → Settings → System → Troubleshoot → Recommended troubleshooter history and look for:
Access work or school troubleshooter – Automatically repair system files and settings to fix a problem on your device
Microsoft.AAD.BrokerPluginpackage if it is missing. - Avoid unnecessary Azure AD Connect/Hybrid changes for a single WAM issue
From the context:- Azure AD Connect (“Sync”) is required for hybrid identity scenarios and “same sign-on,” but it is not required just to fix a single workstation’s WAM sign-in problem.
- AAD Connect is intended to synchronize users and (optionally) password hashes from on-premises AD to Microsoft 365. It is not the fix for a broken WAM plugin on one client.
- Repairing
Microsoft.AAD.BrokerPluginas above. - Ensuring the device can reach Microsoft 365 endpoints and that no local firewall/proxy is blocking modern auth.
- If the device is domain-joined only
Hybrid Azure AD join is not strictly required for OneDrive/Office sign-in to work. A domain-joined device can still use modern authentication as long as:- The user’s cloud identity exists and is licensed in Microsoft 365.
- The WAM plugin and sign-in components on the device are healthy.
Summary of practical steps:
- On the affected workstation, run the PowerShell command to repair
Microsoft.AAD.BrokerPluginand restart. - Verify that the “Access work or school troubleshooter” has run (or will run automatically) and that the user can sign in to Microsoft 365 apps afterward.
- Avoid further Azure AD Connect/Hybrid reconfiguration unless there is a broader directory synchronization or hybrid identity requirement beyond this one user’s WAM issue.
References: