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

How to Create a Folder in SharePoint Online with PowerShell (PnP)

Create a folder in SharePoint Online with PnP PowerShell

To create a folder in SharePoint Online with PowerShell, connect with PnP PowerShell and run Add-PnPFolder with the new folder’s name and the library’s URL name. It takes one line, and it scales to hundreds of folders without a single click. In this tutorial, I’ll walk you through the create folder sharepoint powershell steps I … read more…

How to Export Microsoft Teams Chat History Using PowerShell

Export Microsoft Teams chat history using PowerShell

To export Microsoft Teams chat history with PowerShell, connect to Microsoft Graph with the Chat.Read permission, get the messages with Get-MgChatMessage, turn the HTML bodies into text and save them with Export-Csv: The raw messages need some cleanup before they’re readable. Below I cover finding the chat, skipping system events, converting HTML to text, fixing … read more…

AADSTS650057: The Client Has Requested Access to a Resource Which Is Not Listed (Fix)

AADSTS650057 resource not listed error fix

On 10/09/2026 I ran Connect-PnPOnline -Interactive with a freshly registered Entra ID app, signed in, and the Please login for PnP PowerShell window answered with AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client’s application registration. The message looks scary, but its … read more…

PnP PowerShell Scripts for SharePoint Developers

PnP PowerShell Scripts for SharePoint Developers

Every time I need to set up a new SharePoint site, list, or library, I don’t want to click through the UI ten times just to add a few columns. I want a script I can run once, change a couple of values, and be done in under a minute. That’s exactly what this post … read more…

How to Delete All Items from a SharePoint List Using PnP PowerShell

Delete all items from a SharePoint list using PnP PowerShell

Need to empty a SharePoint list but keep its columns, views and connected apps? Run Remove-PnPListItem with only -List, and PnP PowerShell deletes every item in it. In this tutorial, we’ll delete all items from SharePoint list using PnP PowerShell, first in one line and then with batches, CAML filters and the recycle bin. Every … read more…