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

  • In our previous article, we explored the fundamentals of PowerShell modules – what they are, why to use them, and how to create basic modules. Now, let’s dive deeper into advanced module development techniques, best practices for keeping your code clean and structured, and professional-grade module development workflows. This continuation will help you transform from a module user to a module architect, capable of building robust, maintainable, and professional PowerShell modules.

  • Discover how PowerShell 7’s null-coalescing operators (?? and ??=) can simplify your scripts by handling $null values more cleanly and safely. This guide covers basic usage and tips to make your code more readable and reliable.

  • PowerShell modules are fundamental for creating scalable and reusable scripts. They offer a structured approach to package, share, and manage collections of PowerShell code, including functions, cmdlets, and variables. This guide delves into the essentials of PowerShell modules, explaining what they are, the different types available, and why they are indispensable for any PowerShell user, from automating system administration to developing toolsets for team collaboration.

  • In this follow-up to my previous post on building GUIs with PowerShell, I walk through a practical example: a GUI-based log viewer. This tool allows users to filter and open log files without needing PowerShell knowledge—perfect for sharing with colleagues. I explain each step of the script, from setting up the form and controls to handling events and filtering logs. The code is available on GitHub and is intentionally left open for customization and learning.

  • PowerShell can create GUIs, making scripts accessible to users unfamiliar with the command line, enabling real-time interaction, and adding professionalism. Windows Forms, a .NET framework, offers various controls like buttons and text fields. By leveraging .NET libraries, you can build graphical interfaces for input and output fields while working within PowerShell.

  • Checking for null and empty values is crucial for robust PowerShell scripting. This blog explores effective methods to handle these checks, ensuring your scripts run smoothly and error-free. Learn the best practices for comparing values. Enhance your code readability and reliability with these essential techniques.

  • Need to know which parameters were actually passed to your function? $PSBoundParameters has you covered. It’s a built-in dictionary that only includes parameters explicitly provided by the caller. This makes it perfect for clean logic, dynamic behavior, or smart defaults—no need to check for $null or rely on default values. If a key exists in $PSBoundParameters, you know the user meant to pass it.

  • PowerShell is a powerful and versatile scripting language that is very useful for automating processes. I often look for how others have solved a particular problem. I want to share some, not all — sorry– :), handy tricks that I have collected over time with you here. They are not complete scripts but rather a collection of useful snippets that you can use in your own scripts. Most examples come from the PowerShell community, and…

  • Setting up Visual Studio Code (VSCode) for PowerShell development can be overwhelming due to the numerous available options and extensions. In this guide, I’ll walk you through my personal VSCode setup for PowerShell development, including essential extensions, recommended settings, and layout customizations that enhance productivity. Whether you’re transitioning from PowerShell ISE or starting fresh with VSCode, this guide will help you create an optimized development environment.