News

For example, instead of hard coding a username in your script, allow it to be passed as a parameter. Document your functions with comments or use the help feature by adding a <# .SYNOPSIS ...
Add Help and Examples to Your Function When you were first starting out with PowerShell, I'm sure that much like myself, you were looking at the help included with each cmdlet using Get-Help.
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 ...
Prof. Powershell 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 ...
How To Build a Better PowerShell Test-Connection Function with Proxy Commands It's easier to modify an existing cmdlet to your needs than writing one from scratch.