Live training: next batches coming soon. Join the waitlist:Waitlists open:Developer Training →Developer →Copilot Studio Training →Copilot Studio →

How to Get SharePoint Site Members Using PowerShell (PnP and SPO)

Get SharePoint site members with PowerShell

A manager asks who can open the SPGuides site, and the Site permissions panel shows three group names instead of people. Click into Members and you find a Microsoft 365 group, not a list of names. In this tutorial, we’ll build the get SharePoint site members PowerShell scripts our team runs before a permissions review. … read more…

Add SharePoint List Fields From Excel Using PnP PowerShell

PowerShell script to create list columns in SharePoint Online from excel

When I build Power Apps solutions for clients, SharePoint lists are almost always part of the setup. And most of the time, these lists require many fields. Sometimes 30. Sometimes 40+. Manually creating them was a big waste of time. So I started using PnP PowerShell to automate this.One script -> Run it once -> … read more…

Connect to Microsoft Teams using PowerShell [With Examples]

Get all teams and channels using PowerShell

As an administrator, you might need to work with Microsoft Teams using PowerShell. In this tutorial, I will show you how to connect to Teams from PowerShell with some real examples. You can use the Microsoft Teams PowerShell module to manage teams directly from the PowerShell command line. But before that, you need to install … read more…

Hide Return to Classic SharePoint link in SharePoint

Hide Return to Classic SharePoint link in SharePoint Online

Recently, I was working on a Document Management System for one of my clients. While creating several libraries in their SharePoint Online site, I noticed something interesting: at the bottom of every modern library view, there was a Return to classic SharePoint link. Now, since my client is not very familiar with SharePoint, they prefer … read more…

How to Enable Sensitivity Labels On PDF Using PowerShell?

How to Enable Sensitivity Labels on PDF using PowerShell

I am working on a Document Management System where my client asked me to enable sensitivity labels. By default, sensitivity labels work with supported file types like Word, Excel, and PowerPoint. However, they also wanted to apply labels to PDF files. In this article, I will explain how to enable sensitivity labels for PDFs using … read more…

How to Get SharePoint Online Site Details Using PowerShell

Get SharePoint Online site details with PowerShell

Someone asks you about a SharePoint site: when it was created, how much storage it uses, whether guests can get in, or whether it’s locked. The admin center can answer each question, but it takes several clicks per site, and you can’t paste the result into a ticket or a spreadsheet. PowerShell gives you all … read more…

How to Check the SharePoint Version with PowerShell (Server and Online)

Check the SharePoint version with PowerShell

Before you install a cumulative update, open a support ticket or deploy a third-party solution, someone will ask which SharePoint build you’re on. Guessing from the look of the site doesn’t work, because SharePoint 2016, 2019 and Subscription Edition all report version 16.0. In this tutorial, we’ll walk through the check SharePoint version PowerShell commands … read more…

SharePoint PowerShell Commands: SPO, PnP and Server Cheat Sheet

SharePoint PowerShell commands cheat sheet

Most SharePoint admin work comes down to a few dozen cmdlets. The catch is that they live in two different modules, and older guides mix in SharePoint Server commands that never worked in Microsoft 365. In this tutorial, we’ll go through the SharePoint PowerShell commands I use most, grouped by task. Use PnP PowerShell for … read more…

Fix “Connect-PnPOnline Is Not Recognized” in PowerShell

Fix Connect-PnPOnline is not recognized in PowerShell

You paste a SharePoint script into PowerShell and it stops on line one with a red error about Connect-PnPOnline. The cmdlet worked yesterday, or on a colleague’s laptop, so the script itself usually isn’t the problem. In this tutorial, we’ll fix Connect-PnPOnline is not recognized step by step. We reproduced every cause, so each fix … read more…