Smart Group for finding Office 2019 Volume License installed

PE
Contributor

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 

1 ACCEPTED SOLUTION

PE
Contributor

#!/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!

View solution in original post

3 REPLIES 3

daniel_behan
Contributor III

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>"

PE
Contributor

#!/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!