Exchange Connection Problems

Fix Exchange Online Mobile Devices Returning to Quarantine

Elise WilliamsElise Williams Nov 13, 2026 868 views

Question details

An administrator needs to stop approved mobile devices from repeatedly returning to quarantine in Exchange Online.

Fix Exchange Online Mobile Devices Returning to Quarantine
Product
Microsoft Exchange Online
Device & OS
iPhone and Android
Scenario
An iPhone and an Android device are approved for Exchange access, while other users' devices are unaffected.
Observed behavior
Manual approval works temporarily, but the affected devices return to Quarantined Devices.
Before you start

Sign in with an account authorized to manage Exchange Online mailboxes and mobile devices. Identify the affected mailbox and device, and install the Exchange Online PowerShell module if it is not already available.

Solution 1Recommended

Add the affected device ID to the mailbox's allowed list

Use Exchange Online PowerShell to check the device ID and preserve existing allowed IDs while adding the affected device.

1
Connect to Exchange Online

Open PowerShell and run Connect-ExchangeOnline. Sign in with your Exchange administrator account.

2
Find the device ID

Run Get-MobileDevice -Mailbox user@contoso.com | Format-Table Identity,DeviceId,DeviceAccessState. Replace the mailbox address and note the DeviceId for the affected phone.

3
Review existing allowed IDs

Run Get-CASMailbox -Identity user@contoso.com | Select-Object -ExpandProperty ActiveSyncAllowedDeviceIDs. Record the existing IDs so they remain on the list.

4
Add the affected ID

In the same PowerShell session, run $ids = @((Get-CASMailbox -Identity user@contoso.com).ActiveSyncAllowedDeviceIDs) | Where-Object { $_ }; then run $ids = @($ids + 'DEVICE_ID' | Select-Object -Unique), replacing DEVICE_ID with the value you found. Run Set-CASMailbox -Identity user@contoso.com -ActiveSyncAllowedDeviceIDs $ids to apply the complete list.

5
Verify the change

Wait 15 minutes to two hours, then run Get-MobileDevice -Mailbox user@contoso.com | Format-Table Identity,DeviceId,DeviceAccessState and check whether the phone remains allowed.

Add the affected device ID to the mailbox's allowed list
Preserve existing approvals: Set-CASMailbox replaces the allowed-ID list supplied to it. Include every ID that should remain allowed, and check for concurrent administrative changes before applying the update.
Free Microsoft Office alternative

Work with Office files in WPS Office

WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format compatibility make it easy to move existing files. It does not manage Exchange Online quarantine or replace an Exchange email client.

Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTX.Use a familiar interface to work with existing Office files.Access office documents on mobile devices without changing Exchange quarantine settings.Use a free, lightweight office suite for everyday file editing.
microsoft office alternative - wps office

Frequently Asked Questions

How do I find the Exchange device ID for a phone?

Connect to Exchange Online PowerShell and run Get-MobileDevice -Mailbox user@contoso.com | Format-Table Identity,DeviceId,DeviceAccessState. Match the phone to its DeviceId.

Will adding a device ID remove existing approvals?

It can if you submit only the new ID. Read ActiveSyncAllowedDeviceIDs with Get-CASMailbox and include all IDs that should remain allowed when running Set-CASMailbox.

How long does an allowed-device change take to apply?

Allow approximately 15 minutes to two hours, then check the device access state again with Get-MobileDevice.

What should I do if the phone keeps returning to quarantine?

Remove the affected partnership with Remove-MobileDevice, restart and reconnect the phone, and approve it again. If the problem persists, contact Microsoft Support to investigate possible replication or service issues.