How can I update Edge with Command Line?

Vikalp Jain 0 Reputation points

Pasting this question again as per the request(

Hi I am a genuine customer and our org purchased so many licensed windows. My basic query is, How do I update Edge with Command Line?

My organization is doing continuous certification on Edge, and I want to update Edge from Older version to Newer version(I don't want to open the Edge and let it update, this is clumsy and sometime it fails, and I need driver to open help page and check if it is updated or not). The best reason I found out is to remove edge, Install Edge from msi and whenever new version is available I will remove the older edge and install the newer one, but unfortunately I can not remove edge, and that's the reason here I am.

Would you please help me with any of the below query?

  1. Remove the Edge so I can install the edge with newer version from msi where command line options are present.
  2. Update Edge without opening it.

Do let me know. As it is somewhat crucial and long pending.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,175 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,169 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Raina Zhao - MSFT 1,960 Reputation points Microsoft Vendor

    Hi @Vikalp Jain ,

    1. You could directly install the latest Microsoft Edge version (no need to remove/uninstall)
    2. There is no way to complete the Edge update without restarting the browser, but it is possible to automate the update. You could use WebDriver to automate Microsoft Edge. We usually use C#, Python, Java to automate Edge, if you need to use PowerShell, you can use Selenium PowerShell Module. Please refer to the steps below:
      1. Run Install-Module Selenium in Windows PowerShell.
      2. Download corresponding version of Edge WebDriver from here (same version as your Edge browser).
      3. Put the Edge WebDriver msedgedriver.exe into folder C:\Program Files\WindowsPowerShell\Modules\Selenium\3.0.1\assemblies (the path is where you install Selenium PowerShell Module, you can change it according to your real situation).
      4. Rename msedgedriver.exe to MicrosoftWebDriver.exe.
      5. Sample PowerShell code: $Driver = Start-SeEdge Enter-SeUrl edge://settings/help -Driver $Driver Hope it helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Raina Zhao