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

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

  • If you’ve ever found yourself overwhelmed by the sheer number of parameters in your PowerShell commands, splatting might just be the solution you need. Splatting is a powerful feature in PowerShell that allows you to bundle parameters into a single variable, making your scripts cleaner and more readable.

  • Running a function inside a remote session or ForEach-Object -Parallel can be tricky because the function isn’t available on those computers or sessions. While copying the function’s contents into the scriptblock is an option, it requires revisiting the script whenever the function changes—not the best approach.

  • Ever had a script which contains an array and a foreach loop? And then you want to test the content of the foreach, but only with one entry for troubleshooting purposes for example.

  • In this blog post, we delve into the powerful capabilities of PowerShell for manipulating file paths. Learn how to efficiently combine paths, extract file names and extensions, and navigate directories with ease. Whether you’re a beginner or an experienced scripter, these tips and tricks will enhance your file management skills and streamline your workflow.

  • Sometimes we need to work with file sizes in Powershell and a lot of those are displayed or required in bytes. How to calculate with those quick and easy?

  • When we want to sort IP Addresses in Powershell the normal result is alphabetical, but that is not wat we want. How to solve?