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’

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
Set-SPOSite -Identity https://knowledgejunction1.sharepoint.com/sites/teamsdemo_14062020_930 -LockState "ReadOnly"
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

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

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

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:
- Set-SPOSite <URL> is a Groups site collection. The valid parameters for this type of site collection
- Set-SPOSite
good