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 Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

1 Response

  1. kanjuspua says:

    good

Leave a Reply

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