ExtensionAttributes
ExtensionAttributes copied to clipboard
MAUCheckMethod relying on Python, which isn't going to be stock in macOS in the future
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?
Looks like you should be able to do (works with my testing):
#!/bin/zsh
if [ -d /Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app ]; then
HowToCheck=$(defaults read /Users/rstasel/Library/Preferences/com.microsoft.autoupdate2 HowToCheck 2>/dev/null)
if [ -z "$HowToCheck" ]; then
echo "<result>AutomaticDownload (inferred)</result>"
else
echo "<result>$HowToCheck</result>"
fi
else
echo "<result>Not installed</result>"
fi
exit 0
@pbowden-msft