Skip to main content

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 

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

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


check this:
ExtensionAttributes/Office_License.sh at master · pbowden-msft/ExtensionAttributes · GitHub