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 Suppose 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 with errors: To mitigate the errors, Here…

Read more

SharePoint Online: Change a Site from Private to Public (or Vice versa)

Requirement: Change a private site to a public in SharePoint Online. Switch between Private and Public Sites in SharePoint Online In SharePoint Online, modern team sites are created with an Office 365 Group associated and private by default. It is possible to change the privacy settings of a site from private to…

Read more

SharePoint Online: PowerShell to Grant Site Permissions to User

Requirement: Grant permissions to a SharePoint Online site using PowerShell. How to Grant Access to a SharePoint Online Site? When working with SharePoint Online, a common task is to add users to the site. In SharePoint Online, it is easy to grant access to a site for specific users or groups and…

Read more

PowerShell Switch Statement: The Beginner’s Guide!

A switch statement allows you to specify a set of conditions to test against and execute a different set of codes for each condition. This can be extremely useful when you need to take different actions based on different data. The switch statement in PowerShell is similar to the switch statement in…

Read more

How to Add File Size Column to SharePoint Online Document Library?

Requirement: Add file size column to SharePoint Online. How to Show File Size in SharePoint Online? Are you looking to add a column to your SharePoint Online document library that displays the size of each file? Well, You can add the “File Size” column to any list view of the SharePoint Online…

Read more

How to Share a Document Library in SharePoint Online?

Requirement: Set Permissions on a SharePoint Online Document Library. How to Grant Access to a Document Library in SharePoint Online? By default, any document library created in SharePoint inherits permissions from its parent site. However, you may have to share access to a document library in SharePoint Online at times. Sharing a…

Read more

SharePoint Online: Find All Files Exceeding the Maximum URL Length Limitation using PowerShell

Microsoft Office Excel files stored in deep Folders, sub-folder structures with long names often result in an error when they exceed the maximum file URL length of 218 characters, as in my other article SharePoint Online: URL Length Limitation of 218 Characters in Excel Files. So, we wanted to proactively scan the…

Read more

SharePoint Online: Export Access Requests Settings using PowerShell

Requirement: Export access requests settings for all sites in SharePoint Online. SharePoint Online: PowerShell to Export Access Requests Settings (Email Address, Group Configuration) To export access requests settings from all sites in the SharePoint Online tenant, use this PowerShell: This PowerShell script gets the inventory of all access request settings and exports…

Read more

Fix “Install-Module: The term ‘Install-Module’ is not recognized as the name of a cmdlet, function, script file, or operable program” Error

Problem: I was trying to install the SharePoint Online PnP PowerShell module with “Install-Module -Name SharePointPnPPowerShellOnline” and got this error message: Install-Module : The term ‘Install-Module’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was…

Read more

SharePoint Online: How to Create a Classic Site Collection?

Requirement: Create a classic team site collection in SharePoint Online. How to create a Classic Team Site in SharePoint Online? A site collection is a top-level site in SharePoint Online that contains a hierarchy of subsites. It is a container for all the sites, lists, libraries, and other content that make up…

Read more