Disable ActiveSync based on assigned Policy
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
November 22nd, 2011 8:45am

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
Free Windows Admin Tool Kit Click here and download it now
December 24th, 2011 10:34am

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
December 24th, 2011 11:07am

please let us know if it works, this might helpful to others.Thanks & Regards, Kottees
Free Windows Admin Tool Kit Click here and download it now
December 24th, 2011 11:21am

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
December 24th, 2011 12:22pm

wow.. great!!! Have a great day:)Thanks & Regards, Kottees
Free Windows Admin Tool Kit Click here and download it now
December 24th, 2011 12:27pm

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
December 24th, 2011 3:14pm

Hi again, try like this -eq $"ABC-ActiveSync" it may help... Thanks & Regards, Kottees
Free Windows Admin Tool Kit Click here and download it now
December 24th, 2011 5:15pm

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
December 25th, 2011 12:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics