Jos Fissering
-
What does $Status -eq 3 actually mean? In this article, we look at magic numbers in PowerShell and how to replace them with code that explains itself.
-
Large date ranges are a common challenge when working with email exports, APIs, reports, and historical datasets. In this article, I’ll introduce Get-DateSlices, a PowerShell function that automatically splits date ranges into manageable monthly or yearly segments. By leveraging DateOnly, the solution remains simple, reliable, and easy to reuse in automation and data processing workflows.
-
Not every problem needs a class. Discover the most common object-oriented mistakes in PowerShell, including overengineering, framework obsession, and deep inheritance hierarchies.
-
Reliable automation requires trust. Learn how PowerShell classes improve testability, how to write effective Pester tests, and why testing business logic, validation, and object behaviour can dramatically reduce the risk of production failures.
-
Classes are only the beginning. Learn how to organise domain objects, service classes, configuration, and reporting into reusable automation frameworks that scale beyond individual scripts without becoming overly complicated or difficult to maintain.
-
Explore how inheritance can reduce duplication and improve code reuse, while also learning why deep class hierarchies often become a liability. Understand when to use inheritance, when to prefer composition, and how to keep your object model simple and practical.
-
Refactor a traditional server health-check script into a practical PowerShell class. Discover constructors, methods, encapsulation, and object behaviour through a realistic example that demonstrates how classes can turn sprawling scripts into maintainable automation solutions.
-
PowerShell classes are not about making scripts look like C#. They’re about reducing complexity as automation grows. Learn when classes add real value, how they differ from PSCustomObject, and why long-lived automation projects often benefit from a more structured approach.
-
Learn how to calculate the maximum depth of a JSON object in PowerShell using a recursive approach. This article explains the logic behind the Get-JsonDepth function, discusses why arbitrary depth limits should be avoided, and explores the balance between accuracy, maintainability, and performance when traversing complex object graphs.
-
PowerShell Remoting over SSH combines the power of PowerShell with the universal availability of SSH. Especially in environments where both Windows and Linux systems are managed, it provides a modern and flexible way of working.
