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
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
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

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:

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

1 Response

  1. kanjuspua says:

    good

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

%d bloggers like this: