Skip to main content

Get Office Version

Purpose

The purpose of this solution is to check the MS Office Version installed on the windows machine.

Associated Content

ContentTypeFunction
Get Office VersionScriptThis script will check for the MS Office Version installed on the windows machine and updates the custom field.
cPVAL Office VersionCustom FieldStores the Office version installed on the machine fetched by Get Office Version script.
cPVAL Office BitnessCustom FieldStores the Office bitness on the machine fetched by Get Office Version script.
cPVAL Office EditionCustom FieldStores the Office Edition on the machine fetched by Get Office Version script.
cPVAL Windows Office VersionGroupThis group contains machines where office version is detected by Get Office Version Script.

Implementation

FAQ

Q1: What does this script detect?

Ans: This script detects the installed Microsoft Office version on a Windows machine, including edition (MSI or Click-to-Run) and bitness (32-bit or 64-bit).

Q2: Does it support Microsoft 365 detection?

Ans: Yes, the script accurately detects Microsoft 365 Apps using Click-to-Run (C2R) registry information and ProductReleaseIds.

Q3: What happens if Office is not detected?

Ans: If Office is not detected, the custom fields are set to undetermined to ensure consistent output.

Q4: Does the script support both MSI and Click-to-Run installations?

Ans: Yes, the script primarily uses Click-to-Run registry detection and falls back to ASSOC/FTYPE methods for MSI-based installations.

Changelog

2026-05-12

  • Added two new custom fields: Office Edition, and Office Bitness
  • 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 Office Version, Office Edition, and Office Bitness seperately.

2025-12-12

  • Initial version of the document