Solved

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

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
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 an Accepted Domain 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 Mail Flow >> Ac…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

839 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