HCRitter

@hcritter

376 Points 2 Followers

16 Posts

0 Answers

A PowerShell Devblog

HCRitter · 1 day ago

PowerShell Performance-Test: Like and Equals string comparison methods.

When using PowerShell, many users often rely on the like comparison in a where statement for querying data. However, there is an alternative method that can be faster, especially when search...

HCRitter · 3 weeks ago

PowerShell-Script Showcase: Get-WifiPassword

PowerShell is a powerful scripting language that can be used to automate a variety of tasks. In this blog post, we will explore my Get-WifiPassword script that retrieves stored Wifi password...
2

HCRitter · 1 month ago

Book-Review: Practical Automation with PowerShell

Lately I had the chance to get a copy of the book: "Practical Automation with PowerShell". This is not a paid review just my honest thoughts about it, because after reading I am st...

HCRitter · 1 month ago

PowerShell-Technique: Randomizing

PowerShell-Technique: Randomizing PowerShell is a powerful tool for automating tasks and managing systems, and one of its useful features is its ability to generate random values. In this po...

HCRitter · 1 month ago

PowerShell Performance-Test: File Reading

PowerShell Performance-Test: File Reading - Which method reads a file the fastest? There are several methods and ways to read the content of a file in PowerShell, with the most commonly used...

HCRitter · 2 months ago

PowerShell-Technique: Switching

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 switch s...
1

HCRitter · 2 months ago

PowerShell-Technique: Update-TypeData

Enhancing PowerShell objects with Update-TypeData Sometimes the objects that PowerShell cmdlets return don't have all the properties and methods that you need. Fortunately, PowerShell provid...
2

HCRitter · 2 months ago

PowerShell-Technique: Trapping

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 more organiz...
1

HCRitter · 2 months ago

PowerShell-Technique: $PSDefaultParameterValues

Enhance Your PowerShell Scripting with Default Parameter Values In this post, we'll take a closer look at the benefits of using default parameter values in PowerShell. As we previously explo...
2

HCRitter · 2 months ago

PowerShell-Technique: Splatting

How Splatting in PowerShell Can Improve Your Code's Aesthetics and Reduce Volume Have you ever found yourself struggling with long, unwieldy PowerShell commands? You're not alone. Backtickin...
1

HCRitter · 2 months ago

.NET or not .NET - Where

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 this post,...
1

HCRitter · 2 months ago

String concatenation performance boosting

String concatenation performance boosting - is this too much ado about nothing? Concatenating strings is a common operation in programming, but did you know that there are different methods...

HCRitter · 2 months ago

.NET or not .NET - ForEach

.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 most of us...

HCRitter · 2 months ago

Padding and Parameters

Today I would like to show you special interest topic: Padding and Parameters This post won't cover all off the aspects of parameters in PowerShell or neither everything you can do with the...

HCRitter · 2 months ago

3 ways to sort a list unique

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

HCRitter · 2 months ago

[Microsoft.Win32.Registry] VS Set-ItemProperty

Today I would like to show you a performance table comparing different ways to write to the registry. Writing to the registry is more or less a standard task while working as an administrato...
1

Loading More Content