Skip to main content
Solved

Smart Group for finding Office 2019 Volume License installed

  • December 7, 2023
  • 3 replies
  • 31 views

PE14_2
Forum|alt.badge.img+7

Is this possibe? Can force install the 2021 license but some users use an O365 license so want to make an smart group that only users with an 2019 license update to 2021

 

thanks 

Best answer by PE14_2

#!/bin/bash
RESULT="Not Volume Licensed"

if [ -f "/Library/Preferences/com.microsoft.office.licensingV2.plist" ]; then
RESULT="Volume Licensed"
fi

/bin/echo "<result>$RESULT</result>"

Volume license installed - <result>Volume Licensed</result>

O365 license installed - <result>Not Volume Licensed</result>

thanks for that!

3 replies

Forum|alt.badge.img+11
  • Valued Contributor
  • December 7, 2023

You can probably give this a try:

 

#!/usr/bin/env bash RESULT="Not Volume Licensed" if [ -f "/Library/Preferences/com.microsoft.office.licensingV2.plist" ] ; then RESULT="Volume Licensed" fi /bin/echo "<result>$RESULT</result>"

PE14_2
Forum|alt.badge.img+7
  • Author
  • Valued Contributor
  • Answer
  • December 8, 2023

#!/bin/bash
RESULT="Not Volume Licensed"

if [ -f "/Library/Preferences/com.microsoft.office.licensingV2.plist" ]; then
RESULT="Volume Licensed"
fi

/bin/echo "<result>$RESULT</result>"

Volume license installed - <result>Volume Licensed</result>

O365 license installed - <result>Not Volume Licensed</result>

thanks for that!


Forum|alt.badge.img
  • New Contributor
  • January 2, 2024