Example. I want a worklet to start the print spooler driver if it is stopped
So the Evaluation Code check to see if the spooler is stopped. If no Exit 0, if yes Exit 1
Script finds the spooler is stopped move on to remediation code
The remediation code starts the spooler, then double checks if the spooler is actually started….uh oh, the service still isn’t running.
If I specify exit 1 in the remediation code, the script times out.
What do I use to specify in the remediation code that the worklet failed so it shows up in the “Needs attention” report?