Commands › SharePoint Online
Set-SPOContainerTypeConfiguration
Sets or updates the configuration settings of a container type in SharePoint Embedded.
Quick start script
# Set-SPOContainerTypeConfiguration — 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-SPOContainerTypeConfiguration
$before | Format-List
# 3. Make the change (dry run first)
Set-SPOContainerTypeConfiguration -ContainerTypeId <Guid> -WhatIf
Set-SPOContainerTypeConfiguration -ContainerTypeId <Guid>
# 4. Verify and diff
$after = Get-SPOContainerTypeConfiguration
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-SPOContainerTypeConfiguration -ContainerTypeId <Guid> [-DiscoverabilityDisabled <Boolean>]
[-SharingRestricted <Boolean>] [-ApplicationRedirectUrl <String>] [-WhoCanShareAnonymousAllowList <Guid[]>]
[-WhoCanShareAuthenticatedGuestAllowList <Guid[]>] [-OverrideTenantWhoCanShareAnonymousAllowList <Boolean>]
[-OverrideTenantWhoCanShareAuthenticatedGuestAllowList <Boolean>]
[-CopilotEmbeddedChatHosts <System.Collections.Generic.List`1[System.String]>]
[-AnonymousLinkExpirationInDays <Int32>] [-IsArchiveEnabled <Boolean>] [-UseLegacyItemWebUrl <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (14)
Message Center changes mentioning this command
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.