Commands › SharePoint Online
Set-SPOTenantPreAuthSettings
Sets the configuration of pre-authentication.
Quick start script
# Set-SPOTenantPreAuthSettings — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-SPOTenantPreAuthSettings
$before | Format-List
# 3. Make the change
Set-SPOTenantPreAuthSettings -Add <SwitchParameter> -Id <String> -IsDisabled <Boolean>
# 4. Verify and diff
$after = Get-SPOTenantPreAuthSettings
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 3 parameter sets
IsDisabled
Set-SPOTenantPreAuthSettings -IsDisabled <Boolean> [<CommonParameters>]
AddListItem
Set-SPOTenantPreAuthSettings [-Add] -Type <TenantPreAuthSettingsListType> [-IncludedApps <String>]
[-ExcludedApps <String>] [-IncludedFeatures <String>] [-ExcludedFeatures <String>] [<CommonParameters>]
RemoveListItem
Set-SPOTenantPreAuthSettings [-Remove] -Id <String> [<CommonParameters>]
Parameters (9)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.