PSD
PSD copied to clipboard
How to exit the TS semi-gracefully?
Task Sequence step failure doesn't seem to do it. Maybe I'm missing something?
I think I found the command that Exits the Task Sequence in PSDFinal.ps1
# Kill TS if running
Stop-Process -Id $ParentPID -Force
$PID is passed to the script as the $ParentPID argument. I have had no luck finding where $PID is defined.
I have it working.