Posted on 12-07-2023 06:40 AM
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
Solved! Go to Solution.
Posted on 12-08-2023 12:47 AM
#!/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!
Posted on 12-07-2023 11:54 AM
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>"
Posted on 12-08-2023 12:47 AM
#!/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!
Posted on 01-02-2024 01:51 PM