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   [ - ] Hide 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\
Please log in to comment

Answer this question or Comment on this question for clarity


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
Please log in to comment
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?
Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja