A Microsoft file hosting and synchronization service.
Since OneDrive works in a web browser on the same computer and also works on your phone, your account credentials and MFA appear to be working correctly. The issue may be occurring when the OneDrive desktop application attempts to complete authentication through Windows.
Because the same issue occurs on multiple Windows 11 computers, it could be related to the network connection, cached OneDrive sign-in information, Windows Web Account Manager, or an access policy configured by your academic institution. Please try the following steps in order.
Here are a few steps you can try:
- Test a different network
- Connect one of the affected computers to a mobile hotspot, temporarily disconnect any VPN or proxy, and then try signing in to OneDrive again. This can help determine whether a firewall, network filter, or security application is preventing the OneDrive desktop client from completing the connection.
- For more information, see: Can't sign in to OneDrive
- Clear the OneDrive pre-sign-in configuration
- Close OneDrive, press Windows key + R, and enter the following location: %localappdata%\Microsoft\OneDrive\settings
-
- Locate and delete the following file: PreSignInSettingsConfig.json
-
- Restart OneDrive and try signing in again.
- Deleting this file refreshes OneDrive’s cached pre-sign-in configuration. For more information, see Clear OneDrive cached credentials and OneDrive shows “You’re syncing a different account” error.
- Repair the Windows authentication components
If the issue continues, it may be related to the authentication components used by desktop applications.
- For a work or school account, the current guidance is to check and, if necessary, re-register the Microsoft.AAD.BrokerPlugin package.
- Type PowerShell in the Windows search bar, find Windows PowerShell, and select Run as administrator.
-
- Then copy and paste the following command:
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
-
- Press Enter and wait for the command to finish.
- Afterward, restart the computer and try signing in to OneDrive again.
For more information, see: Authentication automatically fails in Microsoft 365 services.
You can also review Can't sign in to Microsoft 365 desktop applications for additional troubleshooting. That article instructs users to re-register both WAM-related packages if the earlier troubleshooting steps are unsuccessful.
To re-register the authentication broker component, open Windows PowerShell by typing PowerShell in the search bar, then right-click and select Run as administrator. Copy and paste the following command for work or school accounts:
Add-AppxPackage -Register "$env:windir\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\Appxmanifest.xml" -DisableDevelopmentMode –ForceApplicationShutdown
Press Enter and wait for completion. After that, run this second command:
Add-AppxPackage -Register "$env:windir\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\Appxmanifest.xml" -DisableDevelopmentMode –ForceApplicationShutdown
Once both commands have finished, close PowerShell.
The article applies broadly to Microsoft 365 desktop applications and is listed under previous versions, so some of its steps may not apply to the current OneDrive client. The current guidance for organizational work or school accounts focuses on the Microsoft.AAD.BrokerPlugin package.
If any of the affected computers are owned or managed by the institution, do not run these PowerShell commands, disable security software, or disconnect the account under Settings > Accounts > Access work or school without first checking with the institution’s IT administrator.
- Contact the institution’s IT administrator if the issue remains
If none of the steps above resolves the issue, reproduce the error and check whether More details, Troubleshooting details, or Copy details is available. Record the following information:
- Error code and Error tag
- Correlation ID and Request ID
- Exact timestamp (if no details link is shown, take a screenshot that includes your Windows taskbar clock)
Share these details with your institution’s Microsoft 365 administrator and ask them to inspect the failed attempt in the Microsoft Entra admin center under Identity > Monitoring & health > Sign-in logs (filtered for your account and the Microsoft OneDrive Sync Engine application).
Specifically, ask them to check the Failure reason, Conditional Access tab, Device ID, and Compliance status. Because your account works in a web browser and on your phone, this log will confirm whether an institutional Conditional Access policy is blocking unmanaged or non-compliant Windows desktop clients from completing the sign-in.
For additional information, refer to Conditional Access and Microsoft Entra activity logs.
Please try the suggested steps at your convenience and check whether they help resolve the issue. I hope everything works successfully for you.