Aug 05

Use Powershell to find latest AzureAdConnect version online.

Use a function to find the latest version of Azure AD Connect online

From Microsofts page: Azure AD Connect Version Historiy

Function Get-AzureADConnectVersionOnline {

# Find version number
$TempAzure = Invoke-WebRequest -Uri https://docs.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnect-version-history
$TempAzure.content | Out-File C:\temp\AzureVersion.TXT
$AzureFile = Get-Content C:\temp\AzureVersion.TXT | Select-String -Pattern “<h2 id=”
$Azure = $AzureFile -replace “\<.*?\>”
$AzureVersion = $azure | Select-Object -first 1
Write-Output “Latest Online Version is: $AzureVersion”

# Find release date
$AzureReleaseFile = Get-Content C:\temp\AzureVersion.TXT | Select-String -Pattern “<p>”
$AzureRelease = $AzureReleaseFile -replace “\<.*?\>”
$AzureReleaseDate = $AzureRelease[3]
Write-output “Azure Relase date $AzureReleaseDate”


This will give you the following output:

Latest Online Version is: 1.1.561.0
Azure Relase date Status: July 23 2017

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>