PowerShell for M365

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

Change Specific Users’ OneDrive for Business Default Storage Quota using PowerShell PnP (With Error Handling for Different Outcomes!)

It may be useful to allocate specific users with specific OneDrive for Business storage quotas. But we may be faced...

Get all Teams a User is Part of using PowerShell PnP

As you may be aware already (hopefully!), we have Microsoft Teams cmdlets surfacing in the SharePoint PowerShell PnP module since...

Create Folders with Months Name in SharePoint Online using PowerShell PnP

Hello there! Today’s post will help you create a folder structure in SharePoint Online organized by month’s name! You’ll see...

Get Teams, Channels, Tabs, and Privacy Settings using Teams PnP PowerShell

In case you haven’t seen, Teams PnP PowerShell cmdlets are starting to surface! 🥳 In this short blog post, we’ll...

Get a list of folders created per month in SharePoint Online using PowerShell PnP

Oh no! We’re talking about folders again… Yes we are! But this time, we’ll get some insights as to when...

Get the attachments names in SharePoint lists using PowerShell PnP

Have you ever noticed that in SharePoint, when you attach files in a list item, you can add the column...

Change column values based on other column values in SPO using PowerShell PnP

Today, I wanted to share something I’ve learned thanks to the PowerShell Community out there, who responded to my “Tweet...

Find checked out files across multiple Site Collections and libraries in SPO using PowerShell PnP

It might be another day, and you might have another requirement! In today’s blog post, we’ll have a look at...

Find empty folders in a SharePoint site using PowerShell PnP

We still have this debate about Folders vs. Metadata. Which one is better? Should I continue to use folders? etc…...

Split data into 2 columns in SPO using PowerShell PnP and use Power Automate for new items

Woow, that title was pretty long! But we are going to use SharePoint Online, PowerShell PnP, and also Power Automate...

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