News

Posey's Tips & Tricks. How To Validate Input in PowerShell Functions, Part 1. If your automated script takes action based on a value, it's critical to make sure the value is correct.
PowerShell functions act as small, reusable building blocks of code that streamline your workflow and make your scripts more efficient. We’ll explain more about PowerShell functions and share basic ...
When you write a function, it should only serve a single purpose. If it is supposed to query something, it just queries something and returns the result back as an object to the console. It should not ...
In Part 1 of this series, I showed you an example of PowerShell's native validation capabilities.. In that installment, I wrote a function that accepted a text string as input. The function then ...
If you need multiple functions to accomplish your goal, then add those into a module. Proper Naming of a Function Take a look at all of the core PowerShell cmdlets and you will noticed something right ...