Commands › Exchange Online
New-ManagementScope
Create a regular or exclusive management scope.
Quick start script
# New-ManagementScope — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-ManagementScope
$before | Format-List
# 3. Make the change (dry run first)
New-ManagementScope -Name <String> -DatabaseList <DatabaseIdParameter[]> -DatabaseRestrictionFilter <String> -WhatIf
New-ManagementScope -Name <String> -DatabaseList <DatabaseIdParameter[]> -DatabaseRestrictionFilter <String>
# 4. Verify and diff
$after = Get-ManagementScope
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 5 parameter sets
DatabaseList
New-ManagementScope [-Name] <String> -DatabaseList <DatabaseIdParameter[]>
[-Confirm]
[-DomainController <Fqdn>]
[-Exclusive]
[-Force]
[-WhatIf]
[<CommonParameters>]
DatabaseFilter
New-ManagementScope [-Name] <String> -DatabaseRestrictionFilter <String>
[-Confirm]
[-DomainController <Fqdn>]
[-Exclusive]
[-Force]
[-WhatIf]
[<CommonParameters>]
RecipientFilter
New-ManagementScope [-Name] <String> -RecipientRestrictionFilter <String>
[-Confirm]
[-DomainController <Fqdn>]
[-Exclusive]
[-Force]
[-RecipientRoot <OrganizationalUnitIdParameter>]
[-WhatIf]
[<CommonParameters>]
ServerList
New-ManagementScope [-Name] <String> -ServerList <ServerIdParameter[]>
[-Confirm]
[-DomainController <Fqdn>]
[-Exclusive]
[-Force]
[-WhatIf]
[<CommonParameters>]
1 more parameter sets — see the parameter table below.
Parameters (12)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.