PowerShell - Scripting Best Practices
To enable the
-Confirm parameter in a PowerShell advanced function, which attribute must be included?-Confirm parameter in a PowerShell advanced function, which attribute must be included?[CmdletBinding(SupportsShouldProcess=$true)] attribute enables the function to support -Confirm and -WhatIf.[Parameter(Mandatory=$true)] control parameter behavior but do not enable confirmation support.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions