PowerShell Script

Get nested folders, files count, folder size, and more in SPO Document Libraries using PowerShell PnP

Isn’t it nice to have some reports, inventory, or any visual about a SharePoint site? So we know what’s going...

Retrieve Likes & Comments count from SharePoint Online pages using PowerShell PnP

Today, we’re going to play a bit with SharePoint Online pages, and try to get the number of Likes &...

Modify the Quick Launch in SharePoint Online sites using PowerShell PnP

There are some useful cmdlets in the SharePoint PowerShell PnP module that one wouldn’t think about using, but coupled with...

Retrieve files with a specific name in a SharePoint Online site using PowerShell PnP

It’s not uncommon for companies to be wanting an inventory of files / folders in SharePoint. But we can also...

FolderCreated

Create folders in OneDrive For Business using PowerShell PnP – What do I need to do?

A few years back, I needed to create folders in OneDrive for Business in preparation for a migration. And as...

CustomPermCreated

Create Custom Permissions for multiple Site Collections in SPO using PowerShell PnP

It might be useful from time to time, and depending on the business requirements, to create custom permissions in SharePoint....

Retrieve files bigger than 50Mb in a SharePoint Online site using PowerShell PnP

Recently, I had a request to find every files in a specific SharePoint Online site that are 50Mb or bigger....

ReplaceAll

Create a folder structure in SharePoint Online using PowerShell PnP (from file shares)

Recently, I had to create a SharePoint folder structure extracted from a file share. I only wanted the structure, and...

ScriptWithErrorHandling

Retrieve Site Policies in SharePoint Online using PowerShell PnP

Site Policies in SharePoint can be used to have a better governance as the platform is growing. Storage is expensive,...

SCcreatedPowerShell

Create Site Collections in SharePoint Server using PowerShell and an XML file

We have so many different ways to achieve something using PowerShell. In this blog post, we’ll have a look at...