The first step is to create a source only (non-program) package with the following steps
- Go to Software Library, Application Management, Packages, and select Create Package.
- Provide a Name for your package (Description, Manufacturer, Language, and Version are optional).
- Place a check in "This package contains source files".
- Browse to your source files folder and click ok when finished.
- Click Next.
- Select the option "Do not create a program"
- Click Next, Next, Close.
- Select your new package and be sure to Distribute Content to your distribution point(s).
Next we will create a Task Sequence to copy the contents of the package to a destination on the endpoint. This process will utilize the Run Command Line task as well as a method where you can place multiple commands into one command line as reference in the previous post.
- Go to Software Library, Operating Systems, Task Sequences. Here we can create a new task sequence or edit an existing task sequence and make the following changes.
- In the task sequence select Add, General, Run Command Line.
- Provide a name for your Run Command Line task.
- In the command line you will perform a command similar to the following to make a directory if it doesn't exist and then perform then copy the files (if the directory already exists no make directory is needed).
- cmd.exe /c md C:\Windows\Temp\FileCopyExample & cmd.exe /c xcopy ".\*" C:\Windows\Temp\FileCopyExample /y /e
- Place a check in Package, then browse to the package you created in the first step.
- Click Ok to save and close the task sequence
The Task sequence can now be deployed to collections where it is needed.