/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Running a simple windows batch file

05/01/2017 453 views
Hi Everyone, 

I'm trying to run a simple batch file that copys network drives. It looks like this: 

COPY Folder1 Folder2

This works great locally but will not work with KACE 1000. I tried using an on and offline script, "launching the program", and "run a batch file." Is there a simple way to run a batch file with Kace1000? An example would be great! 

Thank you 
0 Comments   [ + ] Show comments

Comments



Community Chosen Answer

1
By default scripts run in the system context which won't have access to network shares. If you are using a script to copy files you can upload them as a dependency and use the script to copy the file from ${KACE_DEPENDENCY_DIRECTORY}

Answered 05/02/2017 by: chucksteel
Red Belt

All Answers

0
I have several scripts that use network shares, They are all "Online Shell scripts" running as local system. If that doesn't work you can probably run it with a service account that has access to the network share.
Answered 05/16/2017 by: HISDTechGuy
Senior Yellow Belt

Don't be a Stranger!

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

Sign up! or login

View more:

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