Enable or disable Exchange CASMailbox protocols based on AD group membership
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.md
README.md
Update-CASMailbox.ps1

README.md

Update-CASMailbox.ps1

Enables or disabled Exchange CASMailbox protocols based on AD group membership

Description

This script fetches the members of an AD security group and compares the list of members with a list of mailbox users having the requested CAS feature configured. All mailbox users not having the feature configured will get the CAS feature configured.

Available options:

  • POP enabled/disabled
  • IMAP enabled/disabled
  • Outlook on the Web enabled/disabled
  • ActiveSync enabled/disabled

Configuration actions are logged using the global functions library https://gallery.technet.microsoft.com/Centralized-logging-64e20f97

Parameters

GroupName

Name of Active Directory security group with mailbox user accounts to configure CAS mailbox settings

POP

Switch to enable/disable POP3

IMAP

Switch to enable/disable IMAP4

OWA

Switch to enable/disabled Outlook on the web (aka Outlook Web Access)

ActiveSync

Switch to enable/disable Exchange Server ActiveSync

FeatureEnabled

Boolean attribute to enable or disable a CAS mailbox feature

Examples

.\Update-CAS-Mailbox.ps1 -POP -FeatureEnabled $true -GroupName Exchange_POP_enabled

Enable POP3 for members of group Exchange_POP_enabled

.\Update-CAS-Mailbox.ps1 -OWA -FeatureEnabled $true -GroupName MyCompany_OWA_enabled -Verbose

Enable OWA for members of group MyCompany_OWA_enabled and getting verbose output

TechNet Gallery

Download and vote at TechNet Gallery

Credits

Written by: Thomas Stensitzki

Stay connected:

For more Office 365, Cloud Security, and Exchange Server stuff checkout services provided by Granikos