[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2013-06-13
1
Medium Priority
?
1,084 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
This video discusses moving either the default database or any database to a new volume.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

656 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