Commands › Exchange Online
Enable-Mailbox
Create mailboxes for existing users who don't already have mailboxes. You can also use this cmdlet to create In-Place archives for existing mailboxes. **Note**: In Exchange Online, you use this cmdlet to add archive mailboxes for existing users and to enable auto-expanding archives. To add a mailbox for an existing Microsoft Entra account, you need to add a license to the account as described in Assign licenses to user accounts.
Quick start script
# Enable-Mailbox — 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-Mailbox
$before | Format-List
# 3. Make the change (dry run first)
Enable-Mailbox -Identity <UserIdParameter> -Arbitration <SwitchParameter> -ArchiveDomain <SmtpDomain> -WhatIf
Enable-Mailbox -Identity <UserIdParameter> -Arbitration <SwitchParameter> -ArchiveDomain <SmtpDomain>
# 4. Verify and diff
$after = Get-Mailbox
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 13 parameter sets
Arbitration
Enable-Mailbox [-Identity] <UserIdParameter> [-Arbitration]
[-ActiveSyncMailboxPolicy <MailboxPolicyIdParameter>]
[-Alias <String>]
[-Confirm]
[-Database <DatabaseIdParameter>]
[-DisplayName <String>]
[-DomainController <Fqdn>]
[-Force]
[-ManagedFolderMailboxPolicy <MailboxPolicyIdParameter>]
[-ManagedFolderMailboxPolicyAllowed]
[-PrimarySmtpAddress <SmtpAddress>]
[-RetentionPolicy <MailboxPolicyIdParameter>]
[-RoleAssignmentPolicy <MailboxPolicyIdParameter>]
[-WhatIf]
[<CommonParameters>]
RemoteArchive
Enable-Mailbox [-Identity] <UserIdParameter> -ArchiveDomain <SmtpDomain>
[-ActiveSyncMailboxPolicy <MailboxPolicyIdParameter>]
[-Alias <String>]
[-Confirm]
[-DisplayName <String>]
[-DomainController <Fqdn>]
[-Force]
[-ManagedFolderMailboxPolicy <MailboxPolicyIdParameter>]
[-ManagedFolderMailboxPolicyAllowed]
[-PrimarySmtpAddress <SmtpAddress>]
[-RemoteArchive]
[-RetentionPolicy <MailboxPolicyIdParameter>]
[-RoleAssignmentPolicy <MailboxPolicyIdParameter>]
[-WhatIf]
[<CommonParameters>]
Discovery
Enable-Mailbox [-Identity] <UserIdParameter> [-Discovery]
[-ActiveSyncMailboxPolicy <MailboxPolicyIdParameter>]
[-Alias <String>]
[-Confirm]
[-Database <DatabaseIdParameter>]
[-DisplayName <String>]
[-DomainController <Fqdn>]
[-Force]
[-ManagedFolderMailboxPolicy <MailboxPolicyIdParameter>]
[-ManagedFolderMailboxPolicyAllowed]
[-PrimarySmtpAddress <SmtpAddress>]
[-RetentionPolicy <MailboxPolicyIdParameter>]
[-RoleAssignmentPolicy <MailboxPolicyIdParameter>]
[-WhatIf]
[<CommonParameters>]
Equipment
Enable-Mailbox [-Identity] <UserIdParameter> [-Equipment]
[-ActiveSyncMailboxPolicy <MailboxPolicyIdParameter>]
[-Alias <String>]
[-Confirm]
[-Database <DatabaseIdParameter>]
[-DisplayName <String>]
[-DomainController <Fqdn>]
[-Force]
[-ManagedFolderMailboxPolicy <MailboxPolicyIdParameter>]
[-ManagedFolderMailboxPolicyAllowed]
[-PrimarySmtpAddress <SmtpAddress>]
[-RetentionPolicy <MailboxPolicyIdParameter>]
[-RoleAssignmentPolicy <MailboxPolicyIdParameter>]
[-WhatIf]
[<CommonParameters>]
9 more parameter sets — see the parameter table below.
Parameters (34)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.