I've created 2 new post-install task scripts and upon post-install on any system, I'm getting an error:

Task ID (number)

Task Name (task name)

Return Code: 2

Error description: The system cannot find the file specified.


When I click edit Tasks.xml, and look through the code for the offending tasks, I see:

<Task ID="219">

<Name>VBS - GetSetAsset</Name>


<CommandLine><![CDATA[getsetasset.vbs arg1 arg2]]></CommandLine>








If I go to the specified Working Directory, it shows right up and I can run the script.

My other script is similar and has the same error and XML code.

Here's what it looks like in K2000:



Answer Summary:
0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



add cscript in front of your command

Answered 05/29/2014 by: SMal.tmcc
Red Belt

  • Is there a way to test that without having to re-do the whole image deployment again? Our WIMs take 30-40 mins to deploy!
    • Yes there is. Just open task.xml and edit it and retry! It looks like cscript did it, I'll repost in a minute.
Please log in to comment
Answer this question or Comment on this question for clarity



did you just update to 3.6? It's possible the task engine doesn't like the way your task is formatted. I had some issues with mine when I initially moved over, I had to work through this checklist a few times:


Answered 05/29/2014 by: Asevera
Blue Belt

  • We updated a few months ago, but I'll take a look at the link.
Please log in to comment