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
Dependencies
Automation Setup/Import
Output
- Activity Details
- Custom Field
Changelog
2026-05-27
- Added
Resolve-InstallTypefunction 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 theProductReleaseIdsregistry value. - Added
Check-M365AppsInstalledfunction 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, andcPVAL M365 Apps Installed. - Fixed variable scoping issues by using $script: for all in-function assignments.
2026-05-12
- Enhanced
Get Office Versionscript 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, andcPVAL Office Bitnessseperately.
2025-12-12
- Initial version of the document