Commands › Exchange Online
Enable-RemoteMailbox
Create a mailbox in the cloud-based service for an existing user in the on-premises Active Directory.
Quick start script
# Enable-RemoteMailbox — 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-RemoteMailbox
$before | Format-List
# 3. Make the change (dry run first)
Enable-RemoteMailbox -Identity <UserIdParameter> -Equipment <SwitchParameter> -Room <SwitchParameter> -WhatIf
Enable-RemoteMailbox -Identity <UserIdParameter> -Equipment <SwitchParameter> -Room <SwitchParameter>
# 4. Verify and diff
$after = Get-RemoteMailbox
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 5 parameter sets
Default
Enable-RemoteMailbox [-Identity] <UserIdParameter>
[-RemoteRoutingAddress <ProxyAddress>]
[-ACLableSyncedObjectEnabled]
[-Alias <String>]
[-Confirm]
[-DisplayName <String>]
[-DomainController <Fqdn>]
[-PrimarySmtpAddress <SmtpAddress>]
[-WhatIf]
[<CommonParameters>]
Room
Enable-RemoteMailbox [-Identity] <UserIdParameter>
[-Room]
[-ACLableSyncedObjectEnabled]
[-Alias <String>]
[-Confirm]
[-DisplayName <String>]
[-DomainController <Fqdn>]
[-PrimarySmtpAddress <SmtpAddress>]
[-RemoteRoutingAddress <ProxyAddress>]
[-WhatIf]
[<CommonParameters>]
Equipment
Enable-RemoteMailbox [-Identity] <UserIdParameter>
[-Equipment]
[-ACLableSyncedObjectEnabled]
[-Alias <String>]
[-Confirm]
[-DisplayName <String>]
[-DomainController <Fqdn>]
[-PrimarySmtpAddress <SmtpAddress>]
[-RemoteRoutingAddress <ProxyAddress>]
[-WhatIf]
[<CommonParameters>]
Archive
Enable-RemoteMailbox [-Identity] <UserIdParameter>
[-Archive]
[-ArchiveName <MultiValuedProperty>]
[-ACLableSyncedObjectEnabled]
[-Alias <String>]
[-Confirm]
[-DisplayName <String>]
[-DomainController <Fqdn>]
[-PrimarySmtpAddress <SmtpAddress>]
[-WhatIf]
[<CommonParameters>]
1 more parameter sets — see the parameter table below.
Parameters (14)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.