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...
Kay_Urban
Oct 25, 2023Copper Contributor
Thanks for the help! alazarg
Is it possible, do use the same method for more than one file? Or do I need to to some shenanigans when its more than one file?
Thanks!
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.
- jordanpinedaDec 11, 2023Copper Contributor
For multiple files in one, how would you save the files to make IntuneWinAppUtil.exe take them in?
- Kay_UrbanOct 30, 2023Copper ContributorIt does, it worked perfectly. Thanks!