PSD icon indicating copy to clipboard operation
PSD copied to clipboard

How to exit the TS semi-gracefully?

Open JerichoJones opened this issue 2 years ago • 1 comments

Task Sequence step failure doesn't seem to do it. Maybe I'm missing something?

JerichoJones avatar Mar 12 '24 16:03 JerichoJones

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.

JerichoJones avatar Mar 13 '24 12:03 JerichoJones

I have it working.

JerichoJones avatar Apr 01 '24 23:04 JerichoJones