Copy files to Windows 10 devices using Microsoft Endpoint Manager

Hello Readers! I was working with a client last week who was looking to place some folders and files on a specific location (C drive) on their managed devices. The way we achieved it was, deploying a Win 32 package with the neccesary docs and a cmd file. Please keep reading and find out our results!♥

Below the steps:

Prepare your files to copy

Prepare a folder and add all the necessary files that you want to copy to managed devices.

Create a cmd file

Next, create a cmd file with the instructions to copy all the files previosuly added and place it on the same folder.

For our deployment we used the files as shown below:

The copyFiles.cmd file contains the following lines:

copy /Y .\Windows_EnrollmentTypesIntune.pptx %systemRoot%\
copy /Y .\Windows_AzureADRegistration.pdf %systemRoot%\
copy /Y .\IOS-iPadOS_EnrollmentTypes_.jpg %systemRoot%\

Run the Intune Utility to prepare the intunwin package

Download the Microsoft Intune Win32 App Upload Prep Tool and extract it to C:\Temp\ IntuneAppTool. You can download it here.

Create the output folder for the .intunewin package. For this example, we used the folder: C:\Users\gianelliadmin\Documents\ImportantFiles

Run powershell as admin and move to the directory where IntuneWinAppUtil was extracted to. For this example, the utility was located in C:\Temp\Microsoft-Win32-Content-Prep-Tool-master\

Run the utility using the directories accordingly.

.\IntuneWinAppUtil.exe
Please specify the source folder: C:\Users\gianelliadmin\Documents\ImportantFiles
Please specify the setup file: copyFiles.cmd
Please specify the output folder: C:\Users\gianelliadmin\Documents\ImportantFiles
Do you want to specify catalog folder (Y/N)?N

Create a Windows (Win32) app in Endpoint Manager

Upload the intune.win package and use the commands below:

1.Select the intunewin package and add the app information

2. Specify the install and uninstall command. This should be the name of the cmd file.

3. Specify the requirements

4. Add the detection rules. The path to place the files, File or Folder to add the name of at least one file and the Detection method select file or folder exists.

5. Scope the managed devices

Sync the managed device from the Endpoint Manager console and wait for the files to populate on the location.

Follow the steps above to test it on your end and don’t forget to post your questions, comments and results! ♥

Tip

If you want to copy a folder not only single files, use the xcopy command on your cmd file. Example: Xcopy C:\source C:\temp /E /H /C /I

6 thoughts on “Copy files to Windows 10 devices using Microsoft Endpoint Manager

  1. Thank you very much for this Skill! Thats so easy and works fine! This was the solution for my Problem!
    Very nice, i ve learned one Skill more!

    Liked by 2 people

  2. I think this CMD solution does not work because Intune will “run as admin” an the origin path will begin at c:\windows\system32\ and you receive a message “Cannot find specified files”.
    Anyone else with this obstacle?

    Like

    • I use this Command to copy missing icons in a Application Folder.
      C:\Program Files (x86)\VMware\VMware Horizon View Client\rc
      This works great!

      Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s