Commands › SharePoint Online

Clear-SPOTenantPreAuthSettings

SharePoint Online Microsoft.Online.SharePoint.PowerShell Clear-*

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)

ParameterTypeRequiredWhat it controls
-Type TenantPreAuthSettingsListType yes This parameter indicates whether the cmdlet is interacting with the allow list or the deny list.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.