Share via


How to force task sequence failure from command prompt during WinPE or FullOS?

Question

Thursday, March 13, 2014 8:54 AM

Just wondering is there any way to force task sequence to fail with command line support added from the cmd itself? I wouldn't like to lose network connection so that's not an option. Any ideas?

All replies (6)

Thursday, March 13, 2014 9:21 AM ✅Answered

Hi,

if you need to make the Task Sequence fail it's quite easy. Just launch taskmgr and then kill the process associated with the running step.

For exemple, if running the Apply Operating System image kill the OSDApplyOS.exe process.


Thursday, March 13, 2014 10:10 AM ✅Answered

Taskmgr works great when in FullOS, but doesn't work on WinPE. Any ideas?

It does work in WinPE. Just execute taskmgr.exe.
Why do you want to fail a TS? What's your goal? You could run a command line (e.g. cmd /c exit 1) without the option "continue on error" checked.

Torsten Meringer | http://www.mssccmfaq.de


Thursday, March 13, 2014 8:57 AM

sure you could specify a run command line to run a script that doesnt exist, it will fail on that step, why do  you want to do this ?

Step by Step Configuration Manager Guides > 2012 Guides | 2007 Guides | I'm on Twitter > ncbrady


Thursday, March 13, 2014 9:52 AM

I should've been more specific:

  • I do not want to add any additional steps (eg. dummy failure -step)
  • I want to get TS failure from the CMD

Taskmgr works great when in FullOS, but doesn't work on WinPE. Any ideas?


Thursday, March 13, 2014 9:57 AM

Task Manager works no problem - that's a good idea. Just type taskmgr.exe at your command prompt. I've just done it now and ended a task sequence in PE.

Gerry Hampson | Blog: www.gerryhampsoncm.blogspot.ie | LinkedIn: Gerry Hampson | Twitter: @gerryhampson


Thursday, March 13, 2014 12:49 PM

Oh, my bad. Didn't check taskmgr in WinPE, I just assumed it wouldn't work :)

Thanks for the replies. Reason for this is that I want to error out my sequence at any point I want, I'm doing some error catching testing.