Thursday, July 2, 2026

How to download firefox from power shell on Windows 10

 Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass


$ProgressPreference = 'SilentlyContinue'

$response = Invoke-WebRequest -Uri "https://download.mozilla.org/?product=firefox-latest&os=win64&lang=sr" -MaximumRedirection 0 -ErrorAction SilentlyContinue -UseBasicParsing

$url = $response.Headers.Location

Invoke-WebRequest -Uri $url -OutFile "$env:USERPROFILE\Downloads\FirefoxSetup.exe"


No comments:

Post a Comment

Komentar=