/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Copy a License File to all computers with a certain label

10/21/2016 862 views
Need help creating a script to copy a license file (.LIC) to all computers having a certain label.  I'm not a scripting expert so I would help with the script.

I need to also overwrite the one that is there (named the same as the new file)
2 Comments   [ + ] Show comments

Comments

  • what is the destination path?
  • On all the targeted machines it would be C:\Program Files (x86)\NetSupport\NetSupport School\
    and I would be copying this either from the KBOX or just a regular server share \\server\

All Answers

0
for the script you would upload the license file as an dependency and use

bfmXTi.jpeg
Answered 10/21/2016 by: SMal.tmcc
Red Belt

  • /c xcopy $(KACE_DEPENDENCY_DIR)\licensefile.lic "c:\somedir\another dir\licensefile.lic" /q /y
0
You can also use the file sync functionality:
Distribution|File Syncronizations.
You need to setup a software item with the attached file.
Then fill out all needed fields and let it sync during check in.
Its easier to get all nessesary machines since they need to check in regulary.
Answered 10/23/2016 by: Nico_K
Red Belt

  • Nico_K The File Sync is the route I took before I posted this. Do we know if it will overwrite the existing one since it is named the same thing?

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