$Uri = 'https://aka.ms/pbiSingleInstaller'
$web = Invoke-WebRequest -Uri $uri
$url=$web.Links |Where-Object href -Like "*confirmation*" | Select-Object -expand href
( $downloadurlid = "https://www.microsoft.com/en-us/download/" + $url )
$idcontent = Invoke-WebRequest -Uri $downloadurlid
( $downloadurl = $idcontent.Links |Where-Object href -Like "*x64.exe" | Select-Object -First 1 -expand href )
$a = $web.Content
( $a -match "\d*.\d*.\d*.\d* " )
( $latestversion = "$($Matches[1])")
( $FileName = $downloadurl.Split('/')[-1])
here is my script I want to get the version number which is here(https://www.microsoft.com/en-us/download/details.aspx?id=58494) like Version:
2.110.1161.0 , the match returns true but I can not see the result can someone help me how I can get the version number? thanks in advance