Table of Contents
Installing the Microsoft Edge using PowerShell
Would you like to learn how to install Microsoft Edge using Powershell? In this tutorial, we are going to show you how to use Powershell to install Microsoft Edge on a computer running Windows.
- Create a temporary directory to store Microsoft Edge.
- Download the Microsoft Edge installer.
- Perform a silent installation of Microsoft Edge.
Full script to download and install Microsoft Edge using a PowerShell.
#Create a temporary directory to store Microsoft Edge.
md -Path $env:temp\edgeinstall -erroraction SilentlyContinue | Out-Null
$Download = join-path $env:temp\edgeinstall MicrosoftEdgeEnterprisex64.msi
#Download the Microsoft Edge installer.
Invoke-WebRequest 'https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/a2634899-8542-43ae-899b-e24c18e4b716/MicrosoftEdgeEnterpriseX64.msi' -OutFile $Download
#Perform a silent installation of Microsoft Edge.
Start-Process "$Download" -ArgumentList "/quiet"
Verify the installation of Microsoft Edge.
$INSTALLED = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate
$INSTALLED += Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate
$INSTALLED | ?{ $_.DisplayName -match 'edge' } | sort-object -Property DisplayName -Unique | Format-Table -AutoSize
Here is the command output. Congratulations! You are able to install Microsoft Edge using PowerShell.
DisplayName DisplayVersion Publisher InstallDate
----------- -------------- --------- -----------
Google Chrome 104.0.5112.81 Google LLC 20220809
If your Windows running an older PowerShell versions, let’s using the following script to download and install the latest version of Microsoft Edge.
md -Path $env:temp\edgeinstall -erroraction SilentlyContinue | Out-Null
$Download = join-path $env:temp\edgeinstall MicrosoftEdgeEnterpriseX64.msi
(new-object System.Net.WebClient).DownloadFile('https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/a2634899-8542-43ae-899b-e24c18e4b716/MicrosoftEdgeEnterpriseX64.msi',$Download)
Start-Process "$Download" -ArgumentList "/quiet"
5/5 - (1 vote)