Monthly Archives: April 2018

Change a function definition

Functions in PowerShell are based on scriptblocks and as I showed in my session at the recent PowerShell Summit its possible to change a function definition. Let’s start with a simple function: PS> function f1 { >>   $x = 1 … Continue reading

Posted in Powershell | Leave a comment

Code reviews and Iron Scripter

Many organisations use code reviews to help ensure a quality outcome. At the recent PowerShell Summit we ran a scripting competition – Iron Scripter. I’ve had a thought on how code reviews and Iron Scripter have something in common. Something … Continue reading

Posted in Powershell | Leave a comment

Positional parameters

Positional parameters allow you go use a function of cmdlet without specifying the parameter names. The values you supply are assigned to the correct parameters based on their position. If you look at the documentation for PowerShell you’ll see some … Continue reading

Posted in Powershell | Leave a comment