Here's a few examples of using Evergreen
functions to return application versions and downloads.
Get-MicrosoftEdge
will return the latest versions and downloads for Microsoft Edge on Windows and macOS, including Group Policy administrative templates. To return the latest version of Microsoft Edge and the download URI for 64-bit Windows, use the following syntax:
$Edge = Get-MicrosoftEdge | Where-Object { $_.Architecture -eq "x64" -and $_.Product -eq "Stable" -and $_.Platform -eq "Windows" }$Edge | Sort-Object -Property Version -Descending | Select-Object -First 1
This will return output similar to the following:
Version : 79.0.309.71Platform : WindowsProduct : StableArchitecture : x64Date : 21/1/20 8:59:00 pmHash : 7E91F560469806F3842B16E185241BBAE82714A86808507FA23A4312EA1E0C11URI : http://dl.delivery.mp.microsoft.com/filestreamingservice/files/07367ab9-ceee-4409-a22f-c50d77a8ae06/MicrosoftEdgeEnterpriseX64.msi
Get-MicrosoftFSLogixApps
will return the latest version and download URI for Microsoft FSLogix Apps:
Get-MicrosoftFSLogixApps
Because the output is simple, no additional filtering is required:
Version URI------- ---2.9.7237.48865 https://download.microsoft.com/download/3/d/d/3ddfe262-56c7-496c-9af6-82602d2d7b5d/FSLogix_Apps_2.9.7237.48865.zip
Most Windows desktop environments are going to be on 64-bit Windows, so to get the 64-bit version of Microsoft Teams use the following syntax:
Get-MicrosoftTeams | Where-Object { $_.Architecture -eq "x64" }
Getting the version number and downloads for Acrobat Reader requires some more complex filtering. Adobe provides not only an executable installer but also a Windows Installer patch which you may need to apply to ensure the latest version is installed. The following command will return both downloads:
Get-AdobeAcrobatReaderDC | Where-Object { $_.Platform -eq "Windows" -and ($_.Language -eq "English" -or $_.Language -eq "Neutral") }
Output should then look similar to the following:
Version : 19.021.20058Platform : WindowsType : InstallerLanguage : EnglishURI : http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/1902120058/AcroRdrDC1902120058_en_US.exeVersion : 19.021.20061Platform : WindowsType : UpdaterLanguage : NeutralURI : http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/1902120061/AcroRdrDCUpd1902120061.msp