A simple way of installing Firefox trough PowerShell/RMM script.
A better link to always grab the latest version,
Update 2025-04-28:
Click to reveal
Click to hide
Updated to always grab the latest release.
Update 2025-03-21:
Click to reveal
Click to hide
Updated the cleanup part to be correct.
Here we go:
$ProgressPreference = 'SilentlyContinue'
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$tp = "C:\TempPath"
mkdir $tp -ErrorAction SilentlyContinue
$Url = "https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win64&lang=en-US"
$Installer = "FirefoxSetup.msi"
Invoke-WebRequest -Uri $Url -OutFile "$tp\$Installer" -ErrorAction Stop
Start-Process -FilePath "$tp\$Installer" -ArgumentList "/q /norestart" -Wait
Start-Sleep -Seconds 10
Remove-Item -Path "$tp\$Installer" -Force