Yes, this is the expected behavior.  Short of modifying ZTIApplications.wsf, 
there's no way to modify this.

The new OS is installed at this point, but the user data hasn't been restored.  
Forcing a failure at this point would leave the machine in a poor state, so 
it's better to continue and restore the data and worry about the missing app(s) 
later.

Thanks,
-Michael

From: [email protected] [mailto:[email protected]] On 
Behalf Of Derek Lang
Sent: Thursday, March 3, 2016 10:26 PM
To: [email protected]
Subject: [MDT-OSD] [mdt-osd] ZTIApplications.wsf Always Returns Success

Hi All,

I had a question while creating our latest deployment share. I've already made 
a forum post 
(https://social.technet.microsoft.com/Forums/en-US/d0d6764b-eaf8-4fcd-a474-b6ff46ac254a/ztiapplicationswsf-always-returns-success?forum=mdt)
 however there are no responses as of yet. If you want full details check it 
out.

A quick summary is the following:

*         If I call a batch script (or anything) through a "Application" task 
in my task sequence, and it returns a non-zero value. MDT will Log the error 
properly, however ZTIApplications will still return as 0/success

*         Because of this, the task sequence continues with the next step, 
instead of stopping the deployment immediately there

*         When the final summary screen comes around, it'll show "Success" 
however with comments stating that "During the deployment process, 1 errors and 
0 warnings were reported...". So this seems like an obvious false positive

So with that said, is this behavior the "expected behavior"? Is this a bug? Are 
there any workarounds?

Thanks!


Derek Lang
Software Developer
Pason Systems Corp.

Direct: 403.301.3498
[email protected]<mailto:[email protected]>


Reply via email to