Pages

Search

Thursday, December 18, 2014

Splatting in PowerShell

I recently discovered the wonderful technique of "Splatting" in PowerShell. This technique shortened a script I had been working on quite a bit and made it that much easier to understand and re-distribute. An example of Splatting is below:

This is something I'm now incorporating in my current scripts that require email functionality thanks to the Send-MailMessage cmdlet in PowerShell.