Posted on 02-02-2018 09:39 AM
We're planning to move away from a serialized volume license for Office 2016, which will require users to activate their existing copies of Office using O365. I've found that Outlook doesn't handle this very well and just goes into Offline mode instead of prompting the user to activate, which will be confusing and create help desk tickets. I'd like to build something to address that.
I can detect a serialized installation by looking for the license file we install, but I don't know how to detect if a copy of Office has been activated by the user. Does anyone have any insight into a method for checking that via script? Is there a file I can look for or an executable I can query?
Posted on 02-02-2018 10:57 AM
I have a whole post about this on Jamf's blog: Steal this script!.
Posted on 02-02-2018 10:58 AM
Thanks! I literally just found that a few minutes ago and am already tearing it apart for an extension attribute and other scripts.
Posted on 02-02-2018 11:00 AM
office2016="/Library/Preferences/com.microsoft.office.licensingV2.plist"
office365=/Users/$userName/Library/Group Containers/UBF8T346G9.Office/com.microsoft.Office365.plist
These might help - along with what @talkingmoose posted.
EDIT
You'll need to populate the $userName variable. :)
Posted on 02-05-2018 06:44 AM
This is what we use...
if [ -f "/Library/Preferences/com.microsoft.office.licensingV2.plist" ]; then result="Yes"
else result="No"
fi
echo "<result>$result</result>"
exit 0