Comment
Author: Admin | 2025-04-28
This helpful. answered Nov 13, 2019 at 15:30 LockszmithLockszmith2,5501 gold badge34 silver badges50 bronze badges Personally, I use this function which I created and put in my profile script ...\Documents\WindowsPowerShell\….profile, feel free to use it. As I am from the UK, I prefer to go to .co.uk where possible, if you are from another area, you can add your own country code.# Function taking parameter add (address) and opens in edge.Function edge { param($add) if (-not ($add -contains "https://www." -or $add -contains "http://www.")) { if ($add[0] -eq "w" -and $add[1] -eq "w" -and $add[2] -eq "w") { $add = "https://" + $add } else { $add = "https://www." + $add } } # If no domain, tries to add .co.uk, if fails uses .com if (-not ($add -match ".co" -or $add -match ".uk" -or $add -match ".com")) { try { $test = $add + ".co.uk" $HTTP_Request = [System.Net.WebRequest]::Create($test) $HTTP_Response = $HTTP_Request.GetResponse() $add = $add + ".co.uk" } catch{ $add = $add + ".com" } } Write-Host "Taking you to $add" start microsoft-edge:$add}Then you just have to call: edge google in powershell to go to https://www.google.co.uk answered Jun 1, 2018 at 17:58 1 Looks like things have changed and the previous solution doesn't work anymore.However, here is the working command to launch CNN.com on Microsoft Edge:microsoft-edge:http://www.cnn.com answered Jun 14, 2018 at 4:39 WarProWarPro3503 silver badges5 bronze badges 0 I would like to recommend:Microsoft Edge Run Wrapperhttps://github.com/mihula/RunEdgeYou run it this way:RunEdge.exe [URL]where URL may or may not contains protocol (http://), when not provided, wrapper adds http://if URL not provided at all, it just opens edgeExamples:RunEdge.exe http://google.comRunEdge.exe www.stackoverflow.comIt is not exactly new way how to do it, but it is wrapped as exe file, which could be useful in some situations. For me it is way how to start Edge from IBM Notes Basic client. answered Aug 17, 2016 at 15:17 5 I want to complement other answers here in regards to opening a blank tab in Microsoft Edge from command-line.I want to add an observation from my end. Windows doesn't detect the command microsoft-edge if I remove the trailing colon. I thought
Add Comment