Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions MAU_CheckMethod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<result>AutomaticDownload (inferred)</result>"
else
echo "<result>$HowToCheck</result>"
Expand All @@ -14,4 +14,4 @@ else
echo "<result>Not installed</result>"
fi

exit 0
exit 0