Exchange – Disable & Enable Mailbox Features based on Organisation Unit

5d05eb33135798a962e3199db1fa4a4c

Last updated on April 1st, 2023 at 08:40 pm

Read Time:1 Minute, 2 Second

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.

Click to rate this post!
[Total: 0 Average: 0]

Free Subscription

If you want to be notified when we post more quality guides like this one, sign up to our free subscription service and you will receive an email when a new post is live.

Join 441 other subscribers.

No need to worry, we will not be filling your inbox with spam and you can unsubscribe anytime you like.


Leave us a message...

This site uses Akismet to reduce spam. Learn how your comment data is processed.