Commands › Exchange Online

Get-ExchangeSettings

Exchange Online ExchangeOnlineManagement Get-*

View customized Exchange setting objects that are stored in Active Directory. Use the New-ExchangeSettings to create the settings object, and the Set-ExchangeSettings cmdlet to define the actual settings.

Quick start script

# Get-ExchangeSettings — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-ExchangeSettings | Format-List

# 3. Export for evidence / drift tracking
Get-ExchangeSettings | Export-Clixml .\ExchangeSettings-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-ExchangeSettings [[-Identity] <ExchangeSettingsIdParameter>]
 [-ConfigName <String>]
 [-Database <DatabaseIdParameter>]
 [-Diagnostic]
 [-DiagnosticArgument <String>]
 [-DomainController <Fqdn>]
 [-Force]
 [-GenericScopeName <String>]
 [-GenericScopes <String[]>]
 [-GenericScopeValue <String>]
 [-Organization <OrganizationIdParameter>]
 [-Process <String>]
 [-Server <ServerIdParameter>]
 [-User <Guid>]
 [<CommonParameters>]

Parameters (14)

ParameterTypeRequiredWhat it controls
-Identity ExchangeSettingsIdParameter The Identity parameter specifies the name of the Exchange setting object. You can use any value that uniquely identifies the object. For example:
-ConfigName String The ConfigName parameter filter the results by the specified property name. The value you specify is visible in the EffectiveSetting property.
-Database DatabaseIdParameter The Database parameter filters the results by mailbox database. You can use any value that uniquely identifies the database. For example:
-Diagnostic SwitchParameter The Diagnostic switch specifies whether to return extremely detailed information in the results. You don't need to specify a value with this switch.
-DiagnosticArgument String The DiagnosticArgument parameter modifies the results that are returned by using the Diagnostic switch. Typically, you use the Diagnostic switch and the DiagnosticArgument parameter only at the request of Microsoft...
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-Force SwitchParameter The Force switch hides warning or confirmation messages. You don't need to specify a value with this switch.
-GenericScopeName String The GenericScopeName parameter filters the results by the scope. The available values are determined by the schema of the Exchange setting object.
-GenericScopes String[] The GenericScopes parameter filters the results by the scope. The available values are determined by the schema of the Exchange setting object. This parameter uses the syntax `"key1=value1","key2=value2", "keyN=valueN`.
-GenericScopeValue String The GenericScopeValue parameter filters the results by the value of the scope specified by the GenericScopeName parameter. The available values are determined by the schema of the Exchange setting object.
-Organization OrganizationIdParameter This parameter is reserved for internal Microsoft use.
-Process String The Process parameter filters the results by the specified process. The available values are determined by the schema of the Exchange setting object.
-Server ServerIdParameter The Server parameter filters the results by Exchange server. You can use any value that uniquely identifies the server. For example:
-User Guid The User parameter filters the results by user. You identify the user by their GUID value (for example, 87246450-1b19-4c81-93dc-1a4200eff66c). To find the GUID for a user, run the following command: `Get-User...

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.