Exchange – Disable & Enable Mailbox Features based on Organisation Unit

In Exchange you can have a number of mailbox features either enabled or disabled for each mailbox. These features include Outlook Web Access (OWA), POP3, IMAP and ActiveSync. If you want to enable or disable all or any of these features on bulk or by Organisational Unit (OU) then you can use the following Exchange […]

Exchange Disable Enable Mailbox Features Based On Organisation Unit
In Exchange you can have a number of mailbox features either enabled or disabled for each mailbox. These features include Outlook Web Access (OWA), POP3, IMAP and ActiveSync. If you want to enable or disable all or any of these features on bulk or by Organisational Unit (OU) then you can use the following Exchange Management Shell PowerShell script to carry this out – just amend the script as you require it:
$OU='OU=IT,OU=Blog,DC=techygeekshome,DC=info'
Get-CASMailbox -OrganizationalUnit $OU | Set-CASMailbox -OWAEnabled:$false -ActiveSyncEnabled:$false -PopEnabled:$false -MAPIEnabled:$false -IMAPEnabled:$false
WHERE:
  • $OU = The variable for the OU that you want to run this script on
  • -OWAEnabled:$false
  • -ActiveSyncEnabled:$false
  • -PopEnabled:$false
  • -MAPIEnabled:$false
  • -IMAPEnabled:$false
The above will disable the features, if you want to enable the features, simply change $false to $true Then hit enter an run the script and it will change all the selected features on all mailboxes within the selected OU. You can also just select the features you want to enable or disable – you do not have to state all of the above. COMMENTS If you have any questions or comments on this guide, please feel free to leave us a message below using our comments system.
🛠️

Gear We Recommend

A few general tech accessories worth having alongside this.

Browse our General Tech Accessories picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.