Skip to content

Commit a01b2ab

Browse files
authored
Docfix for DisabledWebPartIds
The documentation on the new DisabledWebPartIds argument seems inaccurate. It mentions using Get-SPOSite and Set-SPOSite while I believe it should be Get-SPOTenant and SPO-Tenant instead. Corrected that in this PR. Also clarified how you would be able to enable all webparts again by providing DisabledWebPartIds $null.
1 parent 1f47beb commit a01b2ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Set-SPOTenant [-ApplyAppEnforcedRestrictionsToAdHocRecipients <Boolean>]
2525
[-StartASiteFormUrl <String>] [-UsePersistentCookiesForExplorerView <Boolean>]
2626
[-CommentsOnSitePagesDisabled <Boolean>] [-SocialBarOnSitePagesDisabled <Boolean>]
2727
[-DefaultSharingLinkType <SharingLinkType>]
28-
[-DisableWebPartIds <Guid>]
28+
[-DisabledWebPartIds <Guid>]
2929
[-DisallowInfectedFileDownload <Boolean>] [-EnableGuestSignInAcceleration <Boolean>]
3030
[-FileAnonymousLinkType <AnonymousLinkType>] [-FolderAnonymousLinkType <AnonymousLinkType>]
3131
[-IPAddressAllowList <String>] [-IPAddressEnforcement <Boolean>] [-IPAddressWACTokenLifetime <Int32>]
@@ -615,11 +615,11 @@ PARAMVALUE: <Guid>[,<Guid>,...]
615615
616616
Allows administrators prevent certain, specific web parts from being added to pages or rendering on pages on which they were previously added. Only web parts that utilize third-party services (Amazon Kindle, YouTube, Twitter) can be disabled in such a manner.
617617
618-
To disable a specific web part you need to enter its GUID as the parameter: Amazon Kindle (46698648-fcd5-41fc-9526-c7f7b2ace919), YouTube (544dd15b-cf3c-441b-96da-004d5a8cea1d), Twitter (f6fdf4f8-4a24-437b-a127-32e66a5dd9b4)
618+
To disable a specific web part you need to enter its GUID as the parameter: Amazon Kindle (46698648-fcd5-41fc-9526-c7f7b2ace919), YouTube (544dd15b-cf3c-441b-96da-004d5a8cea1d), Twitter (f6fdf4f8-4a24-437b-a127-32e66a5dd9b4).
619619
620-
You can enter in multiple GUIDs by using a comma to separate them. To view a list of disabled web parts, use Get-SPOSite to get DisabledWebPartIds.
620+
You can enter in multiple GUIDs by using a comma to separate them. To view a list of disabled web parts, use Get-SPOTenant to get DisabledWebPartIds.
621621
622-
To reenable disabled web parts, use the Set-SPOSite with the -DisabledWebPartIds parameter and corresponding GUIDs.
622+
To reenable disabled web parts, use the Set-SPOTenant with the -DisabledWebPartIds parameter and corresponding GUIDs. To enable all of them again, use Set-SPOTenant -DisabledWebPartIds $null.
623623
624624
```yaml
625625
Type: Guid[]

0 commit comments

Comments
 (0)