Skip to content

Commit c62f39f

Browse files
committed
Fix statement about logic of ConfirmImpact
1 parent 463a71e commit c62f39f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

reference/docs-conceptual/developer/cmdlet/users-requesting-confirmation.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Users Requesting Confirmation
3-
ms.date: 09/30/2021
3+
ms.date: 09/24/2024
44
ms.topic: reference
55
title: Users Requesting Confirmation
66
---
@@ -9,23 +9,22 @@ title: Users Requesting Confirmation
99
When you specify a value of `true` for the `SupportsShouldProcess` parameter of the Cmdlet attribute
1010
declaration, the **Confirm** parameter is added to the parameters of the cmdlet.
1111

12-
In the default environment, users can specify the **Confirm** parameter or `"-Confirm:$true` so that
13-
confirmation is requested when the `ShouldProcess()` method is called. This forces confirmation
14-
regardless of the impact level setting.
12+
In the default environment, users can specify the **Confirm** parameter so that confirmation is
13+
requested when the `ShouldProcess()` method is called. This forces confirmation regardless of the
14+
impact level setting.
1515

1616
If **Confirm** parameter is not used, the `ShouldProcess()` call requests confirmation if the
17-
`$ConfirmPreference` preference variable is equal to or greater than the `ConfirmImpact` setting of
18-
the cmdlet or provider. The default setting of `$ConfirmPreference` is **High**. Therefore, in the
19-
default environment, only cmdlets and providers that specify a high-impact action request
20-
confirmation.
17+
`ConfirmImpact` setting is equal to or greater than the `$ConfirmPreference` preference variable.
18+
The default setting of `$ConfirmPreference` is **High**. Therefore, in the default environment, only
19+
cmdlets and providers that specify a high-impact action request confirmation.
2120

2221
If **Confirm** is explicitly set to false (`-Confirm:$false`), the cmdlet runs without prompting for
2322
confirmation and the `$ConfirmPreference` shell variable is ignored.
2423

2524
## Remarks
2625

2726
- For cmdlets and providers that specify `SupportsShouldProcess`, but not `ConfirmImpact`, those
28-
actions are handled as "medium impact" actions, and they will not prompt by default. Their impact
27+
actions are handled as `Medium` impact actions, and they will not prompt by default. Their impact
2928
level is less than the default setting of the `$ConfirmPreference` preference variable.
3029

3130
- If the user specifies the `Verbose` parameter, they will be notified of the operation even if they

0 commit comments

Comments
 (0)