1

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.

Todd Welch
  • 1,776
  • 2
  • 17
  • 23
  • Do you need active sync such as `ActiveSyncMailboxPolicy` ? – lloyd Jul 23 '19 at 02:36
  • Looks like [ad replication](https://techcommunity.microsoft.com/t5/Exchange/Quarantined-Mobile-Devices-Powershell/td-p/202831) might need to occur? – lloyd Jul 23 '19 at 02:45
  • Or just [remove-mobiledevice](https://practical365.com/exchange-server/unblock-mobile-device-exchange-server/) – lloyd Jul 23 '19 at 02:46
  • Hey Lloyd not sure what you mean by your first question but the second I have everything set like the link at ad replication and for Remove-MobileDevice wouldn't that remove its access to email? – Todd Welch Jul 23 '19 at 16:04

0 Answers0