SharePoint Online: Remove List from Search using PowerShell

By default, all SharePoint Online lists and libraries appear in search results. There are some cases you want to remove a particular list’s contents from appearing in search results. Say e.g. You want to hide images library’s content from appearing in search results. How to Remove a list from SharePoint Online Search?…

Read more

Fix SharePoint Online “The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.” in PowerShell

Problem: When trying to get list items from a SharePoint Online list through PowerShell, got this error message:Exception calling “ExecuteQuery” with “0” argument(s): “The attempted operation is prohibited because it  exceeds the list view threshold enforced by the administrator.”At line:26 char:5+     $Ctx.ExecuteQuery()+     ~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException    + FullyQualifiedErrorId…

Read more

SharePoint Online: Change List or Library URL using PowerShell

Requirement: Change URL of a List or Document Library in SharePoint Online using PowerShell How to Change the List URL in SharePoint Online? In SharePoint Online, when you create a list, the list’s URL is automatically generated. This URL can be used to link to or share the list with others. However,…

Read more

How to Make a SharePoint List or Library to Read Only Mode using PowerShell?

Requirement: Set SharePoint list or document library to read only mode. How to make SharePoint List to Read Only? There is no direct way to set the SharePoint list to read-only! The read-only mode can be set only on SharePoint site collections (How to Make a Site Collection Read-Only) or on content…

Read more

SharePoint Online: How to Create a List Template using PowerShell?

Requirement: Create List Template in SharePoint Online How to Create List Template in SharePoint Online? List templates in SharePoint Online provide re-usability without having to recreate every single field and other settings in the SharePoint list. E.g. you may create a custom list (say: Projects) in a SharePoint site collection with all…

Read more

SharePoint Online: Copy List Views using PowerShell

Requirement: Copy a List View in SharePoint Online using PowerShell. How to Copy a List View in SharePoint Online? To copy view in SharePoint list through UI, follow these steps: Navigate to the List Settings >> Scroll down to Views section >> Click on the “Create View” link Under the “Start from…

Read more

SharePoint Online: Save List as Template Missing? Here is how to enable it!

Problem: “Save List as Template” is missing in SharePoint Online modern sites! Root Cause: We don’t get the “Save list as Template” link on the list settings page in sites with custom script disabled. To enable the save list as a template in SharePoint Online, we should enable custom script for the…

Read more

SharePoint Online: Create List from Custom Template using PowerShell

Requirement: Create List from Custom List Template using PowerShell in SharePoint Online. SharePoint Online: How to Create List from Template? List templates in SharePoint Online save a lot of time by reusing any existing list or library, which comprises all columns and optionally the data from the list. You can create any…

Read more