Clickable hyperlink on PowerShell's console output

user1809439 picture user1809439 · Mar 29, 2016 · Viewed 8k times · Source

I'm having some issues with the following PowerShell script, could you please help me with that?

What I'm trying to accomplish is create a clickable hyperlink in PowerShell's console output. Something like that:

$testOutPut = "http://something.com"
Write-Host $OutputConvertedIntoHYPERLINK

Where the desired console response would be:

clickable link to external app

 http://something.com

My goal with it is to show this clickable information on build console into TFS 2015.

Answer

FannolGashi picture FannolGashi · Mar 29, 2016

You can't do that but you can do to open internet explorer, with a specific URL:

$InternetExplorer=new-object -com internetexplorer.application
$InternetExplorer.navigate2("http://stackoverflow.com")
$InternetExplorer.visible=$true