SharePoint Online: Get Default List Form (New/Edit/Display) URLs using PowerShell

Requirement: Get the default list form URLs in SharePoint Online. How to Get the List Form URLs in a SharePoint Online List? Just open the SharePoint Online site in SharePoint Designer, Navigate to the Lists >> Open the Target List >> and You’ll find the default list of forms under the “Forms”…

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: 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: Upload Large Files using PowerShell

Requirement: Upload large files to SharePoint Online using PowerShell PowerShell to Upload a large file to SharePoint Online If you try to upload files with > 250 MB file size to SharePoint Online using CSOM Files.Add method, or PnP PowerShell Add-PnPFile methods you’ll end up in errors: “The remote server returned an…

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

SharePoint Online: Set Current User as Default Value in Person or Group Field

Requirement: Fill the Current user in person or group field (People Picker column) in SharePoint Online list New form. How to Set the Person or Group Field Default Value as Current User in SharePoint Online? I have a list to track travel requests and want to fill some people picker columns to…

Read more

SharePoint Online: Bulk Delete Files from a CSV using PowerShell

Requirement: Delete multiple files from SharePoint Online document libraries from a CSV using PowerShell. How to Delete Multiple Files in SharePoint Online Site from a CSV file? We have a CSV file with a list of URLs of various files in multiple document libraries in SharePoint Online. I wanted to bulk delete…

Read more

PowerShell to Get All Sites Associated with the Hub Sites in SharePoint Online

Requirement: Get hub site association in SharePoint Online using PowerShell SharePoint Online: Get Hub Sites Association using PowerShell SharePoint Online Hub sites help to organize related sites together into centralized portals based on organizational attributes such as projects, teams, concepts, departments, regions, etc. Hub Sites in SharePoint Online are explained in my…

Read more