-Confirm and -Whatif in PowerShell

  • These parameters should be supported for any commands that changes the system state in any way.
  • If you’re writing an advanced function, there’s no need to hand code these parameters.
  • [CmdletBinding(SupportShouldProcess=$True,ConfirmImpact=»High»)]
  • Ctrl-J for the template