How to check the office version language in my report

MORPHO
New Contributor

Hi Hello

I need know what's version language of Office is installed on the Mac ( French, US .... )

With that i can push the good update

Have you idea

3 REPLIES 3

PeterG
Contributor II

EDIT: Oops... I read your post as "what version" ... not language.

I created an extension attribute to gather this version info.

Then I use this smart group to scope self service updates.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--==
#!/bin/bash

#move to Applications folder
cd /Applications/Microsoft Office 2011/

# Get Version Information for Microsoft Word. app
WordVersion=mdls -name kMDItemVersion 'Microsoft Word.app'| awk '{print $3}';

#return result
echo '<result>'$WordVersion'</result>'

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Edit, Edit... The metadata attribute you need is: kMDItemLanguages

mdls -name kMDItemVersion 'Microsoft Word.app

MORPHO
New Contributor

Hi Peter

Thanks you for your reply , but I expressed myself badly

I need language version if is French or US or UK

Cordially

Malik

PeterG
Contributor II

No... you explained fine... i just read it before any morning coffee.

I edited the post to contain the metadata you would need