Solved

Exchange 2010 - Changing Default Mailbox Features

Posted on 2010-09-21
5
6,034 Views
Last Modified: 2012-05-10
I need to disable the mailbox features, Exchange ActiveSync, IMAP4, and POP3 on all the existing mailboxes. I also need to modify the default mailbox template to have these automatically disabled by default.
0
Comment
Question by:DowntownIT
[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
  • 3
  • 2
5 Comments
 
LVL 7

Expert Comment

by:CompanionCube
ID: 33725642
Enable or Disable IMAP4 Access for a User
http://technet.microsoft.com/en-us/library/bb676481.aspx

Enable or Disable POP3 Access for a User
http://technet.microsoft.com/en-us/library/bb691018.aspx

Disable Exchange ActiveSync
http://technet.microsoft.com/en-us/library/bb124502.aspx
0
 
LVL 7

Expert Comment

by:CompanionCube
ID: 33725791
Create new users with POP, IMAP, ActiveSync and Outlook Anywhere disabled by default
http://social.technet.microsoft.com/forums/en-US/exchangesvradmin/thread/ff1347a4-c986-433f-ba4e-fe609ca69c3a

You may refer below thread for scheduling a script to disable those everynight for new users.
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3811652&SiteID=17
0
 
LVL 2

Accepted Solution

by:
DowntownIT earned 0 total points
ID: 33726393
Thanks for the forum dump :P

To have all new users created with POP, IMAP and Active Sync disabled
Save the code below as ScriptingAgentConfig.xml in the \bin\CmdletExtensionAgents folder, which, by default is C:\Program Files\Microsoft\Exchange Server\V14\Bin\CmdletExtensionAgents
 
enable the Cmdlet Extension Agent. Open an Exchange Management Shell window and use the following command:
Enable-CmdletExtensionAgent "Scripting Agent"


Sources
http://www.ucblogs.net/blogs/exchange/archive/2010/05/29/Using-Scriping-Agent-to-cause-automatic-events-to-occur-in-Exchange-2010-_2D00_-life-just-got-simpler_2100_.aspx
http://www.flobee.net/automatically-disable-activesync-for-new-mailboxes-in-exchange-2010/
<?xml version="1.0" encoding="utf-8" ?>  
<Configuration version="1.0">  
	<Feature Name="MailboxProvisioning" Cmdlets="enable-mailbox">  
		<ApiCall Name="OnComplete">  
			if($succeeded)  
				{  
				$user = (Get-User $provisioningHandler.UserSpecifiedParameters["Identity"]).distinguishedName  
				Set-CASMailbox $user -ActiveSyncEnabled $false 
				}  
			</ApiCall>  
		</Feature>  
	<Feature Name="MailboxProvisioning" Cmdlets="new-mailbox">  
		<ApiCall Name="OnComplete">  
			if($succeeded)  
				{  
				$user = (Get-User $provisioningHandler.UserSpecifiedParameters["Name"]).distinguishedName  
				Set-CASMailbox $user -ActiveSyncEnabled $false 
				}  
			</ApiCall>  
		</Feature>
	<Feature Name="MailboxProvisioning" Cmdlets="enable-mailbox">  
		<ApiCall Name="OnComplete">  
			if($succeeded)  
				{  
				$user = (Get-User $provisioningHandler.UserSpecifiedParameters["Identity"]).distinguishedName  
				Set-CASMailbox $user -PopEnabled $false 
				}  
			</ApiCall>  
		</Feature> 
	<Feature Name="MailboxProvisioning" Cmdlets="new-mailbox">  
		<ApiCall Name="OnComplete">  
			if($succeeded)  
				{  
				$user = (Get-User $provisioningHandler.UserSpecifiedParameters["Name"]).distinguishedName  
				Set-CASMailbox $user -PopEnabled $false 
				}  
			</ApiCall>  
		</Feature>
	<Feature Name="MailboxProvisioning" Cmdlets="enable-mailbox">  
		<ApiCall Name="OnComplete">  
			if($succeeded)  
				{  
				$user = (Get-User $provisioningHandler.UserSpecifiedParameters["Identity"]).distinguishedName  
				Set-CASMailbox $user -ImapEnabled $false 
				}  
			</ApiCall>  
		</Feature> 
	<Feature Name="MailboxProvisioning" Cmdlets="new-mailbox">  
		<ApiCall Name="OnComplete">  
			if($succeeded)  
				{  
				$user = (Get-User $provisioningHandler.UserSpecifiedParameters["Name"]).distinguishedName  
				Set-CASMailbox $user -ImapEnabled $false 
				}  
			</ApiCall>  
		</Feature>
</Configuration>

Open in new window

0
 
LVL 2

Author Comment

by:DowntownIT
ID: 33726692
Below power shell enabled and disabled Active for all the users in the exchange Organization. You can also use this for -PopEnabled and -ImapEnable

get-Mailbox -resultsize unlimited | set-CASMailbox -ActiveSyncEnabled:$False
get-Mailbox -resultsize unlimited | set-CASMailbox -ActiveSyncEnabled:$True

Below powershell command to enable and disable active sync for given set of users in the text file

Get-content C:\users.txt | set-CASMailbox -ActiveSyncEnabled:$True
Get-content C:\users.txt| set-CASMailbox -ActiveSyncEnabled:$True

Below powershell command to get the list of users who ActiveSync is Enabled and Disabled

Get-CASMailbox -ActiveSyncEnabled:$True
Get-CASMailbox -ActiveSyncEnabled:$False
0
 
LVL 2

Author Comment

by:DowntownIT
ID: 33726697
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
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.
To show how to generate a certificate request 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 >> Certificates…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

738 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