Commands › Exchange Online
Move-DatabasePath
Set a new path to the location of a database on the specified Mailbox server and to move the related files to that location.
Quick start script
# Move-DatabasePath — 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
Move-DatabasePath -Identity <DatabaseIdParameter> | Format-List
# 3. Export for evidence / drift tracking
Move-DatabasePath | Export-Clixml .\DatabasePath-$(Get-Date -Format yyyyMMdd).xml
Syntax
Move-DatabasePath [-Identity] <DatabaseIdParameter>
[-ConfigurationOnly]
[-Confirm]
[-DomainController <Fqdn>]
[-EDBFilePath <EdbFilePath>]
[-Force]
[-LogFolderPath <NonRootLocalLongFullPath>]
[-WhatIf]
[<CommonParameters>]
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.