I'm having trouble figuring out how to do this.  I've tried copying the file from my machine to the samba share but I'm not sure what to do with it from there.  I've also tried using scripting but can't seem to figure this out.  It seems too simple to be having problems but I'm sure I'm overthinking it.
Answer Summary:
Cancel
4 Comments   [ + ] Show Comments

Comments

  • Check File Synchronization under the Distribution module. That might be what you seek. More info is in the Administrator Guide beginning at about page 308. http://www.kace.com/support/resources/documentation
  • You could also zip the .cmd file and use scripting to extract it to the correct folder. That is my usual method of getting files to PC's.
  • Or add the CMD to RUN (or RUNONCE) of the registry.
  • Thank you grayematter - I was able to accomplish what I wanted using the File Synchronization
Please log in to comment

Answers

2
Online script.

Add you .cmd as a dependency. 

Verify a File Exists:
Dir: %allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup
File: Your.cmd

Remediation: Run a Batch File
copy /y your.cmd "%allusersprofile%\Microsoft\Windows\Start Menu\Programs\Startup"
Answered 08/15/2014 by: dugullett
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share