Skip to main content

SYNOPSIS

Sets the regional configuration for Exchange mailboxes, including language, time zone, date format, and time format.

SYNTAX

Identity

ByDomain

FromCSV

AllMailboxes

DESCRIPTION

This function sets the regional configuration settings (language, time zone, date format, time format) for Exchange Online mailboxes. It can target mailboxes by identity, by domain, from a CSV file, or all mailboxes in the organization. It also supports generating the corresponding Set-MailboxRegionalConfiguration cmdlets without executing them.

EXAMPLES

EXAMPLE 1

Generates the Set-MailboxRegionalConfiguration cmdlet for the specified mailbox with the given regional settings and saves it to the specified file without executing it.

EXAMPLE 2

Sets the regional configuration for all mailboxes in the specified domain to French language and Romance Standard Time zone.

EXAMPLE 3

Generates the Set-MailboxRegionalConfiguration cmdlets for mailboxes listed in the specified CSV file and saves them to the specified file without executing them.

EXAMPLE 4

Sets the regional configuration only for mailboxes in the specified domain that currently have no language configured.

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.

-DateFormat

The date format to set for the mailbox regional configuration (e.g., ‘MM/dd/yyyy’, ‘dd/MM/yyyy’). Auto-detected based on the specified language if not provided.

-FromCSV

The path to a CSV file containing mailbox identities and optional regional configuration settings 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 regional configuration for. This can be an array of email addresses, usernames, or display names.

-Language

The language code to set for the mailbox regional configuration (e.g., ‘en-US’, ‘fr-FR’). See the ValidateSet in the parameter definition for supported language codes.

-OnlyIfLanguageEmpty

If specified, the function will only modify mailboxes that currently have no language configured (empty Language property). Useful to avoid overwriting existing configurations set by users or administrators.

-OutputFile

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

-TimeFormat

The time format to set for the mailbox regional configuration (e.g., ‘HH:mm’, ‘hh:mm tt’). Auto-detected based on the specified language if not provided.

-TimeZone

The time zone to set for the mailbox regional configuration. This can be a time zone ID (e.g., ‘Pacific Standard Time’) or a simplified offset format (e.g., ‘+1’, ‘-5’). See the ValidateSet in the parameter definition for supported offset values.

-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