Commands › Exchange Online
Set-AuthConfig
Modify the authorization configuration for your Exchange organization.
Quick start script
# Set-AuthConfig — 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-AuthConfig
$before | Format-List
# 3. Make the change (dry run first)
Set-AuthConfig -CertificateThumbprint <String> -WhatIf
Set-AuthConfig -CertificateThumbprint <String>
# 4. Verify and diff
$after = Get-AuthConfig
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 4 parameter sets
CurrentCertificateParameter
Set-AuthConfig -CertificateThumbprint <String>
[-SkipImmediateCertificateDeployment]
[-Confirm]
[-DomainController <Fqdn>]
[-Force]
[-Server <ServerIdParameter>]
[-WhatIf]
[<CommonParameters>]
PublishAuthCertificateParameter
Set-AuthConfig [-ClearPreviousCertificate]
[-PublishCertificate]
[-Confirm]
[-DomainController <Fqdn>]
[-Force]
[-WhatIf]
[<CommonParameters>]
NewCertificateParameter
Set-AuthConfig [-NewCertificateEffectiveDate <DateTime>]
[-NewCertificateThumbprint <String>]
[-SkipImmediateCertificateDeployment]
[-Confirm]
[-DomainController <Fqdn>]
[-Force]
[-Server <ServerIdParameter>]
[-WhatIf]
[<CommonParameters>]
AuthConfigSettings
Set-AuthConfig [-Realm <String>]
[-ServiceName <String>]
[-Confirm]
[-DomainController <Fqdn>]
[-WhatIf]
[<CommonParameters>]
Parameters (13)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.