Cannot connect device

Toro Tibor 0 Reputation points
2026-09-10T11:24:49.3766667+00:00

I cannot connect my device with my Office 365 account. Cannot login to Office or Onedrive.

Error code -2147024891 appears

I tried resetting everything, connecting with different wifi.

Not sure what I can do

Microsoft 365 and Office | OneDrive | Other | Windows

1 answer

Sort by: Most helpful
  1. Kai-H 26,840 Reputation points Microsoft External Staff Moderator
    2026-09-13T09:22:21.3366667+00:00

    Hi, Toro Tibor

    Error-2147024891, also shown as 0x80070005, normally means “Access denied.” Since both Office and OneDrive are affected, this is more likely related to Windows permissions, cached sign-in details, or a policy on the device than to Wi-Fi.

    Here are some suggestions you can try:

    Open Settings > Accounts > Access work or school. Select the Office 365 account, choose Disconnect, restart the computer, then return to the same page and select Connect.

    Search for Credential Manager, open Windows Credentials, and remove entries containing MicrosoftOffice, OneDrive, or ADAL. Restart Windows and sign in again.

    Install all available updates from Settings > Windows Update, including optional updates, then reinstall the latest OneDrive desktop app.

    Confirm that Windows is using an administrator account. If this is a company-managed device, contact your IT administrator and provide error 0x80070005, as a security policy or missing Microsoft 365 license may be blocking access.

    Thank you for your patience in reading, I hope this information has been helpful to you. 


    If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment."    

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.