Why Doesn't Set-CASMailbox Remove Mobile Device from Exchange 2019 Quarantine?

642 Views Asked by At

I am writing a script to remove devices from quarantine but even though the code seems to "work" it does not ever actually remove the device from quarantine.

I am running this code

Set-CASMailbox -Identity $username -ActiveSyncAllowedDeviceIDs @{add="$mobileDevices[[int]$menuSelect].DeviceID"} -Confirm:$True

The first time it gives no return output just a new prompt. If I run it again it now says:

WARNING: The command completed successfully but no settings of 'chry/Domain Sites/Cedar/Canon Lan' have been modified.

So it seems that it successfully added the allowed device ID but when I run Get-MobileDevice it still shows Device Access State: Quarantined and it also still shows in the GUI.

Any help would be greatly appreciated as I have not been able to find anything searching so far.

0

There are 0 best solutions below