Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Syntax

Exit-PSScript -exitcode <> -exitmessage <string>

Parameters

exitcode

The error code to end running of the script, see Error Codes for examples of predefined error codes

exitmessage

An message to add to the log

Example

Exit-PSScript $Error
# PACKAGE_CANCELLED_NOT_COMPLIANT
Exit-PSScript 3327 -exitmessage "Office is not installed"
  • No labels