Hello, my name is HCRitter. Welcome to my Dev Blog

A PowerShell Devblog

Blog Post illustration

PowerShell-Technique: Smart Aliases Utilizing Non-existent Functions in PowerShell Introduction In a recent project of mine, PSMermaid, I had the privilege of exploring a fascinating technique called 'Smart Aliases,' which was introduced to me by the...

hcritter avatar
HCRitter
Blog Post illustration

Simplifying Creation of Empty PowerShell PSCustomObjects using Custom Functions Creating an empty PSCustomObject in PowerShell is a common task, but the traditional approach can be verbose and repetitive. In this blog post, I'll walk you through a mo...

hcritter avatar
HCRitter
Blog Post illustration

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 searching for strings that start with specific letters. This metho...

hcritter avatar
HCRitter
Blog Post illustration

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 passwords on Windows machines. The script overcomes the issue of loc...

hcritter avatar
HCRitter
Blog Post illustration

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 still impressed. If you're looking to dive into the world of ...

hcritter avatar
HCRitter
Blog Post illustration

PowerShell-Technique: Randomizing

Published

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 post, we'll take a closer look at the Get-Random cmdlet and ex...

hcritter avatar
HCRitter
Blog Post illustration

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 being Get-Content. I have to point out that all of the test...

hcritter avatar
HCRitter
Blog Post illustration

PowerShell-Technique: Switching

Published

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 statement as an alternative, but do you know all of its capab...

hcritter avatar
HCRitter
Blog Post illustration

PowerShell-Technique: Update-TypeData

Published

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 provides a way to extend these objects using a feature called exte...

hcritter avatar
HCRitter
Blog Post illustration

PowerShell-Technique: Trapping

Published

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 organized and readable. PowerShell's $trap statement is one of the ...

hcritter avatar
HCRitter
« 1 2