THE COMPLETE ARCHIVE

Articles

Every article, organised by year. Find a familiar fix or follow a new thread.

Browse [guides by topic](/topics/) or [search for a command, error or task](/search/).

2025

Getting Started with .gitignore

🧰 This post kicks off a new series on Git essentials—starting with .gitignore, a simple yet powerful tool for managing what gets tracked in your repositories.

Back to top ↑

2024

SSH Connection Manager in Command Line

Managing multiple SSH connections and hosts can sometimes be problematic. In this post, I will show how you can easily save multiple connections directly in the termin...

PowerShell - Generate Unique UPN

In this short post I will share two new cmdlets I have developed to generate forest wide unique UPN handling the different edge cases.

Back to top ↑

2022

PowerShell - Get day of weekday

In this short post we will see how we can use PowerShell to get an integer representing the number associated with the day of the week for the current date.

Back to top ↑

2021

Get current user UPN

In this post we will explore how to easily retrieve currently logged in user UPN via PowerShell

Back to top ↑

2020

Variables in Azure Automation

In this post we will explore how we can use variables in Azure Automation. We will explore both encrypted and unencrypted variables and how we can leverage them in our...

PowerShell export registry key

In this post we will explore how we can use PowerShell to check existence of a specific registry key and how to export them either in CSV or XML format

PowerShell Switch Statement

In this post we will see uses of Switch statement in PowerShell, advantages it offers over if/else construct and how to use a switch with multiple conditions

CentOS 8 - No updates available

Historical CentOS 8 update troubleshooting, with end-of-life context and a distinction between repository diagnosis and distribution migration.

Upgrade PowerShell 7 version

In this post we will explore how to easily and effectively upgrade PowerShell 7 when a new version is released

PowerShell string concatenation

Concatenating strings in PowerShell is a common task in this short post I will give some tips to avoid the performance penalty associated with the task

PowerShell parse EML files

EML are a proprietary, and almost, obsolete used to represent an email message in encoded format which is not easy to parse for automation purposes

Back to top ↑

2019

PowerShell load .Net Assembly

How to load external assemblies in PowerShell to extend functionality and leverage functionalities not available in PowerShell.

Convert a secure string to plain text

In my previous post I have described how we can create a credential object part of the process involved creating a secure string object like this

PowerShell Strongly Typed Variables

PowerShell Strongly Typed Variables, what they are, why you should care and why you should use them in your code to avoid pitfalls and potential issues with data types

PowerShell Hashtables

Everything you always wanted to know about PowerShell Hashtables and never dared to ask

PowerShell Arrays

Everything you always wanted to know about PowerShell Arrays and never dared to ask

PowerShell Exception Handling

An introduction to PowerShell error handling. In this post we will explore what error handling is and how to implement it in PowerShell scripts

Back to top ↑

2018

PowerShell delete old files

Learn how you can use PowerShell to automatically delete files and folders older than a number of days

Back to top ↑