Microsoft Office

PowerShell script to check for and install Microsoft Office application updates.

Overview

Dev Insight: This script was extremely useful when patching for CVE-2020-23397.

This script will check for ClickToRun installations of Microsoft Office. If found, OfficeC2RClient.exe will be used to scan for and apply updates. If updates are found, users may be asked to close Microsoft Office applications to complete update installation.

Prerequisites: This script has no prerequisites.


Script

Script will abort if no ClickToRun installations of Microsoft Office are detected.

Examples

.\UpdateOffice.ps1

This example checks for ClickToRun installations of Microsoft Office. If found, a Microsoft Office update scan will be initiated.


Parameters

This script has no parameters.

Last updated