Commands › Exchange Online
Set-RpcClientAccess
Modify the settings of the Microsoft Exchange RPC Client Access service on Exchange servers that have the Client Access server role installed. These settings affect Outlook clients that connect by using Outlook Anywhere (RPC over HTTP).
Quick start script
# Set-RpcClientAccess — 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-RpcClientAccess
$before | Format-List
# 3. Make the change (dry run first)
Set-RpcClientAccess -Server <ServerIdParameter> -WhatIf
Set-RpcClientAccess -Server <ServerIdParameter>
# 4. Verify and diff
$after = Get-RpcClientAccess
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-RpcClientAccess -Server <ServerIdParameter>
[-BlockedClientVersions <String>]
[-Confirm]
[-DomainController <Fqdn>]
[-EncryptionRequired <Boolean>]
[-MaximumConnections <Int32>]
[-Name <String>]
[-WhatIf]
[<CommonParameters>]
Parameters (8)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.