Tuesday, February 9, 2016

Mobile Device - Access Denied

Having trouble allowing access to ActiveSync for a mobile device?  You set Allowed through the GUI but it comes back Access Denied?

Try Powershell…


Start by discovering the DeviceID of the stubborn device with a Get-MobileDeviceStatistics –Mailbox user@domain.com command. 

You’ll be looking for DeviceID and the current DeviceAccessState.

Get-MobileDeviceStatistics -Mailbox jdoe@domain.com


Once you know the DeviceID you can enter the following command to allow that device to utilize ActiveSync. Note the DeviceID at the end of the command.

Set-CASMailbox -Identity jdoe@domain.com -ActiveSyncAllowedDeviceIDs G5CV17DITH25F0P91LHFG46FMG


To verify your work rerun the Get-MobileDeviceStatistics command to see if DeviceAccessState now shows Allowed.


Get-MobileDeviceStatistics -Mailbox jdoe@domain.com

8 comments:

  1. Thank you! A couple years later but still helped!

    ReplyDelete
  2. Article saved my bacon. Thanks!

    ReplyDelete
  3. It doesn't work for me

    ReplyDelete
  4. Thanks for this. MDM migration caused this for a small group of our users.

    ReplyDelete
  5. Howdy! I know this is kinda off topic but I was wondering if you knew where I could get a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one? Thanks a lot! Venito Leather Phone case wallet

    ReplyDelete
  6. dj equipments that are built by Sennheiser are the best in my opinion, we always use them when we have a gig:: Venito Leather Apple Watch Bands

    ReplyDelete
  7. I totally agree! I came over from google and am looking to subscribe. Where is your RSS feed? Leather Watch Bands

    ReplyDelete
  8. hello!,I love your writing so so much! share we keep in touch more about your article on AOL? I require a specialist on this house to solve my problem. Maybe that’s you! Looking forward to look you. Leather Watch Bands by Venito

    ReplyDelete