Updating Office via MAU command line script problem

Dude
New Contributor

so I am trying to use the script below to automate updating Macs in my environment. Problem I am encountering is it can't find the app in the folder I am specifying, but if I run this script locally it will work, but I can't get it to work when I deploy it via jamf.

I have it set to ongoing frequency and available in self service so I can run the script manually.

does anyone see any issues with the script?

!/bin/bash

if [[ -f "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate" ]]; then

cd "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS"
sudo ./msupdate -i -a mswd15 xcel15 ppt315 opim15 onmc15 msfb16 -v 16.14.18061302

else
echo "File not found"
fi

1 REPLY 1

spalmer
Contributor III

Paul Bowden, from Microsoft, has created a script that is designed to work with Jamf Pro. It can be found at https://github.com/pbowden-msft/msupdatehelper.