Commands › SharePoint Online
Clear-SPOTenantPreAuthSettings
Clears the pre-authentication settings for either the allow or deny list.
Quick start script
# Clear-SPOTenantPreAuthSettings — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com
# 2. Run and inspect
Clear-SPOTenantPreAuthSettings -Type <TenantPreAuthSettingsListType> | Format-List
# 3. Export for evidence / drift tracking
Clear-SPOTenantPreAuthSettings | Export-Clixml .\SPOTenantPreAuthSettings-$(Get-Date -Format yyyyMMdd).xml
Syntax
Clear-SPOTenantPreAuthSettings -Type <TenantPreAuthSettingsListType> [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (3)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.