I wrote a quick script after a request from a reader for a script on installing Teamviewer via JumpCloud Commands on macOS. (As usual, normal disclaimer applies (I take no responsibility for anything this script may do to your machines/network/life etc etc Use at your own risk.)
One thing to note, this will install TeamViewer. However, it will not bypass the macOS security gatekeeper which does currently still require manual intervention. I am looking into this using the JumpCloud MDM and will update this post once its working.
# Script to download, Silent Install and then clean up once installed Teamviewer # Writen by twitter.com/richhickson # www.RichardHickson.com #Make temp folder for downloads. mkdir "/tmp/teamviewer/"; cd "/tmp/teamviewer/"; #Download TeamViewer. curl -L -o /tmp/teamviewer/teamviewer.dmg "https://download.teamviewer.com/download/TeamViewer.dmg"; #Mount DMG hdiutil attach /tmp/teamviewer/teamviewer.dmg; #Install Teamviewer sudo installer -pkg "/Volumes/TeamViewer/Install TeamViewer.pkg" -target /; #Unmount DMG hdiutil detach /Volumes/TeamViewer; #Remove Temp Files sudo rm -rf "/tmp/teamviewer/";
Thanks for your post, it’s very actual