Skip to content

Patch File Microsoft Office 2016 Review

if (-not (Test-Path $office2016Path)) Write-Host "Office 2016 not found in default locations. Exiting." -ForegroundColor Red exit 1

if ([version]$currentVersion -ge [version]$latestVersion) Write-Host "Office 2016 is already up to date." -ForegroundColor Green Remove-Item -Recurse -Force $tempDir -ErrorAction SilentlyContinue exit 0 patch file microsoft office 2016

$latestVersion = $latestUpdate.Version $updateFileUrl = $latestUpdate.Location patch file microsoft office 2016