Created
June 25, 2021 15:55
-
-
Save adotcoop/74c15e004b0c8e2bb394cdea8d2491e9 to your computer and use it in GitHub Desktop.
Gets the urls of the latest verisons of tableau products
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$download = "https://downloads.tableau.com" | |
[xml]$tableau = (Invoke-WebRequest -UseBasicParsing -uri https://downloads.tableau.com/TableauAutoUpdate.xml).Content | |
$Versions = $tableau.versions.version.name | |
$LatestVersion = $tableau.versions.version | ` | |
Sort-Object -Property @{ Expression = { [System.Version]$_.name }; Descending = $true } | ` | |
Select-Object -First 1 | |
$windowsvers = $latestversion.Installer | where name -match "exe" | |
foreach ($ver in $windowsvers) | |
{ | |
$taburl = "$($download)/$($LatestVersion.latestVersionPath)/$($ver.name)" | |
write-host $taburl | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment