Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Microsoft Edge Browser Version using registry or command line

How can i get microsoft edge browser version using registry or command line? I don't want to take it from UI.

like image 905
anjali rai Avatar asked Sep 20 '25 09:09

anjali rai


1 Answers

The older answers to this question seem to address Edge Legacy to the exclusion of Edge Chromium (which is now standard). Adding this answer to more fully outline current options targeting Edge Chromium, specifically.

Windows via Registry

For Windows systems, reading the Edge version from the registry is probably your best bet, since it's consistent even when the installation path varies. Some command-line for reading the installed version of Edge Chromium from the registry. There are a few options for that.

Using Powershell:

(Get-ItemProperty -Path HKCU:\Software\Microsoft\Edge\BLBeacon -Name version).version

Using Powershell and Windows Script Host:

(New-Object -ComObject WScript.Shell).RegRead("HKCU\Software\Microsoft\Edge\BLBeacon\version")

Using Reg Query:

reg query HKCU\Software\Microsoft\Edge\BLBeacon /v version

Windows via Executable

If you have more than one instance of Edge installed (for example, an Edge Dev Channel build) and you want to get the version of a specific installation, you can access the VersionInfo metadata of the Edge executable.

Using Powershell:

(Get-Item "C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe").VersionInfo.FileVersion

Using the WMIC tool:

(Note that escaping is required when translating the EXE path into the WMI query)

wmic datafile where 'name="C:\\Program Files (x86)\\Microsoft\\Edge Dev\\Application\\msedge.exe"' get Version

Non-Windows via App Binary

For non-Windows installations, running the binary from your shell with the --version flag seems to be the best bet. Your path may vary.

Ubuntu example:

/usr/bin/microsoft-edge --version

Mac OSX example:

/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge --version

Via Package Managers:

Especially on Linux installations, where Edge is likely to have been installed using a standard package manager, version querying via package management is also a solid option.

Note that this option does only apply if the Edge installation is under package management, which is pretty uncommon in non-Linux userland.

Using apt (Ubuntu):

apt list microsoft-edge

Using Homebrew (Mac OSX):

brew info microsoft-edge

Using Chocolatey (Windows):

choco list -l microsoft-edge
like image 186
MC-Rhett Avatar answered Sep 23 '25 21:09

MC-Rhett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!