Skip to main content

Powershell

Adding WhatIf and Confirm Parameters to your Powershell

·939 words·5 mins
Want users to preview changes before your PowerShell function makes them? Learn how to add -WhatIf and -Confirm support using SupportsShouldProcess and ShouldProcess() blocks with practical examples.