[SWITCH]

Here is a pointer to a good demonstration of PowerShell’s [SWITCH] datatype:


http://msgoodies.blogspot.com/2006/12/negating-powershell-switch-parameters.html


Jeffrey Snover [MSFT]
Windows PowerShell/MMC Architect
Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx