Solved

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

Posted on 2013-06-13
1
1,012 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create an email address policy 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…
This video discusses moving either the default database or any database to a new volume.

733 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