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:
Answers (2)
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
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