How to install Firefox browser using Powershell

Clear2all Professional Blog new

How to install of FireFox browser using PowerShell

Sometimes you would like to install Firefox using Powershell. Here is the script

 

Script for installation of FireFox browser

 


$SourceURL = "https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win64&lang=en-US";
$Installer = $env:TEMP + "\firefox.exe";
Invoke-WebRequest $SourceURL -OutFile $Installer;
Start-Process -FilePath $Installer -Args "/s" -Verb RunAs -Wait;
Remove-Item $Installer;

 

 

Thank you for reading!

Leave a Reply

Your email address will not be published. Required fields are marked *