My goal is boot into WinPE4 then run a few commands line steps that backup my target PC (with a propietary tool) and at last reboot back to the installed operating system. Nothing else. I use CM12 SP1.
To achieve this I use a custom task sequence. To start it I use 'clear required PXE deployments' and boot/reboot the target PC.
1. Now that target PC smoothly boots from PXE, loads WinPE4 and runs athe command line steps successfully. (I even set all steps to 'continue on error' to ignore potential errors from the propietary tool.)
2. After that it restarts and again boots from PXE and again runs the same few command line steps.
3. Then it restarts again and boots the installed operating system finally. I was like.... Huh, why does it run twice?
Does it mean that the task sequence didn't give feedback to the server that it finished the first time? If so how can I force the task sequence to finalize at the end of the first run? Custom vbs or powershell script?
Deployment settings are: install required, make available only media and PXE and rerun behavior is never rerun.
Thanks for your ideas!