Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
136k views
in PowerShell by 8 8 10
edited by
How to open web URL in browser from PowerShell?

Most of the methods that I have checked, it opens the URL in the default browser.

But I need to open web URL in a specific browser like firefox, Google Chrome, Microsoft Edge, Internet Explorer IE In PowerShell?

What's the simplest way to do that!

Thanks!

1 Answer

2 like 0 dislike
by 159 196 380
selected by
 
Best answer

Open URL in a browser in PowerShell

Below are different ways to open the URL in Specific Browser Using PowerShell.

Open URL in a browser in PowerShell

Open URL in default browser Using PowerShell

The below cmdlet will open "https://debug.to" in your default browser.

Start-Process "https://debug.to"

Open URL in Microsoft Edge Using PowerShell

The below cmdlet will open "https://debug.to" in the Microsoft Edge browser.

[system.Diagnostics.Process]::Start("msedge","https://debug.to")

Open URL in Google Chrome Using PowerShell

The below cmdlet will open "https://debug.to" in the Google Chrome browser.

[system.Diagnostics.Process]::Start("chrome","https://debug.to")

Open URL in Firefox Using PowerShell

The below cmdlet will open "https://debug.to" in the Firefox browser.

[system.Diagnostics.Process]::Start("firefox","https://debug.to")

Open URL in Internet Explorer Using PowerShell

The below cmdlet will open "https://debug.to" in the Internet Explorer browser.

[system.Diagnostics.Process]::Start("iexplore","https://debug.to")

See Also

by 8 8 10
0 0
Very helpful thank you!
by
0 0
How to launch the browser by sending headers from powershell?
by
0 0
That helped me a lot, thanks!
by 1 1 2
0 0
How to call a URL address in a hidden way without opening the browser ?
If you don’t ask, the answer is always NO!
...