Scenario
You have installed a new instance of Windows Admin Center (in Gateway mode) and there are a lot of installed Extensions that need updating.
What can you do?
Either select each Extension in the WAC GUI in turn and click ‘Update’, or use the following PowerShell:
#To be run on the WAC Server
#Import the WAC Extensions Module
Import-Module "$env:ProgramFiles\windows admin center\PowerShell\Modules\ExtensionTools"
#Get the FQDN name of the WAC Server
$fqdn = ([System.Net.Dns]::GetHostByName($env:computerName)).Hostname
#Get the Extensions that have an available update
$ExtensionsToUpdate = Get-Extension "https://$fqdn" | ? {$_.Status -eq 'Installed' -AND $_.iSLatestVersion -eq $False}
#Iterate through each Extension and update it
$ExtensionsToUpdate | ForEach-Object { #$_.id }
try {
Write-Host "Attempting to update Extension '$($_.id)'"
Update-Extension https://$fqdn $_.id -ErrorAction STOP | Out-Null
Write-Host "SUCCESS: '$($_.id)' has been updated"
} catch {
Write-output "FAILED"
}
}
Post Disclaimer
The information contained in the posts in this blog site is for general information purposes only. The information in this post "Updating WAC Extensions" is provided by "Lee Harrison's Technical Blog" and whilst we endeavour to keep the information up to date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services, or related graphics contained on the post for any purpose. Furthermore, it is always recommended that you test any related changes to your environments on non-production systems and always have a robust backup strategy in place.