• Enums in PowerShell provide a clean way to work with strongly typed values, improving readability, maintainability, and reducing errors. By grouping related constants under a single type, you avoid magic numbers and hardcoded strings, gain autocompletion, and enable built-in validation in functions. Whether you use native syntax, Add-Type with C#, or classes with static properties, enums make your scripts more robust and easier to manage.

  • Hashtables and PSCustomObjects may look similar in PowerShell, but they serve very different purposes. This post explores their syntax, performance, and practical use cases, helping you choose the right structure for dynamic data handling or clean output formatting.

  • Introduction As briefly mentioned in the blog post Mastering PowerShell’s Comparison Operators, PowerShell allows you to match patterns using different operators. In this post, I’ll dive deeper into the differences between two commonly used options: -like and -match. At first glance, they may seem interchangeable, but they’re not. Before we get into the details of […]

  • PowerShell 7.4 introduces a subtle but impactful change: the default encoding for HTTP requests is now UTF-8 instead of ASCII. This shift can cause unexpected issues when working with the Microsoft Graph API, particularly during .intunewin file commits in Intune. In this post, I explain the root cause, share workarounds, and offer practical solutions to keep your automation workflows running smoothly.

  • Tired of manually downloading LEGO building instructions? This PowerShell function automates the process by fetching the instruction page, filtering valid PDF links, and saving them neatly into a folder per set. Whether you’re organizing your collection or just love scripting, this tool adds efficiency and fun to your LEGO hobby.

  • Measure-Command is a simple yet powerful tool to gain insight into the performance of your PowerShell code. Whether you’re optimizing scripts or just curious — to measure is to know.

  • Discover how recursive functions work in PowerShell and why they’re perfect for navigating complex, nested data structures. Inspired by Boot.dev’s RPG-style learning, this post walks through a practical example using JSON and hashtables to build file paths recursively—ideal for backend developers looking to level up their scripting skills.

  • When splitting a list of users into batches, rounding errors can lead to unexpected results. In this post, I explore common mistakes with [math]::Round(), explain rounding strategies, and show how methods like Ceiling() and Floor() can help you get accurate batch counts in PowerShell.

  • Unlock the full potential of PowerShell 7.x while still running those essential legacy scripts! Discover how to seamlessly execute PowerShell 5.1 modules like ‘VirtualMachineManager’ within your modern console. Follow our quick guide to bridge the gap between versions effortlessly.

  • Strict mode is a concept found in various programming languages, designed to enforce stricter coding rules and catch common bugs early. While PowerShell doesn’t have a strict mode like JavaScript or TypeScript, it does offer a feature called Set-StrictMode that serves a similar purpose.