Forum Discussion
Copy folder using Intine
Hi All,
I have a folder containing files and other subfolders that I am trying to copy to devices using Intune. Is there a way to achieve this.
I have tried win 32 app so far and it has been tricky.
4 Replies
- GriJBrass Contributor
Hi,
i would recommend PSAppDeploymentToolkit. There are already some functions for that.
Like Copy-File
After that - Create an Application and Deploy it.
https://www.learnintune.net/deploy-apps-with-psadt/
BR - Bogdan_GuineaIron Contributor
Hy,
you have to use the script and customize it according to your wishes, but without the folders and files it won't work.
So you also need the files and folders, you can do that with a win32 or a blobstorage.
Good luck.
- Bogdan_GuineaIron Contributor
Hy,
You need to have the file and folder already on the devices via a blob storage or deploy via app (win32) and in your source code you can create your small script and then package it with IntuneWinAppUtil.exe
Example for a Onliner via win32:
Copy-Item -Path .\YOURFOLDERTOCOPY -Destination C:\YOURFOLDERONDEVICE -Recurse -Force
Same like MoritzG but i wanted to make it clearly for you.
- MoritzGIron Contributor
Hi,
you could use a powershell script:
$source = "$PSScriptRoot\MyDeployment" $destination = "C:\Program Files\MyDeployment" Copy-Item -Path $source -Destination $destination -Recurse -ForceSave in e.g. script.ps1
Upload to Intune:
- Go to Intune > Devices > Scripts
- Create a new script
- Upload script.ps1
- Assign it to your target devices