Skip to content
  • Home
    • Classes
    • Fundamentals
    • Profiles
    • Powershell
    • Fundamentals
    • Beginner
    • Intermediate
    • Advanced
    • Deep Dive
    • PowerShell
    • Quick Learnings
    • Troubleshooting
  • Archive
    • Jos
    • Casper

Powershell

PowerShell: because life’s too short for endless mouse clicks. In this category, you’ll find scripts, tips, tricks, lessons learned, and the occasional “what on earth was Microsoft thinking?” moment. From one-liners to full-blown automation adventures, we’ve got your shell covered.

  • Nov 23

    Magic Numbers in PowerShell: Make Your Code Explain Itself

    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.

  • Nov 9

    Why Every PowerShell Administrator Needs a Date Slicing Function

    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.

  • Nov 2

    PowerShell Classes: From Simple Scripts to Maintainable Automation (Part 6) – Class Anti-Patterns and When Classes Become the Wrong Tool

    Not every problem needs a class. Discover the most common object-oriented mistakes in PowerShell, including overengineering, framework obsession, and deep inheritance hierarchies.

  • Oct 26

    PowerShell Classes: From Simple Scripts to Maintainable Automation (Part 5) – Testing Class-Based PowerShell Code with Pester

    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.

  • Oct 19

    PowerShell Classes: From Simple Scripts to Maintainable Automation (Part 4) – Building Reusable Automation Frameworks

    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.

  • Oct 12

    PowerShell Classes: From Simple Scripts to Maintainable Automation (Part 3) – Inheritance and Reuse

    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.

  • Oct 5

    PowerShell Classes: From Simple Scripts to Maintainable Automation (Part 2) – Building Your First Real-World Class

    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.

  • Sep 28

    PowerShell Classes: From Simple Scripts to Maintainable Automation (Part 1) – Why Should PowerShell Users Care About Classes?

    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.

  • Sep 21

    Understanding PowerShell Profiles: Customizing Your Environment 5/5

    Part 5: Building a Production-Ready PowerShell Profile Throughout this series, we’ve explored what PowerShell profiles are, how to create them, and how to customize them with aliases, functions, modules, and prompt frameworks. In this final article, we’ll bring everything together to create a clean, maintainable, and production-ready PowerShell profile that can serve as the foundation for your daily work. The goal isn’t to create the most complex profile possible. Instead, it’s to build a profile…

  • Sep 14

    Understanding PowerShell Profiles: Customizing Your Environment 4/5

    Part 4: Customizing the PowerShell Prompt with Oh My Posh In the previous articles of this series, you’ve learned how to create a PowerShell profile, organize your scripts, create aliases, import modules automatically, and build reusable functions. These customizations help create a more productive and personalized command-line experience. Now it’s time to focus on one of the most visible elements of your PowerShell environment: the prompt. Most users interact with the PowerShell prompt hundreds or even…

1 2 3 … 8
Next Page»

Tulips, Windmills & PowerShell: Dutch Scripting Guys

Privacy Policy