From 4d03992a8eb95728f06ac9a4bc3c04e108b25414 Mon Sep 17 00:00:00 2001 From: Paul Bowden Date: Wed, 31 Jan 2018 06:25:01 -0800 Subject: [PATCH] Add files via upload --- Excel_Version.xml | 16 ++++++++++++++++ MAU_Channel.xml | 29 +++++++++++++++++++++++++++++ MAU_Version.xml | 16 ++++++++++++++++ OneNote_Version.xml | 16 ++++++++++++++++ Outlook_Version.xml | 16 ++++++++++++++++ PPT_Version.xml | 16 ++++++++++++++++ SfB_Version.xml | 16 ++++++++++++++++ Word_Version.xml | 16 ++++++++++++++++ 8 files changed, 141 insertions(+) create mode 100644 Excel_Version.xml create mode 100644 MAU_Channel.xml create mode 100644 MAU_Version.xml create mode 100644 OneNote_Version.xml create mode 100644 Outlook_Version.xml create mode 100644 PPT_Version.xml create mode 100644 SfB_Version.xml create mode 100644 Word_Version.xml diff --git a/Excel_Version.xml b/Excel_Version.xml new file mode 100644 index 0000000..30fdd23 --- /dev/null +++ b/Excel_Version.xml @@ -0,0 +1,16 @@ + +Excel_Version +Extension Attributes +Reports the installed version of Microsoft Excel for Mac +string +#!/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 + + diff --git a/MAU_Channel.xml b/MAU_Channel.xml new file mode 100644 index 0000000..2d9748a --- /dev/null +++ b/MAU_Channel.xml @@ -0,0 +1,29 @@ + +MAU_Channel +Extension Attributes +Reports the effective Channel of Microsoft AutoUpdate for Mac +string +#!/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 + + diff --git a/MAU_Version.xml b/MAU_Version.xml new file mode 100644 index 0000000..2ef6403 --- /dev/null +++ b/MAU_Version.xml @@ -0,0 +1,16 @@ + +MAU_Version +Extension Attributes +Reports the installed version of Microsoft AutoUpdate for Mac +string +#!/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 + + diff --git a/OneNote_Version.xml b/OneNote_Version.xml new file mode 100644 index 0000000..6031830 --- /dev/null +++ b/OneNote_Version.xml @@ -0,0 +1,16 @@ + +OneNote_Version +Extension Attributes +Reports the installed version of Microsoft OneNote for Mac +string +#!/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 + + diff --git a/Outlook_Version.xml b/Outlook_Version.xml new file mode 100644 index 0000000..91ce534 --- /dev/null +++ b/Outlook_Version.xml @@ -0,0 +1,16 @@ + +Outlook_Version +Extension Attributes +Reports the installed version of Microsoft Outlook for Mac +string +#!/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 + + diff --git a/PPT_Version.xml b/PPT_Version.xml new file mode 100644 index 0000000..cbed2d3 --- /dev/null +++ b/PPT_Version.xml @@ -0,0 +1,16 @@ + +PPT_Version +Extension Attributes +Reports the installed version of Microsoft PowerPoint for Mac +string +#!/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 + + diff --git a/SfB_Version.xml b/SfB_Version.xml new file mode 100644 index 0000000..cad7c24 --- /dev/null +++ b/SfB_Version.xml @@ -0,0 +1,16 @@ + +SfB_Version +Extension Attributes +Reports the installed version of Microsoft Skype for Business for Mac +string +#!/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 + + diff --git a/Word_Version.xml b/Word_Version.xml new file mode 100644 index 0000000..36397c8 --- /dev/null +++ b/Word_Version.xml @@ -0,0 +1,16 @@ + +Word_Version +Extension Attributes +Reports the installed version of Microsoft Word for Mac +string +#!/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 + +