Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are probably referring to the <code>-WhatIf</code> and <code>-Confirm</code> parameters on cmdlets. You can read up about them in <code>Get-Help about_commonParameters</code>:</p> <blockquote> <p><strong>Risk Management Parameter Descriptions</strong></p> <pre><code>-WhatIf[:{$true | $false}] </code></pre> <blockquote> <p>Displays a message that describes the effect of the command, instead of executing the command.</p> <p>WhatIf parameter overrides the value of the <code>$WhatIfPreference</code> variable for the current command. Because the default value of the <code>$WhatIfPreference</code> variable is <code>0</code> (disabled), WhatIf behavior is not performed without the WhatIf parameter. For more information, type the following command:</p> <pre><code>get-help about_preference_variables </code></pre> <p><em>Valid values:</em></p> <p><code>$true</code> (<code>-WhatIf:$true</code>). Has the same effect as <code>-WhatIf</code>.<br> <code>$false</code> (<code>-WhatIf:$false</code>). Suppresses the automatic WhatIf behavior that results when the value of the $WhatIfPreference variable is 1.</p> <p>For example, the following command uses the <code>WhatIf</code> parameter in a <code>Remove-Item</code> command:</p> <pre><code>PS&gt; remove-item date.csv -whatif </code></pre> <p>Instead of removing the item, Windows PowerShell lists the operations it would perform and the items that would be affected. This command produces the following output:</p> <pre><code>What if: Performing operation "Remove File" on Target "C:\ps-test\date.csv". </code></pre> </blockquote> <pre><code>-Confirm[:{$true | $false}] </code></pre> <blockquote> <p>Prompts you for confirmation before executing the command.</p> <p>The Confirm parameter overrides the value of the $ConfirmPreference variable for the current command. The default value is High. For more information, type the following command:</p> <pre><code>get-help about_preference_variables </code></pre> <p><em>Valid values:</em></p> <p><code>$true</code> (<code>-WhatIf:$true</code>). Has the same effect as <code>-Confirm</code>.<br> <code>$false</code> (<code>-Confirm:$false</code>). Suppresses automatic confirmation, which occurs when the value of <code>$ConfirmPreference</code> is less than or equal to the estimated risk of the cmdlet.</p> <p>For example, the following command uses the Confirm parameter with a Remove-Item command. Before removing the item, Windows PowerShell lists the operations it would perform and the items that would be affected, and asks for approval.</p> <pre><code>PS C:\ps-test&gt; remove-item tmp*.txt -confirm </code></pre> <p>This command produces the following output:</p> <pre><code>Confirm Are you sure you want to perform this action? Performing operation "Remove File" on Target " C:\ps-test\tmp1.txt [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): </code></pre> </blockquote> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload