forked from pbowden-msft/ExtensionAttributes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMAU_CheckMethod.xml
More file actions
16 lines (15 loc) · 764 Bytes
/
MAU_CheckMethod.xml
File metadata and controls
16 lines (15 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute>
<displayName>MAU_CheckMethod</displayName>
<displayInCategory>Extension Attributes</displayInCategory>
<description>Reports the effective checking method of Microsoft AutoUpdate for Mac</description>
<dataType>string</dataType>
<scriptContentsMac>#!/bin/sh
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')"`
echo "<result>$HowToCheck</result>"
else
echo "<result>Not installed</result>"
fi
exit 0</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>