Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Dear Robin Boyd,
Thank you for posting your question on the Microsoft Q&A forum.
To better understand the situation, could you please clarify a few details?
- Does the error appear after entering your work email in Word, Excel, or Outlook?
- Is the device personal or managed by your company/organization?
- During the sign-in process, do you see a prompt asking “Allow my organization to manage this device”?
If you only need to sign in to the Office applications and do not need the device to be managed by your organization, selecting “No, sign in to this app only” instead of “Allow my organization to manage this device” may help bypass the error.
The error “Device management could not be enabled” when signing into Microsoft 365 desktop applications usually occurs when the device attempts to automatically enroll into device management (MDM), but the enrollment process is blocked or fails. Below are some steps that might help you:
1/ Reconnect the work account from Windows
- Go to Settings > Accounts > Access work or school.
- Select your work account.
- Click Disconnect.
- Restart your computer.
- Open an Office app and sign in again
2/ Clear Cached Credentials and Identity Data
- Ensure all Office applications are closed.
- Open File Explorer and navigate to the following folders (one at a time):
- %localappdata%\Microsoft\OneAuth
- %localappdata%\Microsoft\IdentityCache
- Delete the contents inside these folders.
3/ Remove Old Credentials
- Open Control Panel
- Go to Credential Manager
- Select Windows Credentials
- Remove entries related to:
- MicrosoftOffice
- ADAL
- AzureAD
- Office 365
- Restart the computer and try signing in again.
If the issue persists, you may need to check with your IT Administrator to verify the device management configuration if:
- The device is not allowed to enroll.
- The device enrollment limit has been reached
- MDM auto-enrollment policies are misconfigured
I hope this information helps. If you have any additional details or questions, please feel free to share them.
If this response resolves your issue, kindly click Accept Answer and consider upvoting. If you need further clarification, 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.