How to pass exit codes to PSADK and SCCM

//How to pass exit codes to PSADK and SCCM
How to pass exit codes to PSADK and SCCM 2018-05-18T06:57:27+00:00

The Toolkit Forums General How to pass exit codes to PSADK and SCCM

  • Author
    Posts
  • ntech2
    Participant
    Post count: 1

    Hello,
    I am new to this, sorry if it’s a stupid question.

    I have a script that I am copying into PSADK pre-installation phase. I have made certain checks for if the script worked or not, if not it creates a log and exits.

    But when deploying this via SCCM it says success even when it’s been a failure. How do I make PSADK exit with the right exit codes so SCCM understands it? Do I need to set a variable at the end of my script?

You must be logged in to reply to this topic.