SharePoint Online: Remove a Content Type from All Lists in a Site Collection using PowerShell

Requirement: Remove Content Type from All Lists and Libraries in a SharePoint Online Site Collection PowerShell to Remove Content Type from All Lists and Libraries in a Site Collection This PowerShell script iterates through all lists and libraries of a given site collection, scans for the provided content type, and removes it…

Read more

Fix “The requested operation is part of an experimental feature that is not supported in the current environment.” Error

Problem: When trying to run a PowerShell cmdlet, got this error message: “The requested operation is part of an experimental feature that is not supported in the current environment.” If a new feature is not yet rolled out for your tenant, SharePoint shows this error. Solution: Set the release preference in Office…

Read more

Fix “Cannot contact web site ‘https://tenant-admin.sharepoint.com/’ or the web site does not support SharePoint Online credentials. The response status code is ‘Unauthorized'” Error

Problem: When trying to connect to SharePoint Online through PowerShell script, got this error message “Cannot contact web site ‘https://crescent-admin.sharepoint.com/’ or the web site does not support SharePoint Online credentials. The response status code is ‘Unauthorized’” Tried running a CSOM script and got an error: “Exception calling “ExecuteQuery” with “0” argument(s): “Cannot…

Read more

Connect-PnPOnline : The term ‘Connect-PnPOnline’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Problem: When trying to run a PowerShell script for SharePoint Online, got this error message: “Connect-PnPOnline : The term ‘Connect-PnPOnline’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is…

Read more

SharePoint Online: Check If a Folder has Unique Permissions

Requirement: Check If a Folder has Unique Permissions in SharePoint Online using PowerShell Check if Folder has Broken Permission Inheritance using PowerShell CSOM PowerShell to Check If Folder has Unique Permissions: Get Permissions of All Folders in SharePoint Online Library:

Read more

SharePoint Online: How to Get All Modern Group Sites using PowerShell?

Requirement: Get Modern Group Team sites in SharePoint Online. How to Get All Modern Group Sites in SharePoint Online? In the modern admin center, you can filter sites by its template. Just mouse over to the template column and filter template based on your requirement. We can get the list of modern…

Read more

SharePoint Online: Get Admin Center Site URL

Requirement: Find SharePoint Online Admin Center How to Access the SharePoint Online Admin Center? We need the SharePoint admin site URL for managing the SharePoint Online environment and to work with SharePoint Online PowerShell modules. How to find SharePoint Online tenant admin URL? Typically, the admin center is located at: https://tenant-admin.sharepoint.com/ If…

Read more

SharePoint Online: URL Length Limitation of 218 Characters in Excel Files

Problem: When trying to open a Microsoft Excel file stored in a SharePoint Online document library, got this error message: We couldn’t open that file. rename the file to use a shorter name or copy it to a different folder with a shorter path. We faced similar issues like: “Sorry, we couldn’t…

Read more