Remove-IISConfigCollectionElement -Confirm Parameter Documentation Does Not Match Behavior #3898
Open
3 tasks done
Labels
issue-doc-bug
Something is out of date, unclear, confusing, or broken in the article. Blocks customer success.
needs-triage
Waiting - Needs triage
Prerequisites
Get-Foo
cmdlet" instead of "Typo."Links
Summary
The behavior of the
Remove-IISConfigCollectionElement
's-Confirm
parameter does not match the documentation.The documentation can be interpreted as: in absence of the
-Confirm
parameter, the Cmdlet will execute without interactive confirmation being required.In my usage of the Cmdlet, I was required to pass
-Confirm:$false
to bypass interactive confirmation. This does not match the documentation.Details
Examples
This snippet calls the Cmdlet without the
-Confirm
parameter being passedResult in interactive mode
Result in non-interactive mode
This snippet calls the Cmdlet with the
-Confirm
parameter being explicitly set to the documentation's default value ("$false")Result in interactive and non-interactive mode
No errors, and the Cmdlet is successfully executed without a prompt and behaves as expected.
Suggested Fix
Change the default value in the
-Confirm
parameter's Default value to True or raise an issue with the PowerShell team if the Cmdlet is not behaving per specifications.The text was updated successfully, but these errors were encountered: