Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-8435: How do I unblock a Mobile Device after blocking from the quarantine in O365?

App Access Service ,  

24 March,17 at 11:45 PM

Applies to: 

Centrify Identity Service, App Edition


How do I unblock a Mobile Device after blocking from the quarantine in O365?


Removing a mobile device from the blocked list requires PowerShell.

1)  Establish a connection to O365 with PowerShell:
$msolcred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $msolcred -Authentication Basic -AllowRedirection
net stop WinRM
net start WinRM
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $msolcred -Authentication Basic -AllowRedirection
Import-PSSession $Session
connect-msolservice -credential $msolcred

2) Locate the User Identity that owns the Mobile Device that is blocked 


Or use an available flag to narrow the results

Get-MobileDevice -Mailbox "Domain\User"

3)  Use the Identity value from step 2) in the following command to view ActiveSync Devices:

Get-CASMailbox -Identity TestUser | fl activesync*


4)  Remove the device from the blocked device ID list using the Identity and ActiveSyncBlockedDeviceID's from 3) :

Set-CASMailbox -Identity TestUser -ActiveSyncBlockedDeviceIDs @{remove='SAMPLE_ID_VALUE'}

5) Verify your change.  The Device ID should no longer appear in ActiveSyncBlockedDeviceIDs:

Get-CASMailbox -Identity TestUser | fl activesync*

For additional information not covered in this guide or troubleshooting assistance, please review Centrify Online Help or visit the Customer Support Portal at

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.