Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pbowden-msft authored Jan 31, 2018
1 parent 4fcdd0e commit 4d03992
Show file tree
Hide file tree
Showing 8 changed files with 141 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Excel_Version.xml
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 "&lt;result&gt;$AppVersion&lt;/result&gt;"
else
echo "&lt;result&gt;Not installed&lt;/result&gt;"
fi

exit 0</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>
29 changes: 29 additions & 0 deletions MAU_Channel.xml
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 "&lt;result&gt;Insider Slow&lt;/result&gt;"
elif [ "$ChannelName" == "Insider_Fast"]; then
echo "&lt;result&gt;Insider Fast&lt;/result&gt;"
elif [ "$ChannelName" == "Internal"]; then
echo "&lt;result&gt;Microsoft&lt;/result&gt;"
elif [ "$ChannelName" == "Dogfood"]; then
echo "&lt;result&gt;Dogfood&lt;/result&gt;"
elif [ "$ChannelName" == "Custom"]; then
ManifestServer=`python -c "from Foundation import CFPreferencesCopyAppValue; print CFPreferencesCopyAppValue('ManifestServer', 'com.microsoft.autoupdate2')"`
echo "&lt;result&gt;Custom - $ManifestServer&lt;/result&gt;"
else
echo "&lt;result&gt;Production&lt;/result&gt;"
fi
else
echo "&lt;result&gt;Not installed&lt;/result&gt;"
fi

exit 0</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>
16 changes: 16 additions & 0 deletions MAU_Version.xml
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 "&lt;result&gt;$AppVersion&lt;/result&gt;"
else
echo "&lt;result&gt;Not installed&lt;/result&gt;"
fi

exit 0</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>
16 changes: 16 additions & 0 deletions OneNote_Version.xml
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 "&lt;result&gt;$AppVersion&lt;/result&gt;"
else
echo "&lt;result&gt;Not installed&lt;/result&gt;"
fi

exit 0</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>
16 changes: 16 additions & 0 deletions Outlook_Version.xml
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 "&lt;result&gt;$AppVersion&lt;/result&gt;"
else
echo "&lt;result&gt;Not installed&lt;/result&gt;"
fi

exit 0</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>
16 changes: 16 additions & 0 deletions PPT_Version.xml
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 "&lt;result&gt;$AppVersion&lt;/result&gt;"
else
echo "&lt;result&gt;Not installed&lt;/result&gt;"
fi

exit 0</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>
16 changes: 16 additions & 0 deletions SfB_Version.xml
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 "&lt;result&gt;$AppVersion&lt;/result&gt;"
else
echo "&lt;result&gt;Not installed&lt;/result&gt;"
fi

exit 0</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>
16 changes: 16 additions & 0 deletions Word_Version.xml
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 "&lt;result&gt;$AppVersion&lt;/result&gt;"
else
echo "&lt;result&gt;Not installed&lt;/result&gt;"
fi

exit 0</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>

0 comments on commit 4d03992

Please sign in to comment.