Returning an error code to SCCM

Topics: Archive - General
Dec 8, 2014 at 1:21 PM

Is it possible to return to SCCM an error message at the end of a script?
I would like returning a warning or an error message to SCCM when a script end and the licence still need to be activate.

I know it is possible to return and errorlevel but a warning or the message coming the errorlevel??