Forum Discussion
AB21805
Apr 21, 2021Bronze Contributor
Creating a folder containing multiple files and sending to devices via intune
Hi all, I desperately need some help! And just thought Id post on here to see if someone can help! I need to create a folder on client machines in the c drive (Folder name: Spanish Games) which ...
- Apr 22, 2021Hi it would look like this
c:\intunepackage\
Inside this folder you need to create a folder "spanishgames"
Copy everything you have inside this folder
Create a powershell script (install.ps1) inside the c:\intunepackages\ folder
Inside the script,
-first create a new directory where the files need to be copied to (destination)
New-Item -Path "c:\" -Name "SpanishGames" -ItemType "directory" -force
-Then create a command to copy everything to the folder you you created
Copy-Item -Path "spanishgames\*" -Destination "C:\spanishgames" -Recurse -force
Now we have everything in place... open the intunewinapptool and specify the folder c:\intunepackages and the setup file: install.ps1
Upload it to intune and specify the c:\spanishgames folder as the detection rule
That should be it
Oct 18, 2021
Hi, did you create a package as I mentioned?. So something like this. Inside the askit you deploy your files you want to copy
And convert that to a win32app... deploy that to intune.. When the file (zip win32) is downloaded it has also the askit folder in it
Like i am describing in this blog
Troubleshoot the Intune Win32 app deployment and the IMECache folder (call4cloud.nl)
AB21805
Jul 14, 2022Bronze Contributor
Hi Rudy,
If I wanted to put the folder into users documents how would I change the script to reflect any user that logs on devices the folder is installed on their own documents area?
If I wanted to put the folder into users documents how would I change the script to reflect any user that logs on devices the folder is installed on their own documents area?
- Jul 15, 2022could you show me the powershell script you have right now, so I can take a look at it and adjust where necessary
- AB21805Jul 15, 2022Bronze Contributor
New-Item -Path "c:\Documents\Studio one5\" -Name "Sounds" -ItemType "directory" -force
New-Item -Path "c:\Documents\Studio one5\" -Name "add ins" -ItemType "directory" -force
Copy-Item -Path "Studio one5\*" -Destination "C:\Documents\studio one5\" -Recurse -force
- AB21805Jul 15, 2022Bronze Contributor
AB21805Rudy_Ooms_MVP This is the script so far