Skip to main content

Get Office Version

Overview

This script audits the installed MS Office Version details installed on the windows machine and updates the custom fields.

Sample Run

Play Button > Run Automation > Script

SampleRun1

Dependencies

Automation Setup/Import

Automation Configuration

Output

  • Activity Details
  • Custom Field

Changelog

2026-05-27

  • Added Resolve-InstallType function to detect whether an Office installation is a Full suite, Language Pack only, Partial (individual apps e.g. Word, Excel), or a combination of Full + Language Pack by parsing the ProductReleaseIds registry value.
  • Added Check-M365AppsInstalled function to detect Microsoft 365 Apps in mixed environments where an older MSI Office version and M365 Apps may both be present, checking both the C2R registry key and Windows uninstall registry entries.
  • Script now updates two more custom fields: cPVAL Office Install Type, and cPVAL M365 Apps Installed.
  • Fixed variable scoping issues by using $script: for all in-function assignments.

2026-05-12

  • Enhanced Get Office Version script to improve Click-to-Run (C2R) version identification using ProductReleaseIds and CDN channel mapping.
  • Added accurate detection for Microsoft 365 Apps, Office 2016, 2019, 2021, and 2024 along with improved Office bitness detection (32-bit / 64-bit).
  • Retained MSI fallback detection using ASSOC/FTYPE and updated Ninja custom field handling with undetermined fallback values for reliability.
  • Script now updates three separate custom fields for cPVAL Office Version, cPVAL Office Edition, and cPVAL Office Bitness seperately.

2025-12-12

  • Initial version of the document