/build/static/layout/Breadcrumb_cap_w.png

K2000 post-install task errors, "The system cannot find the file specified."

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>

<WorkingDirectory>%systemdrive%\KACE\Applications\219</WorkingDirectory>

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

<Parameters></Parameters>

<PostTaskAction>Reboot</PostTaskAction>

<KACETaskType>Application</KACETaskType>

<FileType>Exe</FileType>

<Type>PO</Type>

<Guid>15384ce1924ae3</Guid>

</Task>

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:

 

 


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: SMal.tmcc 10 years ago
Red Belt
3

add cscript in front of your command


Comments:
  • 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! - jtremblay 10 years ago
    • Yes there is. Just open task.xml and edit it and retry! It looks like cscript did it, I'll repost in a minute. - jtremblay 10 years ago
      • Thanks! That did it! - jtremblay 10 years ago
Posted by: Asevera 10 years ago
Blue Belt
0

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:

http://www.kace.com/support/resources/kb/solutiondetail?sol=SOL118913


Comments:
  • We updated a few months ago, but I'll take a look at the link. - jtremblay 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ