Skip to main content

SYNOPSIS

Set maximum mailbox size for specified mailboxes.

SYNTAX

Identity

ByDomain

FromCSV

AllMailboxes

DESCRIPTION

This function sets the maximum mailbox size (MaxReceiveSize and MaxSendSize) for Exchange Online mailboxes. It can target mailboxes by identity, by domain, from a CSV file, or all mailboxes in the organization.

EXAMPLES

EXAMPLE 1

Sets the maximum mailbox size for the specified mailbox.

EXAMPLE 2

Sets the maximum mailbox size for all mailboxes in the specified domain.

EXAMPLE 3

Sets the maximum mailbox size for all mailboxes in the organization.

EXAMPLE 4

Sets the maximum mailbox size for mailboxes listed in the specified CSV file.

EXAMPLE 5

Generates the Set-Mailbox cmdlets for all mailboxes in the specified domain and saves them to the specified file without executing them.

PARAMETERS

-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.

-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 the maximum size for. This can be an array of email addresses, usernames, or display names.

-OutputFile

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

-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