Sample_Save.ps1
# Import module Import-Module -Name F:\GoogleDrive\Scripts\PowerShell\Intune\Modules\IntuneWin32App\IntuneWin32App.psd1 # Get the Win32 app $Win32App = Get-IntuneWin32App -TenantName "configmgrse.onmicrosoft.com" -DisplayName "7-zip" -Verbose # Download the Win32 app .intunewin Save-IntuneWin32AppContent -TenantName "configmgrse.onmicrosoft.com" -ID $Win32App.id -Path C:\Temp\IntuneWinAppUtil\Download -Verbose # Get the Win32 app $Win32App = Get-IntuneWin32App -TenantName "configmgrse.onmicrosoft.com" -DisplayName "Adobe Reader" -Verbose # Download the Win32 app .intunewin Save-IntuneWin32AppContent -TenantName "configmgrse.onmicrosoft.com" -ID $Win32App.id -Path C:\Temp\IntuneWinAppUtil\Download -Verbose # Decode Win32 app Expand-IntuneWin32AppPackage -FilePath C:\Temp\IntuneWinAppUtil\Download\setup.intunewin -Force -Verbose |