Using [CmdletBinding()] to Add -WhatIf and -Confirm to PowerShell Functions
Learn how to add -WhatIf and -Confirm support to PowerShell scripts by turning them into advanced functions with [CmdletBinding()] and $PSCmdlet.ShouldProcess.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to add -WhatIf and -Confirm support to PowerShell scripts by turning them into advanced functions with [CmdletBinding()] and $PSCmdlet.ShouldProcess.