logo
search
Windows Integration Errors

How to Fix Microsoft 365 Device Management Setup Error (80180002)

Anum MushtaqAnum Mushtaq Oct 20, 2026 870 views

Question details

The user is unable to sign into Microsoft 365 applications on Windows due to a device management setup failure.

How to Fix the Microsoft 365 Device Management Setup Error Without Intune
Product
Microsoft 365
Device & OS
Windows
Scenario
Signing into a Microsoft 365 application with a work or school account and accidentally allowing organizational device management.
Observed behavior
Windows attempts to apply device management policies but fails (often generating error 80180002), preventing the user from successfully setting up their account on the device.
Before you start

Ensure you have your correct Microsoft 365 business or school account credentials available and verify that you have administrative rights on your local Windows PC to remove saved credentials.

Solution 1Recommended

Disconnect the Account and Sign In to App Only

This is the most effective solution. It removes the problematic device management link from Windows and bypasses organizational MDM (Mobile Device Management) enrollment during the app sign-in process.

When you check 'Allow my organization to manage my device', Windows tries to enroll your PC into an MDM solution like Microsoft Intune. If your organization doesn't use Intune, this enrollment fails and blocks your app sign-in entirely.

1
Remove the account from Windows Settings

Open Windows Settings and go to Accounts > Access work or school. Click on your business or school account and select Disconnect to remove it. If multiple accounts are listed, remove all accounts that are not strictly required.

2
Clear cached Microsoft credentials

Click the Windows Start button, type 'Credential Manager', and press Enter. Select 'Windows Credentials', then scroll down and remove any saved credentials associated with Microsoft 365 or Office applications.

3
Sign into the Microsoft 365 app again

Open your Microsoft 365 application (such as Word or Excel) again and enter your sign-in credentials.

4
Bypass device management

When prompted with the 'Stay signed in to all your apps' dialog, uncheck the box that says 'Allow my organization to manage my device'. Then, click the 'No, sign in to this app only' text link instead of clicking the OK button.

Disconnect the Account and Sign In to App Only
Prevent Future Enrollment Errors: Always clicking 'No, sign in to this app only' on personal devices prevents Windows from attempting to enforce organizational IT policies on your local machine.
Free Microsoft Office alternative

Switch to WPS Office to Bypass Complex Account Management Issues

Tired of encountering complex Microsoft 365 device management policies and sign-in errors? WPS Office offers a powerful, lightweight, and hassle-free alternative. Enjoy full compatibility with Microsoft file formats without the strict organizational enrollment policies, letting you focus on your work instead of IT configuration.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installer for your Windows PC.
  2. 2. Install WPS Office: Run the setup file and follow the straightforward on-screen instructions to install the software suite.
  3. 3. Open Your Files Instantly: Launch WPS Office and directly open your existing Microsoft documents without any organizational sign-in barriers.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx).No complex device management (MDM) or organizational sign-in barriers required.Lightweight design ensures fast launch times and minimal system resource usage.Familiar user interface makes migrating from Microsoft Office completely seamless.
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get the 'device management could not be enabled' error?

This error usually occurs when you check the 'Allow my organization to manage my device' option during a Microsoft 365 app sign-in, but your organization does not actually have a Mobile Device Management (MDM) solution like Microsoft Intune properly configured to handle your PC's enrollment.

What does Microsoft error code 80180002 mean?

Error 80180002 is a specific Microsoft Entra ID (formerly Azure AD) enrollment error. It typically signifies that the Mobile Device Management (MDM) terms of use were not configured correctly by your IT administrator, or your user account lacks the proper licenses to enroll a device into the organizational network.

How can I use Microsoft 365 apps without enrolling my personal PC?

When signing into any Microsoft 365 application on a personal computer, make sure to uncheck the 'Allow my organization to manage my device' checkbox, and strictly click the text that says 'No, sign in to this app only' at the bottom of the prompt instead of clicking OK.

Will removing accounts from 'Access work or school' delete my personal files?

No, disconnecting your work or school account from Windows Settings does not delete your personal files or cloud documents. It simply severs the organizational management link and removes corporate policies from your local Windows PC.