How and Why to Use Splatting (passing [switch] parameters)

On our internal discussion list, someone just asked about how to pass switch parameters from one function to another.  This person asked this as "Why can't [switch] parameters be passed as parameters?". My short answer was simple: "They Can Be" Answering this question is a great way to illustrate the value of a PowerShell V2 feature called Splatting.  Splatting is Read More...

Read the complete post at http://blogs.msdn.com/powershell/archive/2009/01/02/how-and-why-to-use-splatting-passing-switch-parameters.aspx


Posted Jan 02 2009, 03:03 PM by Windows PowerShell Blog
Filed under: ,
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.