Forum Discussion
alazarg
Jun 24, 2023Copper Contributor
Deploy File to Intune Enrolled Devices as Win-32 App
I had a request to Deploy a pdf file to user's desktop and could not find clear documentation, hence here is how I successfully deployed it and decided to share is with this amazing community. Deplo...
alazarg
Oct 28, 2023Copper Contributor
Kay_Urban
That is a good question!
To deploy multiple file using one deployment action, you can modify the install, remove and detect scripts. for example to modify "install-file.ps1"
-----------------------------
#Installation Script: Install-file.ps1
$FileName1 = "FileToDesktop1.pdf"
$FileName2 = "FileToDesktop2.pdf"
$FileName3 = "FileToDesktop3.pdf"
$ScriptPath = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Definition)
Copy-Item -Path "$ScriptPath\$FileName1" -Destination "$Env:Public\Desktop"
Copy-Item -Path "$ScriptPath\$FileName2" -Destination "$Env:Public\Desktop"
Copy-Item -Path "$ScriptPath\$FileName3" -Destination "$Env:Public\Desktop"
-----------------------------------------
I hope this helps.
That is a good question!
To deploy multiple file using one deployment action, you can modify the install, remove and detect scripts. for example to modify "install-file.ps1"
-----------------------------
#Installation Script: Install-file.ps1
$FileName1 = "FileToDesktop1.pdf"
$FileName2 = "FileToDesktop2.pdf"
$FileName3 = "FileToDesktop3.pdf"
$ScriptPath = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Definition)
Copy-Item -Path "$ScriptPath\$FileName1" -Destination "$Env:Public\Desktop"
Copy-Item -Path "$ScriptPath\$FileName2" -Destination "$Env:Public\Desktop"
Copy-Item -Path "$ScriptPath\$FileName3" -Destination "$Env:Public\Desktop"
-----------------------------------------
I hope this helps.
jordanpineda
Dec 11, 2023Copper Contributor
For multiple files in one, how would you save the files to make IntuneWinAppUtil.exe take them in?