Jos Fissering
-
PowerShell loops are like the Swiss Army knives of scripting—they’re essential for automating those mind-numbing repetitive tasks and wrangling large sets of data like a pro. In this blog post, we’ll dive into the wonderful world of PowerShell loops. You’ll learn how to use these loops to gracefully dance through collections, perform magical actions on each item, and take full control of your script’s destiny. Get ready to loop-de-loop your way to scripting greatness!
-
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.
-
In this blog post, we’ll delve into the nuances of four fundamental PowerShell commands: **Break, Return, Continue, and Exit**. Each of these commands serves a unique purpose in controlling the execution flow of your scripts, whether it’s exiting loops, returning values, or terminating scripts.
-
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?
-
A quick reference to Date/Time formats in .NET notation.
-
While running scripts lots of information, warnings and errors appear on the screen. How can we keep those for future reference?
