Fix Microsoft 365 Exchange Online License Removal Errors
Question details
Troubleshoot errors when removing an Exchange Online license from a Microsoft 365 user.

- Product
- Microsoft 365 and Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator wants to remove an unnecessary Exchange Online license while checking for conflicts with service plans in other assigned licenses.
- Observed behavior
- Removing the license with Set-MsolUserLicense may fail when the license identifier is incorrect or an Exchange Online service component is disabled in another assigned license.
Sign in with a Microsoft 365 administrator account that can manage user licenses. Identify the affected user and check which license includes the Exchange Online service plan before making changes.
Review Exchange Online service plans in the Microsoft 365 admin center
Use the admin center to inspect assigned licenses and resolve a possible disabled-service conflict before removing the unwanted license.
Go to the Microsoft 365 admin center, select Users > Active users, and open the affected user's account.
Select Licenses and apps. Review the assigned licenses and expand the Apps or service-plan list to see whether Exchange Online is enabled in another license.
If the user should keep Exchange Online through another assigned license and its Exchange Online app is disabled, enable that app and save the changes. Resolve any service-plan validation messages before continuing.
Return to Licenses and apps, clear the unwanted license assignment, and save. Confirm that the intended license and Exchange Online service remain assigned.

Identify and remove the correct license with Microsoft Graph PowerShell
Use Microsoft Graph PowerShell to inspect assigned SKU IDs and remove a directly assigned license when a command-line approach is preferred.
Use WPS Office as an alternative for everyday document work
WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easier to move everyday document work. It does not manage Microsoft 365 licenses or replace Exchange Online.

Frequently Asked Questions
Why might an Exchange Online license fail to be removed?
The command may target the wrong license identifier, or a disabled Exchange Online service plan in another assigned license may cause a conflict. Check the user's Licenses and apps page and review the exact error before retrying.
Where can I see which services are enabled in a license?
In the Microsoft 365 admin center, go to Users > Active users, select the user, and open Licenses and apps. Expand the apps or service-plan list for the assigned licenses.
Can I still use Set-MsolUserLicense?
Set-MsolUserLicense is part of the retired MSOnline module. Use the Microsoft 365 admin center or Microsoft Graph PowerShell's Set-MgUserLicense command instead.
What if the license is assigned through a group?
A group-assigned license cannot be removed directly from the user. Review the group's license assignment or change the user's group membership, taking care not to affect other required services.
Will removing the license affect the user's mailbox?
It can affect Exchange Online access and mailbox retention if the user no longer has an appropriate Exchange Online entitlement. Verify the remaining service plan and applicable retention settings before removing the license.




