Skip to main content

SYNOPSIS

Set Exchange mailbox protocol settings.

SYNTAX

Identity

ByDomain

FromCSV

AllMailboxes

DESCRIPTION

This function sets the protocol settings (MAPI, OWA, IMAP, POP, EWS, ActiveSync) for Exchange Online mailboxes. It can target mailboxes by identity, by domain, from a CSV file, or all mailboxes in the organization. It also allows enabling modern protocols only or modern protocols along with EWS. Additionally, it can configure SMTP Client Authentication settings at the mailbox level.

EXAMPLES

EXAMPLE 1

Sets modern protocols only for the specified mailbox.

EXAMPLE 2

Generates the Set-EXOCasMailbox cmdlets for all mailboxes in the specified domain to enable modern protocols only and saves them to the specified file without executing them.

EXAMPLE 3

Sets protocol settings for mailboxes listed in the specified CSV file.

EXAMPLE 4

Sets modern protocols along with EWS for all mailboxes in the organization.

PARAMETERS

-ActiveSyncEnabled

Set ActiveSync protocol enabled or disabled.

-AllMailboxes

If specified, all mailboxes in the organization will be processed.

-ByDomain

Filter mailboxes by domain name. All mailboxes with a primary SMTP address in this domain will be processed.

-Confirm

Prompts you for confirmation before running the cmdlet.

-EwsEnabled

Set EWS protocol enabled or disabled.

-FromCSV

The path to a CSV file containing mailbox identities to process.

-GenerateCmdlets

If specified, the function will generate the cmdlets and save them to a file instead of executing them.

-Identity

The identity of the mailbox(es) to set protocol settings for. This can be an array of email addresses, usernames, or display names.

-ImapEnabled

Set IMAP protocol enabled or disabled.

-MAPIEnabled

Set MAPI protocol enabled or disabled.

-ModernProtocolsAndEws

If specified, enables modern protocols (MAPI, OWA, Outlook Mobile) along with EWS, and disables legacy protocols (POP, IMAP, ActiveSync) along with disabling SMTP Client Authentication at the mailbox level.

-ModernProtocolsOnly

If specified, enables only modern protocols (MAPI, OWA, Outlook Mobile) and disables legacy protocols (POP, IMAP, ActiveSync, EWS) along with disabling SMTP Client Authentication at the mailbox level.

-OutlookMobileEnabled

Set Outlook Mobile access enabled or disabled.

-OutputFile

The path to the output file where generated cmdlets will be saved. Default is a timestamped file in the current directory.

-OWAEnabled

Set OWA protocol enabled or disabled.

-PopEnabled

Set POP protocol enabled or disabled.

-SmtpClientAuthenticationDisabled

Set SMTP Client Authentication disabled or enabled at the mailbox level.

-UniversalOutlookEnabled

Set Universal Outlook (the built-in Mail and Calendar app in Windows) enabled or disabled.

-WhatIf

Runs the command in a mode that only reports what would happen without performing the actions.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String[]

OUTPUTS

NOTES