We help IT Professionals succeed at work.

Help with powershell command to un-quarantine activesync devices  on exchange 2010

sirichaiphumirat
on
Can someone please help regarding the powershell command to un-quarantine an active sync device. I can't seem to find that on any where.

thanks
Comment
Watch Question

Will SzymkowskiSenior Solution Architect
Most Valuable Expert 2015
Top Expert 2015

Commented:
Use the following command in powershell to accomplish this...
Get-CASMailbox -Identity <alias> | Set-CASMailbox -ActiveSyncBlockedDeviceIDs:$false

Open in new window


Will.

Author

Commented:
great thanks, but would you know how i would un-quarantine  per devices. Because i have a user that has more then one, but want to only allow one of their devices to come through. I have their DeviceID also.
Senior Solution Architect
Most Valuable Expert 2015
Top Expert 2015
Commented:
If you want to do this on a individual basis you need to do the following...

Get the user's phone ID
Get-ActiveSyncDeviceStatistics -Mailbox <user1> | fl 

Open in new window


Once you have the ID for the Phone run the following command
Remove-ActiveSyncDevice -Identity <phone identity>

Open in new window



Will.

Author

Commented:
thank you