From b41862ddd548dad0891ad3e4b9bcef62ade59b06 Mon Sep 17 00:00:00 2001 From: Staze Date: Sat, 25 Sep 2021 16:56:32 -0700 Subject: [PATCH] Update MAU_CheckMethod.sh Removal of Python call. Monterey "safe" (Monterey throws error during EA evaluation that relies on Python. --- MAU_CheckMethod.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAU_CheckMethod.sh b/MAU_CheckMethod.sh index cdf8fec..9eacdf9 100644 --- a/MAU_CheckMethod.sh +++ b/MAU_CheckMethod.sh @@ -3,9 +3,9 @@ ## Extension Attribute to report which mode Microsoft AutoUpdate is using if [ -d /Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app ]; then - HowToCheck=`python -c "from Foundation import CFPreferencesCopyAppValue; print CFPreferencesCopyAppValue('HowToCheck', 'com.microsoft.autoupdate2')"` + HowToCheck=$(defaults read /Users/rstasel/Library/Preferences/com.microsoft.autoupdate2 HowToCheck 2>/dev/null) - if [ "$HowToCheck" = "None" ]; then +if [ -z "$HowToCheck" ]; then echo "AutomaticDownload (inferred)" else echo "$HowToCheck" @@ -14,4 +14,4 @@ else echo "Not installed" fi -exit 0 \ No newline at end of file +exit 0