Powershell is hell

How to fix “System.InvalidOperationException: PowerShell Gallery is currently unavailable.”

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

SharePoint PnP logo

Another fix to the “Connect-PnPOnline : The sign-in name or password does not match one in the Microsoft account system.” error.

This post describes a simple way to get around the following error while running Connect-PnPOnline: “The sign-in name or password does not match one in the Microsoft account system.” Truthfully, this one is kind of simple and stupid – but as I’ve seen before, it’s surely worth documenting anyway! Below…Continue reading Another fix to the “Connect-PnPOnline : The sign-in name or password does not match one in the Microsoft account system.” error.

entity-framework-logo

EntityFramework Core – Update-Database error “The EntityFramework package is not installed”

Another weird, but simple issue I ran into when building a simple .NET Core application. The article should apply to pretty much any .NET Core version, but the version I was on was 2.2. I was just minding my own business, crafting bits of code into something remotely functional, when…Continue reading EntityFramework Core – Update-Database error “The EntityFramework package is not installed”

If you could just fix SharePoint... That would be great.

Solving yet another “Microsoft.SharePoint.Client.ServerException: Unknown Error”

There are a thousand possible things that can throw a “Microsoft.SharePoint.Client.ServerException”, but fewer things, that are ambiguous enough to be called “Unknown error”. This post describes one fairly usual fix for this issue! But let’s get back to the beginning for a second – you get what and when now?…Continue reading Solving yet another “Microsoft.SharePoint.Client.ServerException: Unknown Error”

Get-Command -Module AzureRM.Profile. You're seeing it correctly - it doesn't have a Logout-AzureRmAccount, Disconnect-AzureRmAccount, Remove-AzureRmAccount or even Remove-AzureRmContext commandlets! That's a lot of fun :)

Oh no! PowerShell cached my Azure credentials and I messed up wrong customer’s environment!

Whoops. This could happen to anyone since the Azure PowerShell (approximately) version 6.3.0 will cache your credentials between sessions without warning you. It’s really easy to run your commands with cached accounts and end up executing your scripts against the wrong environment. In less serious cases, this means that you’ll end up…Continue reading Oh no! PowerShell cached my Azure credentials and I messed up wrong customer’s environment!