[HOWTO] apt upgrade fails – dpkg: error processing package grub-common
Quite recently I have seen some cases of apt failing when doing package upgrades. It seems like there is a change in the package grub-common that breaks on some systems, but works well on others....
View Article[HOWTO] No snap-ins have been registered for Windows PowerShell version 5
The other day I was upgrading a SharePoint 2016 Server Farm from Windows Server 2012 R2 to Windows Server 2019. The inline upgrade went quite nicely, and everything worked like a charm after the...
View Article[HOWTO] Fix EventLog Invalid Handle and Powershell Invalid Class
Lately I have been busy with upgrading a lot of servers from Windows 2012R2 and Windows 2016 to Windows Server 2019. The majority of these upgrades have gone through without a hitch. But of course,...
View Article[HOWTO] EC2Launch – agent failed to assume identity
The other day I stumbled upon a string of similar events logged from some of my Windows EC2 instances in regards to the SSM Agent. It simply refused to start up, and examining the log files, I could...
View Article[HOWTO] Active Directory Replication fails – The target principal name is...
I was doing some maintenance work on one of the many different environments I help maintain today when I noticed that Active Directory replication failed to one of the Domain Controllers in the...
View Article[HOWTO] – PowerShell’s Invoke-WebRequest is very slow
Preface If you have ever used the PowerShell cmdlet Invoke-WebRequest to download content, you might have observed that it is terribly slow. Files that typically download within seconds with any web...
View Article[HOWTO] – Get a list of repositories from Docker Hub using PowerShell
The other day, I had the need to get a list of all the repositories from an organization in DockerHub to gather some statistics. Being a huge advocate I wanted to do this in PowerShell, as this makes...
View Article[HOWTO] Setup secondary network card (NIC) on Ubuntu in AWS
This simple how-to enables a secondary network card on an Ubuntu instance running Amazon AWS EC2. It assumes a setup where the primary network card is in a private subnet, and the secondary network...
View Article[HOWTO] Get the main group name for a username using Ansible
The other day I needed a way to get the main group of a user account in a playbook in Ansible. I figured there was a way to do this using native methods in Ansible, which proved correct. You can...
View Article[HOWTO] GitLab – Remove Two Factor Authentication (MFA) from an account in...
The other day I was faced with the challenge of restoring an old backup of a GitLab instance. This is in itself is fairly straightforward process, as long as you follow the correct upgrade path....
View Article