Commands › Exchange Online
Set-TextMessagingAccount
The Set-TextMessagingAccount cmdlet allows a user to configure the text messaging settings on their own mailbox. An administrator can't use this cmdlet to configure the text messaging settings on another user's mailbox.
Quick start script
# Set-TextMessagingAccount — 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-TextMessagingAccount
$before | Format-List
# 3. Make the change (dry run first)
Set-TextMessagingAccount -Identity <MailboxIdParameter> -WhatIf
Set-TextMessagingAccount -Identity <MailboxIdParameter>
# 4. Verify and diff
$after = Get-TextMessagingAccount
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-TextMessagingAccount [-Identity] <MailboxIdParameter>
[-Confirm]
[-CountryRegionId <RegionInfo>]
[-DomainController <Fqdn>]
[-IgnoreDefaultScope]
[-MobileOperatorId <Int32>]
[-NotificationPhoneNumber <E164Number>]
[-WhatIf]
[<CommonParameters>]
Parameters (8)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.