Solved

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

Posted on 2013-06-13
1
967 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
In this video we show how to create an Address List 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 Organization >> Ad…

932 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

11 Experts available now in Live!

Get 1:1 Help Now