Posts by Year

2020

PowerShell export registry key

2 minute read

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

6 minute read

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

less than 1 minute read

After deploying a new CentOS server and running a dnf update you could receive a Nothing to do, Complete! message despite updates being available

Upgrade PowerShell 7 version

less than 1 minute read

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

PowerShell string concatenation

2 minute read

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

4 minute read

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

5 minute read

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

Convert a secure string to plain text

less than 1 minute read

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

5 minute read

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

PowerShell Hashtables

4 minute read

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

PowerShell Arrays

4 minute read

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

PowerShell Exception Handling

10 minute read

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

Back to top ↑