M365 – O365 Groups – Resolving error – Set-SPOSite : ‘Team Site URL’ is a Groups site collection. The valid parameters for this type of site collection are – ‘parameter list’

M365 - Set-SPOSite - Error - '' is a Groups site collection. The valid parameters for this type of site collection are - Parameter list

Hi All,

LIFE IS BEAUTIFUL 🙂 I hope we all are safe:) STAY SAFE, STAY HEALTHY 🙂 STAY HOME 🙂

Today new issue and solution 🙂

Background:

  • We have a requirement to make one Teams read only. We were trying to set respective SharePoint site read only
  • So we were using PowerShell CMDLET Set-SPOSite to set the LockState property with value “ReadOnly” as

While executing this “Set-SPOSite” CMDLET we were getting an error.

Error:

Set-SPOSite : https://knowledgejunction1.sharepoint.com/sites/teamsdemo_14062020_930 is a Groups site collection. The
valid parameters for this type of site collection are ‘-Identity’, ‘-AllowSelfServiceUpgrade’,
‘-DefaultLinkPermission’, ‘-DefaultSharingLinkType’, ‘-DenyAddAndCustomizePages’, ‘-DisableCompanyWideSharingLinks’,
‘-DisableSharingForNonOwners’, ‘-LockState’, ‘-Owner’, ‘-ResourceQuota’, ‘-ResourceQuotaWarningLevel’,
‘-SandboxedCodeActivationCapability’, ‘-SharingCapability’, ‘-ShowPeoplePickerSuggestionsForGuestUsers’,
‘-SocialBarOnSitePagesDisabled’, ‘-StorageQuota’, ‘-StorageQuotaReset’, and ‘-StorageQuotaWarningLevel’.
At line:1 char:1

+ Set-SPOSite -Identity https://knowledgejunction1.sharepoint.com/sites

+ CategoryInfo : NotSpecified: (:) [Set-SPOSite], ServerException

+ FullyQualifiedErrorId :

Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.SetSite

M365 - Set-SPOSite - Error - '' is a Groups site collection. The
valid parameters for this type of site collection are - Parameter list
Fig1 : M365 – Set-SPOSite – Error – ” is a Groups site collection. The
valid parameters for this type of site collection are
Parameter list

Solution: As per the blog referenced in “Reference” section, it seems to be there is no upgraded version of “SharePoint Online Management Shell”.

I have on my local system version – 16.0.19814.12000

 M365 -Old SharePoint Online Management Shell version - 16.0.19814.12000
Fig1 : M365 -Old SharePoint Online Management Shell version – 16.0.19814.12000

When I went check latest version of “SharePoint Online Management Shell” its different it was – 16.0.20122.12000

We can download latest version of “SharePoint Online Management Shell” from https://www.microsoft.com/en-in/download/details.aspx?id=35588

M365 - Downloading latest version of "SharePoint Online Management Shell"
Fig1 : M365 – Downloading latest version of “SharePoint Online Management Shell”

I downloaded the latest version, installed and executed the same CMDLET and it worked like charm 🙂

Thanks for reading 🙂 If its worth at least reading once, kindly please like and share. SHARING IS CARING 🙂

Enjoy beautiful life 🙂 Have a FUN 🙂 HAVE A SAFE LIFE 🙂 TAKE CARE 🙂

Reference:

One thought on “M365 – O365 Groups – Resolving error – Set-SPOSite : ‘Team Site URL’ is a Groups site collection. The valid parameters for this type of site collection are – ‘parameter list’

This site uses Akismet to reduce spam. Learn how your comment data is processed.