Tag Archives: whatif

Scripting Games 2013: Use of SupportsShouldProcess in Functions/Scripts

Edit: I was caught speeding when I put up this post. Move-Item will pick up on SupportsShouldProcess and handle the –Whatif and –Confirm without having to supply the $Pscmdlet.SupportsShouldProcess().  In fact, adding this to a cmdlet that already supports it … Continue reading

Posted in Scripting Games 2013, Tips | Tagged , , , | 5 Comments

Don’t assume a Cmdlet has -WhatIf

Imagine that you are writing a script, or preparing to run a command that will perform a change on your domain. For instance, you are running the FailoverClusters module and want to move a cluster group on a given condition. … Continue reading

Posted in News, powershell | Tagged , , , , | 1 Comment