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

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

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

SharePoint Online: Get File Size using PowerShell

Requirement: Get file size in SharePoint Online using PowerShell How to Get the File Size in SharePoint Online? To get the size of a file, you can follow these approaches:  Edit the list view of the document library and include the “File Size” column in it Go to the “Storage Metrics” page,…

Read more

SharePoint Online: How to Get a List using PowerShell?

Requirement: PowerShell to Get a List in SharePoint Online. SharePoint Online: PowerShell to Get a List Here is how to access SharePoint Online list programmatically using PowerShell. Let’s get a list by title: You can use this script to get any list or library from a given SharePoint Online site. PnP PowerShell…

Read more

SharePoint Online: PowerShell to Grant Site Permissions to User

Requirement: Grant permissions to SharePoint Online site using PowerShell. How to Grant Access to a SharePoint Online Site? In SharePoint Online modern sites, the default granularity options for accessing SharePoint content are as follows: Full Control, which is granted to Owners Edit, which is granted to Members Read, which is granted to…

Read more