Skip to content

Instantly share code, notes, and snippets.

@adotcoop
Created June 25, 2021 15:55
Show Gist options
  • Save adotcoop/74c15e004b0c8e2bb394cdea8d2491e9 to your computer and use it in GitHub Desktop.
Save adotcoop/74c15e004b0c8e2bb394cdea8d2491e9 to your computer and use it in GitHub Desktop.
Gets the urls of the latest verisons of tableau products
$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