SharePoint Online: Remove User or Group from Folder Permissions using PowerShell

Requirement: Remove user from folder permissions in SharePoint Online. How to Remove user from folder permissions in SharePoint Online? How to restrict access to folder in SharePoint Online? To remove a user or group from SharePoint Online Folder’s permissions, follow these steps: Navigate to your SharePoint Online list or library where the…

Read more

How to Create OneDrive for Business Site Collections using PowerShell?

Requirement: Pre-Create OneDrive for Business Sites using PowerShell. OneDrive for Business is Microsoft’s cloud-based storage solution that lets users store and work on files that are personal to them. It’s similar to a SharePoint Online document library with full control granted to users so that they can add, update, and delete files…

Read more

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

SharePoint Online: Read / Update Person or Group Field (People Picker) Values using PowerShell

Requirement: Get or Set “Person or Group” Field Values in SharePoint Online using PowerShell. Person or Group field provides searchable list of people and groups when they add or edit an item. It acts like a auto complete field when you type the first 4 character of the user names. Here is…

Read more

SharePoint Online: How to Disable Microsoft Flow (Power Automate) in Lists and Libraries?

Requirement: Disable flow in SharePoint Online. Microsoft Flow is a great tool to automate business processes by building workflows. In some cases, to take control over customization, You may want to disable Flows by hiding the “Flow” button in modern lists and libraries in SharePoint Online. How to Disable Flow in SharePoint…

Read more

Create Search Service Application in SharePoint 2016 Multi-Server Farm using PowerShell

The Search Service Application in SharePoint provides a search functionality, as its name implies. We have to use PowerShell scripts to configure search service application from SharePoint 2013 onwards as there is no user interface to configure the Search topology from SharePoint Central Admin – although we can create a new 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: Rename Files in Document Library using PowerShell

Requirement: Rename files in SharePoint document library using PowerShell How to rename a document in SharePoint Online? Renaming a file in the SharePoint Online document library is pretty straight forward. The quickest way to rename a document is: Right-click on your desired File and select Choose the Rename option. You can also…

Read more

SharePoint Online: Export-Import Site Columns using PowerShell

Requirement: Export-Import Site Columns in SharePoint Online. SharePoint Online: Export Site Columns using PowerShell This PowerShell script exports all site columns of a specific group for the SharePoint Online site to an XML file. Once executed, this PowerShell script exports all site columns from the given site column group to a XML…

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? Renaming a list doesn’t change its URL! However, To change the URL of a List or Library in SharePoint Online we can use File Explorer View, SharePoint Designer or…

Read more