Scripting Tips and Tricks: Strict Mode

Dealing with the PoSh progeny, it is important to possess a Strict Mode to compliment the now famous Naughty Step*. Such techniques maintain discipline and keep the troops in line. My Strict Mode is as far removed from the Wackford Squeers' school of discipline as one can imagine, being nothing more than a raised voice, but, by Jove, it works wonders!  PowerShell also has…

1

Scripting Tips and Tricks: Requires

The PoSh family require lots of things. Food, warmth and shelter seem to be at the top of their list. Attention is up there, too. Interestingly, the PoSh chickens have similar requirements… although, PowerShell still doesn't figure on THEIR list. More interestingly, scripts have requirements: a certain script may require administrative privileges, another the Azure PowerShell module. Scripts never…

1

Scripting Tips and Tricks: Script Development with Splatting

Advice can be given, ignored or taken. Over the next few weeks I'll write about some scripting practices I find useful and helpful. You can decide if these tips are for you… When writing a longer script I often have to work on it as and when I can. These scripts tend to have lots of parameters and I…

1