none
Disable ActiveSync based on assigned Policy RRS feed

  • Question

  • We have created a new ActiveSync policy and assigned it to those users who are allowed to connect to our Exchange environment through this feature. Now, I need to disable ActiveSync for all users/mailbox to which the Default policy is assigned.

    Also, can someone recommend a good training or site where I can get more familiar with Powershell commands. Exchange 2010 being were Powershell oriented, I feel it is important to get more at ease with this.

    Thanks.


    Francois S. at FMD
    Monday, November 21, 2011 4:46 PM

Answers

  • please let us know if it works, this might helpful to others.
    Thanks & Regards, Kottees
    • Marked as answer by FrancoisFMD Friday, November 25, 2011 5:39 PM
    Friday, November 25, 2011 4:38 PM

All replies

  • Hello Francois,
    The below command works for me.. try this out..
    Get-CASMailbox -Filter {ActiveSyncMailboxPolicy -eq $ActivesyncPolicyName} | Set-CASMailbox -ActiveSyncEnabled $false
    Please check in testing environment before run on production.

    Thanks & Regards, Kottees R
    Tuesday, November 22, 2011 5:45 AM
  • Hi,

    Thanks for the info. I was able to validate one side, ie. get a list of users who has the Default active sync policy. I would like to validate the other side, those who have the new active sync policy but I get an error most probably because there is an - in my policy name. I tried different ways of entering the name of the policy but I don't get the results, ie. -eq $ABC-ActiveSync. Is there a special way to enter this?


    Francois S. at FMD
    Thursday, November 24, 2011 8:50 PM
  • Hi again,

    try like this -eq $"ABC-ActiveSync"  

    it may help...


    Thanks & Regards, Kottees
    Thursday, November 24, 2011 10:51 PM
  • Hi,

    I tried that syntax and it does not work. I will try some other way of validating the info.

    Thanks again for your help.


    Francois S. at FMD
    Friday, November 25, 2011 3:50 PM
  • please let us know if it works, this might helpful to others.
    Thanks & Regards, Kottees
    • Marked as answer by FrancoisFMD Friday, November 25, 2011 5:39 PM
    Friday, November 25, 2011 4:38 PM
  • Find a workaround. Instead of putting -eq $ABC-ActiveSync, I used -ne $Default. So basically, since I have only two policy, whatever is returned as a result is equal to those who are assigned the ABC-ActiveSync policy.

    Thanks again for your help. It really gave me a head start on this.


    Francois S. at FMD
    Friday, November 25, 2011 5:39 PM
  • wow.. great!!! Have a great day:)
    Thanks & Regards, Kottees
    Friday, November 25, 2011 5:44 PM