PowerShell for O365

Task-based command-line shell and scripting language built on the .NET Framework

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...

SitesWebpart

Associate multiple sites to a Hubsite using PowerShell PnP

Hubsites have been announced at Microsoft Ignite in 2017, and provide a way to display content from multiple sites (once...

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,...