Skip to main content
Solved

Zoom Update

  • September 9, 2021
  • 16 replies
  • 58 views

rajrajan
Forum|alt.badge.img+6

Hi Everyone,

I need some help with the Zoom auto-update bash script for MacBook Pro/Air M1.

 

Does anyone manage to script the Zoom auto-update?

 

Thanks!

RJ

 

Best answer by greatkemo

Hello @rajrajan 

You can give my script a try if you like, it could be found the below link.

https://github.com/greatkemo/jamfPro/blob/master/macOS/Scripts/install_zoom_us.sh 

You can also create a smart group for outdated clients using the extension attribute the below link.

https://github.com/greatkemo/jamfPro/blob/master/macOS/ExtensionAttribute/zoom_us_extension_attribute.sh 

Then create a policy that is ongoing to execute the update script on clients that are in the outdated smart group.

Probably will be enough to set the frequency to once per client per week, and maybe limit it to evenings or weekends.

Let me know how it works out for you.

16 replies

Forum|alt.badge.img+9
  • Valued Contributor
  • 77 replies
  • Answer
  • September 14, 2021

Hello @rajrajan 

You can give my script a try if you like, it could be found the below link.

https://github.com/greatkemo/jamfPro/blob/master/macOS/Scripts/install_zoom_us.sh 

You can also create a smart group for outdated clients using the extension attribute the below link.

https://github.com/greatkemo/jamfPro/blob/master/macOS/ExtensionAttribute/zoom_us_extension_attribute.sh 

Then create a policy that is ongoing to execute the update script on clients that are in the outdated smart group.

Probably will be enough to set the frequency to once per client per week, and maybe limit it to evenings or weekends.

Let me know how it works out for you.


Forum|alt.badge.img+7
  • Contributor
  • 27 replies
  • November 17, 2021

@greatkemo I ran this script manually and under sudo it worked. When I pushed it through Self-Service it fails every time. Do I need to pass it variables? 


Forum|alt.badge.img+9
  • Valued Contributor
  • 77 replies
  • November 17, 2021

@greatkemo I ran this script manually and under sudo it worked. When I pushed it through Self-Service it fails every time. Do I need to pass it variables? 


@emptypony61 Do you have an error in message in policy?  Also, do you have PPPCs in place to allow for bash and sh to be run by jamf binary?


Forum|alt.badge.img+7
  • Contributor
  • 27 replies
  • November 18, 2021

@emptypony61 Do you have an error in message in policy?  Also, do you have PPPCs in place to allow for bash and sh to be run by jamf binary?


Weird this morning it just started working. No changes on my end. 


rajrajan
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 14 replies
  • February 8, 2022

Thank You!


Forum|alt.badge.img+3
  • New Contributor
  • 7 replies
  • April 26, 2022

Does this still work? I ran this on a Mac which is on 12.3.1 with an old version of Zoom, I get the helper pop up saying out of date and to update, but then it just ends the scripts, with this output;

 


Forum|alt.badge.img+7
  • Contributor
  • 27 replies
  • April 26, 2022

Does this still work? I ran this on a Mac which is on 12.3.1 with an old version of Zoom, I get the helper pop up saying out of date and to update, but then it just ends the scripts, with this output;

 


You have to uninstall the exist zoom and then run the script. It installs the ZoomIT.pkg which is the Zoom for IT. It is a different version of the client than the downloaded client. 


Forum|alt.badge.img+3
  • New Contributor
  • 7 replies
  • April 27, 2022

You have to uninstall the exist zoom and then run the script. It installs the ZoomIT.pkg which is the Zoom for IT. It is a different version of the client than the downloaded client. 


Thanks for the quick response, so if I understand. The script wont do anything if the end point has the downloaded client and not the ZoomIT Client? But if it has the ZoomIT client it will work as normal?

 


Forum|alt.badge.img+3
  • New Contributor
  • 7 replies
  • April 27, 2022

You have to uninstall the exist zoom and then run the script. It installs the ZoomIT.pkg which is the Zoom for IT. It is a different version of the client than the downloaded client. 


Also, I am seeing this error within Policy logs;

2022-04-27 13:57:36.260 jamfHelper[41363:1706814] XType: com.apple.fonts is not accessible. 2022-04-27 13:57:36.260 jamfHelper[41363:1706814] XType: XTFontStaticRegistry is enabled.

 

Any ideas?


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • August 25, 2022

This is what I am currently seeing in the Log details of the script in JAMF.

Script result: Info: Latest version:
Info: Installed version: 5.11.6.9890

Info: Zoom is not up-to-update

Info: Checking if zoom.us is running

Info: zoom.us is running

Info: Checking if a zoom meeting is in progress

Info: There are no zoom meetings in progress

Info: Zoom is installed, not up-to-date, running, no meetings in progress. 2022-08-25 13:34:28.702 jamfHelper[11122:1687383] XType: com.apple.fonts is not accessible. 2022-08-25 13:34:28.702 jamfHelper[11122:1687383] XType: XTFontStaticRegistry is enabled

Also, If the user clicks on Update does it close out the application? 


karthikeyan_mac
Forum|alt.badge.img+18
  • Honored Contributor
  • 284 replies
  • October 26, 2022

@greatkemo Your script was working till last version. Thank you for sharing it. 

 ZOOM_LATEST_VERSION in the script returns blank last few days. I think Zoom changed something in their https://zoom.us/download

Can you please check look into it? 

Thanks.


Forum|alt.badge.img+9
  • Valued Contributor
  • 77 replies
  • October 26, 2022

@greatkemo Your script was working till last version. Thank you for sharing it. 

 ZOOM_LATEST_VERSION in the script returns blank last few days. I think Zoom changed something in their https://zoom.us/download

Can you please check look into it? 

Thanks.


@karthikeyan_mac 

Yep, I have updated the script but never put the changes on GitHub, they have now been committed here https://github.com/greatkemo/jamfPro/blob/master/macOS/Scripts/install_zoom_us.sh 

The main changes are these variables:

ZOOM_PKG_NAME="ZoomInstallerIT.pkg" ZOOM_DOWNLOAD_URL=$(curl -si "https://zoom.us/client/latest/${ZOOM_PKG_NAME}" | awk '/location: /{print $2}' | tr -d '\\r') ZOOM_LATEST_VERSION=$(perl -pe '($_)=/([0-9]+([.][0-9]+)+)/' <<< "${ZOOM_DOWNLOAD_URL}") ZOOM_INSTALLED_VERSION=$(defaults read ${ZOOM_APP_PATH}/Contents/Info CFBundleVersion 2>/dev/null | sed -e 's/0 //g' -e 's/(//g' -e 's/)//g')

 

Hope this helps.

Kamal

 


karthikeyan_mac
Forum|alt.badge.img+18
  • Honored Contributor
  • 284 replies
  • October 27, 2022

Thank you @greatkemo It works.


Gonzalo
Forum|alt.badge.img+6
  • Contributor
  • 17 replies
  • November 7, 2022

@karthikeyan_mac 

Yep, I have updated the script but never put the changes on GitHub, they have now been committed here https://github.com/greatkemo/jamfPro/blob/master/macOS/Scripts/install_zoom_us.sh 

The main changes are these variables:

ZOOM_PKG_NAME="ZoomInstallerIT.pkg" ZOOM_DOWNLOAD_URL=$(curl -si "https://zoom.us/client/latest/${ZOOM_PKG_NAME}" | awk '/location: /{print $2}' | tr -d '\\r') ZOOM_LATEST_VERSION=$(perl -pe '($_)=/([0-9]+([.][0-9]+)+)/' <<< "${ZOOM_DOWNLOAD_URL}") ZOOM_INSTALLED_VERSION=$(defaults read ${ZOOM_APP_PATH}/Contents/Info CFBundleVersion 2>/dev/null | sed -e 's/0 //g' -e 's/(//g' -e 's/)//g')

 

Hope this helps.

Kamal

 


I have the latest version of the script and can't get it work. Zoom is running with no meetings in progress, and the popup appears and ask if I want to update. I press update. nothing happens. Zoom is still running.
ZoominstallerIT version is installed (5.12.0).

It works if Zoom is not running. Any ideas?


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • November 25, 2022

Hello @greatkemo , I was testing your extension attribute and I wanted to ask why is it showing as "Yes" in the field of a user when user doesn't have zoom installed, is it any additional condition missing?


RCRC74
Forum|alt.badge.img+3
  • New Contributor
  • 7 replies
  • November 30, 2022

I have the latest version of the script and can't get it work. Zoom is running with no meetings in progress, and the popup appears and ask if I want to update. I press update. nothing happens. Zoom is still running.
ZoominstallerIT version is installed (5.12.0).

It works if Zoom is not running. Any ideas?


I'm seeing this same thing.