Commands › Exchange Online

Get-ManagementScope

Exchange Online ExchangeOnlineManagement Get-*

Return a list of management scopes.

Quick start script

# Get-ManagementScope — 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-ManagementScope | Format-List

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

Syntax

Get-ManagementScope [[-Identity] <ManagementScopeIdParameter>]
 [-DomainController <Fqdn>]
 [-Exclusive <Boolean>]
 [-Orphan]
 [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Identity ManagementScopeIdParameter The Identity parameter specifies the name of the management scope to return. If the management scope name contains spaces, enclose it in quotation marks (").
-DomainController Fqdn This parameter is available only in on-premises Exchange.
-Exclusive Boolean The Exclusive parameter specifies whether exclusive scopes should be returned. If the Exclusive parameter isn't specified, regular scopes and exclusive scopes are returned. If the Exclusive parameter is set to $True,...
-Orphan SwitchParameter The Orphan switch specifies whether to return only management scopes that aren't associated with role assignments. You don't need to specify a value with this switch.

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