Home » PnPPowerShell
… And that’s a wrap! This year I had the chance, and the privilege to once again participate in the month-long celebration of open-source, Hacktoberfest. And unlike last year, I took the time to write about the experience again! And for someone like me, who doesn’t really do much open-source…Continue reading Hacktoberfest 2022
This article explains how to fix an issue when updating a module in PowerShell. The error is something along the lines of: “System.InvalidOperationException: PowerShell Gallery is currently unavailable. Please try again later.” The whole error looks something like the one below, although you can probably get it for many different…Continue reading How to fix “System.InvalidOperationException: PowerShell Gallery is currently unavailable.”
This article explains how to get rid of sudden and unexplainable 401 Access Denied errors when trying to authenticate against a fairly fresh Microsoft 365 / SharePoint Online tenant. This issue seems to be caused by a long-ish project to finally retire ACS – Azure Access Control service) on SharePoint…Continue reading App authentication woes on SharePoint (Token request failed. The remote server returned an error: (401) Unauthorized.)
You might’ve heard the news – Delve Blogs are on the way out, leaving your users without a blogging platform on Office 365, and their data homeless. And by homeless, I mean deleted pretty soon. And by pretty soon I mean really soon. Might be a good time to start…Continue reading How do you migrate your Delve Blogs content to Modern SharePoint?
The news is out – Delve Blogs will be axed, leaving your users without a blogging platform on Office 365, and their data homeless. And by homeless, I mean deleted. Might be a good time to start thinking about storing it somewhere else instead! This post is the second post…Continue reading How to export your Delve blogs content?
This article describes one way how to fix seemingly non-sensical “Access denied” errors, that you get when running Set-PnPAvailablePageLayouts. Problem While running the PnP cmdlet for enabling or selecting the available publishing page layouts for a web, you run into this, fairly generic error: Access denied. You do not have…Continue reading How to fix “Access denied” errors when running “Set-PnPAvailablePageLayouts”?
This was a peculiar case! An issue I hadn’t run into before, and luckily a disturbingly simple fix. But first, let’s set up the scene: We were running a long-ish PowerShell script using a Global Administrator account. One part of the script was supposed to add and deploy a couple…Continue reading How to fix Add-PnPApp failing with an Access Denied error
While running “New-PnPSite” (or actually any other site creation method in PowerShell or programmatically), the site creation fails, and instead you get back an error like the one below: Ouch! Where does this come from? In the code of New-PnPSite, the actual function call is shown below: (Source) So, the…Continue reading New-PnPSite fails with “SiteStatus” : 3?
So, you have a Client Id and a Client Secret, but don’t know if they work anymore? Maybe they are expired? Maybe someone removed them? Maybe you copy-pasted them from the wrong Key Vault and they belong to another tenant? No worries! We can use PowerShell to validate them. This…Continue reading The fastest way to verify your Client Id and Client Secret are valid with PowerShell
This article explains how to enable custom scripting for any SharePoint site collection. This is functionally equivalent to setting setting “-DenyAddAndCustomizePages 0” or disabling the NoScript feature. Different instructions and solutions apply to SharePoint Online, and on-premises scenarios (SharePoint Server 2013, 2016, and probably 2019) – so see below for…Continue reading 5 ways to enable Custom Scripts for a SharePoint site collection