News

Using parameters which are already common in the core PowerShell cmdlets such as Computername should always be used in place of parameters such as Computer, CN, Server. Also like function names, you ...
When creating functions, follow a consistent naming pattern, such as starting with a verb (e.g., Get, Set, Start) and using nouns to describe what the function does (Get-UserList). PowerShell ...
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 can save you a lot of time on Windows admin tasks, but to use it effectively you need to understand how it works. Here's a crash course in Windows PowerShell scripting basics to get you ...
The PowerShell Blacksmith Part 4: Fine-Tuning Functions. Part 4 takes the function created last time and adds a validation attribute. By Jeffery Hicks; 10/15/2013; In the last article we finished ...
ForEach-Object has two aliases — ForEach and % — and supports shorthand syntax beginning in PowerShell 3.0. The following three examples are identical in function even though the name of the loop ...
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 ...