Hi everyone,
I'm using PowerShell scripts in several Software Packages in ManageEngine Endpoint Central.
In some cases, the script completes successfully but determines that a system reboot is required to finish the installation or configuration.
I know that we can define custom successful exit codes in the Software Package configuration (for example, 3010 – ERROR_SUCCESS_REBOOT_REQUIRED).
However, as far as I understand, Endpoint Central only interprets these codes as successful deployments, without distinguishing between a normal success and a success that requires a reboot.
My question is:
Is there a specific exit code (such as 3010 or 1641) that Endpoint Central recognizes as "Success – Reboot Required", so that the Deployment Policy can automatically handle the pending reboot and notify the user according to the configured reboot settings?
Ideally, I would like to handle this directly through the PowerShell script's exit code, without having to configure a forced reboot for every deployment.
Is this currently supported, or is there another recommended approach?
Thanks in advance for your feedback!