-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fcdd0e
commit 4d03992
Showing
8 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> | ||
<displayName>Excel_Version</displayName> | ||
<displayInCategory>Extension Attributes</displayInCategory> | ||
<description>Reports the installed version of Microsoft Excel for Mac</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -d /Applications/Microsoft\ Excel.app ]; then | ||
AppVersion=`/usr/bin/defaults read /Applications/Microsoft\ Excel.app/Contents/Info.plist CFBundleShortVersionString` | ||
echo "<result>$AppVersion</result>" | ||
else | ||
echo "<result>Not installed</result>" | ||
fi | ||
|
||
exit 0</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> | ||
<displayName>MAU_Channel</displayName> | ||
<displayInCategory>Extension Attributes</displayInCategory> | ||
<description>Reports the effective Channel of Microsoft AutoUpdate for Mac</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -d /Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app ]; then | ||
ChannelName=`python -c "from Foundation import CFPreferencesCopyAppValue; print CFPreferencesCopyAppValue('ChannelName', 'com.microsoft.autoupdate2')"` | ||
if [ "$ChannelName" == "External"]; then | ||
echo "<result>Insider Slow</result>" | ||
elif [ "$ChannelName" == "Insider_Fast"]; then | ||
echo "<result>Insider Fast</result>" | ||
elif [ "$ChannelName" == "Internal"]; then | ||
echo "<result>Microsoft</result>" | ||
elif [ "$ChannelName" == "Dogfood"]; then | ||
echo "<result>Dogfood</result>" | ||
elif [ "$ChannelName" == "Custom"]; then | ||
ManifestServer=`python -c "from Foundation import CFPreferencesCopyAppValue; print CFPreferencesCopyAppValue('ManifestServer', 'com.microsoft.autoupdate2')"` | ||
echo "<result>Custom - $ManifestServer</result>" | ||
else | ||
echo "<result>Production</result>" | ||
fi | ||
else | ||
echo "<result>Not installed</result>" | ||
fi | ||
|
||
exit 0</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> | ||
<displayName>MAU_Version</displayName> | ||
<displayInCategory>Extension Attributes</displayInCategory> | ||
<description>Reports the installed version of Microsoft AutoUpdate for Mac</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -d /Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app ]; then | ||
AppVersion=`/usr/bin/defaults read /Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/Info.plist CFBundleShortVersionString` | ||
echo "<result>$AppVersion</result>" | ||
else | ||
echo "<result>Not installed</result>" | ||
fi | ||
|
||
exit 0</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> | ||
<displayName>OneNote_Version</displayName> | ||
<displayInCategory>Extension Attributes</displayInCategory> | ||
<description>Reports the installed version of Microsoft OneNote for Mac</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -d /Applications/Microsoft\ OneNote.app ]; then | ||
AppVersion=`/usr/bin/defaults read /Applications/Microsoft\ OneNote.app/Contents/Info.plist CFBundleShortVersionString` | ||
echo "<result>$AppVersion</result>" | ||
else | ||
echo "<result>Not installed</result>" | ||
fi | ||
|
||
exit 0</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> | ||
<displayName>Outlook_Version</displayName> | ||
<displayInCategory>Extension Attributes</displayInCategory> | ||
<description>Reports the installed version of Microsoft Outlook for Mac</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -d /Applications/Microsoft\ Outlook.app ]; then | ||
AppVersion=`/usr/bin/defaults read /Applications/Microsoft\ Outlook.app/Contents/Info.plist CFBundleShortVersionString` | ||
echo "<result>$AppVersion</result>" | ||
else | ||
echo "<result>Not installed</result>" | ||
fi | ||
|
||
exit 0</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> | ||
<displayName>PPT_Version</displayName> | ||
<displayInCategory>Extension Attributes</displayInCategory> | ||
<description>Reports the installed version of Microsoft PowerPoint for Mac</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -d /Applications/Microsoft\ PowerPoint.app ]; then | ||
AppVersion=`/usr/bin/defaults read /Applications/Microsoft\ PowerPoint.app/Contents/Info.plist CFBundleShortVersionString` | ||
echo "<result>$AppVersion</result>" | ||
else | ||
echo "<result>Not installed</result>" | ||
fi | ||
|
||
exit 0</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> | ||
<displayName>SfB_Version</displayName> | ||
<displayInCategory>Extension Attributes</displayInCategory> | ||
<description>Reports the installed version of Microsoft Skype for Business for Mac</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -d /Applications/Skype\ for\ Business.app ]; then | ||
AppVersion=`/usr/bin/defaults read /Applications/Skype\ for\ Business.app/Contents/Info.plist CFBundleShortVersionString` | ||
echo "<result>$AppVersion</result>" | ||
else | ||
echo "<result>Not installed</result>" | ||
fi | ||
|
||
exit 0</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> | ||
<displayName>Word_Version</displayName> | ||
<displayInCategory>Extension Attributes</displayInCategory> | ||
<description>Reports the installed version of Microsoft Word for Mac</description> | ||
<dataType>string</dataType> | ||
<scriptContentsMac>#!/bin/sh | ||
if [ -d /Applications/Microsoft\ Word.app ]; then | ||
AppVersion=`/usr/bin/defaults read /Applications/Microsoft\ Word.app/Contents/Info.plist CFBundleShortVersionString` | ||
echo "<result>$AppVersion</result>" | ||
else | ||
echo "<result>Not installed</result>" | ||
fi | ||
|
||
exit 0</scriptContentsMac> | ||
<scriptContentsWindows/> | ||
</extensionAttribute> |