10/21/2016 825 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


  • 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

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

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

  • /c xcopy $(KACE_DEPENDENCY_DIR)\licensefile.lic "c:\somedir\another dir\licensefile.lic" /q /y
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?