Commands › SharePoint Online
Enable-SPOTenantRestrictedAppAccessControl
Turns on the tenant Application Restrictions enforcement switch for your organization.
Quick start script
# Enable-SPOTenantRestrictedAppAccessControl — 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-SPOTenantRestrictedAppAccessControl
$before | Format-List
# 3. Make the change (dry run first)
Enable-SPOTenantRestrictedAppAccessControl -WhatIf
Enable-SPOTenantRestrictedAppAccessControl
# 4. Verify and diff
$after = Get-SPOTenantRestrictedAppAccessControl
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Enable-SPOTenantRestrictedAppAccessControl [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (2)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.