Solved

Cmdlets to change all mailboxes to 'ActiveSync Mailbox Policy' to the 'Default' policy

Posted on 2013-06-13
1
954 Views
Last Modified: 2013-06-20
Is there a global cmdlet in Exchange 2010 that will change all users 'ActiveSync Mailbox Policy' to the 'Default' policy. It looks like we have three ActiveSync Mailbox Policies set up by different admins for testing purposes over the years, but they are all identical configs.

Ultimately I want to delete the two and leave the Default policy alone for all users.

Thanks in advance.
0
Comment
Question by:GCTTechs
1 Comment
 
LVL 11

Accepted Solution

by:
James Hodge earned 500 total points
ID: 39246630
Hello,

This will do it:

Get-Mailbox | Set-CASMailbox -ActiveSycnMailboxPolicy (Get-ActiveSyncMailboxPolicy "Default Policy").identity

Here, you can check which users are assigned which policy:

Set a variable for the policy name:
$ActiveSyncPolicyName = (Get-ActiveSyncMailboxPolicy “Default Policy“).Identity.DistinguishedName

Run the command to see who has the policy:
Get-CASMailbox -Filter {ActiveSyncMailboxPolicy -eq $ActiveSyncPolicyName} |ft Displayname, ActiveSyncMailboxPolicy, Servername

James
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now