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 PowerShell is a powerful scripting language for automating tasks and managing your SharePoint Online environment. This guide will show you how to use PowerShell to get a list in SharePoint Online. Here is how to access…

Read more

How to use PowerShell “Contains” – A Quick Guide!

The Contains method in PowerShell can be used to check if a specified string or character exists within a string, and the PowerShell operator Contains allows you to check if a collection of objects, such as an array, contains a specific value. It returns a Boolean value, either $true if the string…

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 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: Grant Site Permissions to User with PowerShell

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

How to use PowerShell to Get Installed Software?

Introduction One of the most common tasks I’m asked about is how to get a list of installed software using PowerShell. Whether you’re a system administrator managing multiple computers, a developer needing to check software dependencies, or a tech support specialist troubleshooting issues, being able to get a list of installed programs…

Read more