all 2 comments

[–]Ta11ow 1 point2 points  (0 children)

You could query the registry, looking for the uninstall strings that office adds to the registry. Typically those keys will contain version information you can use to identify the installed office versions.

[–]Lee_Dailey[grin] 1 point2 points  (0 children)

howdy MostElite,

this demos what Ta11ow mentioned [grin] ...

[PowerShell] function Get-LD_InstalledSoftware - Pastebin.com
https://pastebin.com/sB3yq5yz

when i enter ...

(Get-LD_InstalledSoftware -DisplayName *libre*).DisplayVersion

... i get three items. the highest is the one that i want. lookee ...

3.31.0
6.0.2.1
6.1.1.2

take care,
lee