Copy a License File to all computers with a certain label
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)
I need to also overwrite the one that is there (named the same as the new file)
2 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
SMal.tmcc
8 years ago
for the script you would upload the license file as an dependency and use
Comments:
-
/c xcopy $(KACE_DEPENDENCY_DIR)\licensefile.lic "c:\somedir\another dir\licensefile.lic" /q /y - SMal.tmcc 8 years ago
Posted by:
Nico_K
8 years ago
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.
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.
Comments:
-
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? - ericdanuser 8 years ago
and I would be copying this either from the KBOX or just a regular server share \\server\ - ericdanuser 8 years ago