Find All InfoPath Form Libraries in SharePoint Online using PowerShell

Requirement: Find All InfoPath Form libraries in SharePoint Online How to Find All InfoPath Form Libraries in SharePoint Online Site? To get all form libraries in the SharePoint Online site collection, use the below PowerShell script. This script checks if the template ID of any list is 115 to decide it’s an…

Read more

SharePoint Online: Get Subsite Permission Report using PowerShell

Requirement: PowerShell script to get subsite permissions in SharePoint Online How to Get Subsite Permissions in SharePoint Online? To get permissions of a SharePoint Online subsite, Click on Setting gear >> Click on the “Site Permissions” link Click on “Advanced Permission Settings” in the site permissions page This gives you all users…

Read more

SharePoint Online: Bulk Update Metadata Properties from a CSV File using PowerShell

Requirement: Bulk Update Metadata of Multiple Documents from a CSV in SharePoint Online. SharePoint Online: PowerShell to Bulk Edit Metadata Properties from a CSV File We’ve a document library with a 100s of documents in several sub-folders and wanted to bulk update metadata of all those documents. While quick edit is one…

Read more

Fix “The sign-in name or password does not match one in the Microsoft account system” Error in SharePoint Online

Problem: Getting “The sign-in name or password does not match one in the Microsoft account system” Error in SharePoint Online. Solution: I’ve experienced this error in SharePoint Online PowerShell scripts a couple of times and this could happen in any of the PowerShell methods like CSOM, SharePoint Online Management Shell, or PnP…

Read more

Disable Kindle/YouTube/Twitter Web Parts at Tenant Level in SharePoint Online

SharePoint Online Administrators can hide the Kindle/YouTube/Twitter web parts which are all included in the modern SharePoint Online site web parts toolbox by default, at the tenant level using PowerShell cmdlet “Set-SPOTenant -DisabledWebPartIds @(“Web Part IDs”). To disable a specific web part you need to enter its GUID as the parameter: Twitter…

Read more

How to Sync File Share to SharePoint Online using PowerShell?

Requirement: Sync Fileshare to SharePoint Online using PowerShell. PowerShell Script to Sync File share to SharePoint Online document Library: How to sync a file server to SharePoint Online? While my other script Migrate File Share to SharePoint Online using PowerShell imports files and folders from network file share to SharePoint Online, this…

Read more

SharePoint Online: Copy Site Pages from One Site to Another using PowerShell

Requirement: Copy site pages to another site in SharePoint Online. SharePoint Online: How to Copy a Page to Another Site Collection? We wanted to copy a modern page from one site to another site in SharePoint Online. The “Copy to” option doesn’t support copying site pages from one site to another. Luckily…

Read more

SharePoint Online: Update List Items from a CSV File using PowerShell

Requirement: Update SharePoint Online List from a CSV using PowerShell. PowerShell to Update SharePoint Online List from CSV File We have a list called “Projects” with a bunch of columns and wanted to update items from a CSV file. Here is the PowerShell CSOM script to update the SharePoint Online list from…

Read more

Disable Mass Delete Email Notification “Heads up! We noticed that you recently deleted a large number of files from a site” in SharePoint Online

Requirement: Disable the alert Email notification “Heads up! We noticed that you recently deleted a large number of files from a site” in SharePoint Online When you delete files and folders in bulk, SharePoint Online triggers the following Email to the tenant administrators and the user who deleted files to tell them…

Read more

SharePoint Online: Grant Site Owner Permission to a User with PowerShell

Requirement: Grant Site Owner Permissions to a User in SharePoint Online How to Grant Site Owner Permissions to a User in SharePoint Online? By adding people to the SharePoint Online site owners group, they can manage the site and perform typical site administration activities such as setup site branding and structure, add…

Read more