Quick Learnings
For those moments when you need to absorb knowledge faster than a sponge in a rainstorm.
-
PowerShell is a powerful scripting language and command-line shell designed for task automation and configuration management. One of its lesser-known but highly useful features is “splatting.” Splatting allows you to simplify your command syntax by passing parameters to cmdlets and functions in a more readable and maintainable way. What is Splatting? Splatting is a method […]
-
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?