Last active
February 28, 2025 13:37
-
-
Save LikeCarter/7a42dd750dd512677caf74adcf479241 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Define URLs | |
| $prepToolUrl = "https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool/raw/refs/heads/master/IntuneWinAppUtil.exe" | |
| $acrobatMspUrl = "https://ardownload2.adobe.com/pub/adobe/acrobat/win/Acrobat2020/2000530748/Acrobat2020Upd2000530748.msp" | |
| # Define output paths | |
| $toolPath = "$env:TEMP\IntuneWinAppUtil.exe" | |
| $appPath = "$env:TEMP\Win32AppPackageBuilder" | |
| $acrobatMspPath = "$appPath\Acrobat2020Upd.msp" | |
| $outputFolder = "$env:TEMP\Win32AppPackage" | |
| # Create necessary directories | |
| New-Item -ItemType Directory -Path $outputFolder -Force | Out-Null | |
| New-Item -ItemType Directory -Path $appPath -Force | Out-Null | |
| # Download Microsoft Win32 Content Prep Tool | |
| Invoke-WebRequest -Uri $prepToolUrl -OutFile $toolPath | |
| # Download Adobe Acrobat Update MSP | |
| Invoke-WebRequest -Uri $acrobatMspUrl -OutFile $acrobatMspPath | |
| # Make sure the tool is executable | |
| Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy" -Name "Enabled" -Value 0 | |
| & "$toolPath" -c "$appPath" -s Acrobat2020Upd.msp -o "$outputFolder" -q | |
| Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy" -Name "Enabled" -Value 1 | |
| Write-Host "Packaging complete. Files are in: $outputFolder" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment