11---
22description : Users Requesting Confirmation
3- ms.date : 09/30/2021
3+ ms.date : 09/24/2024
44ms.topic : reference
55title : Users Requesting Confirmation
66---
@@ -9,23 +9,22 @@ title: Users Requesting Confirmation
99When you specify a value of ` true ` for the ` SupportsShouldProcess ` parameter of the Cmdlet attribute
1010declaration, 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
1616If ** 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
2221If ** Confirm** is explicitly set to false (` -Confirm:$false ` ), the cmdlet runs without prompting for
2322confirmation 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