/build/static/layout/Breadcrumb_cap_w.png

Cant get dependencies to work with Scripts

Hi 

New to KACE but I have read several articles here but cant seem to get this to work.  I am copying 2 dependencies which is working as I can see the files on the local machine.  Next I want to run xcopy to copy one of the files to a folder on the root of the drive so it can be accessed later.  Next I want to create a scheduled task which looks at the second dependency (XML) for the settings none of the call programs are working. Referencing this KACE Product Support : Script to copy a file from Dependencies to local host (itninja.com) I came up with these.  The dependencies and commands work locally OK so I am sure its just the way I am calling them.

Launch “$(KACE_SYS_DIR)\xcopy.exe” with params “$(KACE_DEPENDENCY_DIR)\Delete_files_Directories.bat C:\KACE\ /y

lwsAAAAASUVORK5CYII=

and

Launch “$(KACE_SYS_DIR)\schtasks.exe” with params “$(KACE_DEPENDENCY_DIR)/CREATE /XML ”Delete_files.xml“ /TN ”Delete Files“”

P09FPDtVEsbZAAAAAElFTkSuQmCC


Clearly I am doing something daft but can someone shine a light on what it is please?



0 Comments   [ + ] Show comments

Answers (4)

Posted by: teamOC 1 year ago
Yellow Belt
0

I like the idea of doing this rather than using the File Sync.. did you ever get this working?

Posted by: Mark McKinlay 1 year ago
White Belt
0

Yes but not through Kscript, it works perfectly if you use shell script.  Truth be told I cant get KScript to work reliably for most things that involve launching a program.

Posted by: wjohnson 1 year ago
White Belt
0

I've resolved some odd issues with KScript by using C:\windows\Sysnative in the Directory: field of 'Launch a program'
If memory serves, has to do with running the version of system executables that match the Windows bit version (64bit or 32bit)

Posted by: Mark McKinlay 1 year ago
White Belt
0

Pretty sure I tried SysWOW64 on my journey, I will try again to double check though.  KACE support were involved as well and they didn't advise this although I do remember seeing it around here somewhere.  KScript would be a much nicer way to join lots of parts together but I can work with Shell Script.

 
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