To add custom return code to success code for patches, please follow below steps:
- Browse to Manage > Policies > Software >Software Update Policies >Windows.
- Select any created patch policies and click on "Advanced" tab on the right pane.
- In advanced tab you for specific patch click on package option as shown below:
- After clicking the package a new window will open where you will get option to add custom exit code under success code. Please refer below snippet:
- Save the changes.