Skip to content

Approve LastExitCode

apobekiaris edited this page Sep 4, 2020 · 5 revisions

external help file: XpandPwsh-help.xml Module Name: XpandPwsh online version: schema: 2.0.0

Approve-LastExitCode

SYNOPSIS

Throws if $lastExitCode is not zero.

SYNTAX

Approve-LastExitCode [<CommonParameters>]

DESCRIPTION

Throws if $lastExitCode is not zero.

EXAMPLES

Example 1

PS C:\> Approve-LastExitCode

Check and approve the LastExitCode of the last external application execution.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

image

image


Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally