pbowden-msft / extensionattributes Goto Github PK
View Code? Open in Web Editor NEWJamf Pro Extension Attribute Library
License: Other
Jamf Pro Extension Attribute Library
License: Other
Paul,
It would be great to have some visibility on which volume license type is installed when this condition is met. I'm in the process of rolling out the Office 2021 LTSC volume licensing installer and being able to report on which license file is there would be helpful. I had a much more rudimentary script that checked between for 2016 and 2019. When I added the check for /usr/bin/grep -q "Bozo+MzVxzFzbIo+hhzTl4xkRZSjOUX8J8nIgpXuMa"
it wasn't reporting that I had 2021 license installed even though the About Word GUI showed I did. I ran the newer 2021 VL installer without removing the existing licensing file. For now, I am going to remove the existing licensing file before I install the 2021 file and hope that helps get me the reporting I need. Thanks!
Mike
ExtensionAttributes/Office_License.sh
Lines 153 to 154 in 26ed6ef
https://github.com/pbowden-msft/ExtensionAttributes/blob/master/MAU_CheckMethod.sh relies on Python, and in macOS 12 beta, is causing a warning to be thrown when the EA is evaluated about it (or rather, "jamf") not being supported in future OS versions.
Found https://tidbits.com/2019/06/25/apple-to-deprecate-scripting-languages-in-future-versions-of-macos/
Looks like Apple is about to drop Python from macOS.
Thoughts on switching to using "defaults"? or PlistBuddy?
Hello,
Sorry if this is not the right place to ask this kind of thing.
Is it possible to detect how an office app was installed ( AppStore or via PKG )?
Cheers,
Nick
You should check to see if the MicrosoftRegistrationDB.reg file exists first before trying to read from it. If a user hasn't logged on and had the file created yet, it will give an error when running the script, similar to:
Error: unable to open database "/Users/user/Library/Group Containers/UBF8T346G9.Office/MicrosoftRegistrationDB.reg": unable to open database file
I updated the code to the following:
# check if the registry file exists
if [[ -e "$HOMEPATH/Library/Group Containers/UBF8T346G9.Office/MicrosoftRegistrationDB.reg" ]]
then
# execute some sql to get the active O365 logon, if any
local RESULT=$(/usr/bin/sqlite3 "$HOMEPATH/Library/Group Containers/UBF8T346G9.Office/MicrosoftRegistrationDB.reg" "SELECT value from HKEY_CURRENT_USER_values WHERE name='UserDisplayName' LIMIT 1;")
# checks to see if we got a hit
if [ "$RESULT" != "" ]; then
logons+="$RESULT;"
fi
fi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.