Kaseya Community

How to push a batch file or script to the Desktop of all managed machines

  • Hello,

    How would I push a batch file or script file the Desktop folder on every machine that we manage? I can't figure it out.

    Thanks!

  • Using Agent Procedures to write files:

    Easy enough if you want to push to public desktop - WriteFile(VSASHared\Filename, c:\Users\Public\Desktop\Filename)

    Still pretty easy if you want to target current/latest user as there are variables for those that you can substitute in place of Public.

    If you want to iterate through all profiles and copy to individual user desktops, then first write the file to a temp folder, then drop a script to loop through all subfolders of c:\Users and copy to their desktops.



    edited to clarify.
    [edited by: Trevor@Correct at 12:59 PM (GMT -8) on Nov 12, 2020]