/build/static/layout/Breadcrumb_cap_w.png

K2000 postinstall task to copy files fails

Is there a standard way to create a postinstall task to just copy files?  I have an xml profile I need to insert as a postinstall task on a system image.  All of the methods I've tried have failed.  They've been built as windows tasks.

Trying to do a straight xcopy command in the command line fails - reviewing tasks.xml shows that it truncates the command to just "xcopy" with none of the additional parameters in the task. 
I've also tried batch and vbs scripts, but in both cases I get "system cannot find the file specified", even though I can navigate to the Kace\applications\X folder and run the command successfully from its specified location.

I would prefer to keep the file in Kace rather than map a drive to another resource.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: SMal.tmcc 9 years ago
Red Belt
0
I ended up uploading a zip file and ran a batch file to do the any work like xcopy via a vbs script.


here is one that xcopys from the server to the local drive:









Comments:
  • Why use a .vbs to run a .bat? Why not just have it run the .bat? - cserrins 9 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