| [ Web Proxy ] |
| Viewing: https://riptutorial.com/powershell/topic/1145/using-shouldprocess | [Back] [Original] |
[logo rip]
| Parameter | Details |
|---|---|
| Target | The resource being changed. |
| Action | The operation being performed. Defaults to the name of the cmdlet. |
$PSCmdlet.ShouldProcess() will also automatically write a message to the verbose output.
PS> Invoke-MyCmdlet -Verbose
VERBOSE: Performing the operation "Invoke-MyCmdlet" on target "Target of action"
| Web Proxy Viewer | New URL | Original Page |