/build/static/layout/Breadcrumb_cap_w.png

How can you script a path that has changing PC names with each query?

Hello All,


I'm trying to deploy software with the KACE 1000 scripts and I'm having an issue. 


A Software .exe file has been added to multiple computers to their share (I.E. \\deg1266\c$).  I need to have KACE find said file and execute it, but I am unable to correctly script KACE to find said paths as each one changes with the computer.  So one computer path would be \\deg1255\c$, then next pc would be \\deg1298\c$, and so on.  


So I have two questions:

1) How can I script a path so KACE can find said file on each PC without have to create a script for each PC?

2) Is there a command variable to place in the path to represent the PC it's accessing (I.E., instead of \\deg1266\c$ you type \\[$COMPUTER_NAME]\c$?


Thank you.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: chucksteel 12 months ago
Red Belt
2

The script runs on the client, not the server, so the path is specified locally, e.g. c:\path\to\software.exe.

Also, rather than copying the file separately you can upload it as a dependency of the script. The client will then download the file to the system before running the script.


Comments:
  • That makes much more sense and I got it to work. Thanks! - DoggettOne 12 months 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

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