
Christian Ritter
@hcritter
Personal blog of Christian Ritter He/Him | Father of two ♥️♥️ | Microsoft MVP |#PowerShell aficionado | Automation enthusiast | Blog author | Founder of PSUGFFM | Public Speaker | Opinions are my own.


PowerShell-Technique: Switching
Written by Christian Ritter
### Enhance Your PowerShell Scripting with Switch Statements #### Have you ever found yourself writing a lot of if/elseif/else statements in your PowerShell script? You may have heard of the...


PowerShell-Technique: Trapping
Written by Christian Ritter
### Enhance Your PowerShell Scripting with Trapping #### This blog post explains how to use the trap statement in PowerShell to improve error handling, reduce code size, and make scripts mor...


.NET or not .NET - Where
Written by Christian Ritter
### Dotnet or not Dotnet this is the question we will ask in this post #### Lets find out if the .NET .Where() method is significantly faster than their equivalent in native PowerShell In...


.NET or not .NET - ForEach
Written by Christian Ritter
### .NET or not .NET this is the question, we will ask in this post #### Lets find out if the .NET .ForEach() method is significantly faster than their equivalent in native PowerShell The...


3 ways to sort a list unique
Written by Christian Ritter
### Today I would like to show you a performance table comparing different ways to sort a list/array unique. #### Sometimes it is necessary to sort a list or an array unique to get rid of du...