News

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.
Designing PowerShell functions, like coding, is an art. There are lots of shortcuts and best practices that you will come up with yourself to make your coding easier over the long run.
However, if you're new to writing PowerShell functions, you may find that your function breaks when you attempt to use the pipeline. To use the pipeline effectively, a function must be specifically ...
For example, you can set commands, set environment variables, set aliases, import modules, and add functions, among others. Simply put, you can customize the tasks and environments that suit you.
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. Good thing ...