After an installation I try to return a 3010 code back to ConfigMgr to restart the machine.
I use the Exit-Script function as following:
Exit-Script -ExitCode "3010"
I am aware that the $AllowRebootPassThru variable needs to be TRUE to avoid the suppression of this exit code. However PSAppDeploy Toolkit keeps returning return code 0 when I call the script with -AllowRebootPassThru.
When I replace 3010 with any other code it gets returned correct.
Do I need to configure something else to return a 3010 code?