Config Manager Package Custom Error Codes and Descriptions

Lanky Doodle 241 Reputation points
2023-02-09T16:09:21.7866667+00:00

Hi,

I have a PowerShell script that does some stuff on devices. I am returning custom exit codes (including 0 for success) depending on what happens in the script. Is is possible to have Config Manager understand these custom exit codes for the 'Description'.

E.g.:

User's image

10034 is one of my exit codes for "fail" result. I'd like this to understand what 10034 means.

Thanks

Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. AllenLiu-MSFT 49,436 Reputation points Microsoft External Staff
    2023-02-10T05:10:57.1233333+00:00

    Hi, @Lanky Doodle

    Thank you for posting in Microsoft Q&A forum.

    How do you want Config Manager to understand these custom exit codes?

    You are the admin of SCCM and deployed the script, so you may know what does 10034 means.

    Do you want a detailed explanation of the exit code in column "Description"?


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.