Reading Time: 3 minute read.

This post is going to be the fourth post regarding JumpCloud Commands in the last couple of weeks. This post is going to contain several commands to install a variety of different Mac utilities that I am using in my environment. I hope you find them all helpful.

Block macOS Catalina

The first command is a simple one to start. In my environment, we always run a major macOS version behind the latest version. So to block the new macOS Catalina update, set this as a command and let it run as Root once for every machine. This will stop the System Preferences icon lighting up to say there are updates.

softwareupdate --ignore "macOS Catalina"

Hide a User from the macOS Login window

The next command is to hide a user from the login window and /Users/ folder. The reason I use this is that I have a local admin setup on every machine. It just makes the whole device look cleaner when you are handing it to new starts if there the only user on the mac. You can still log in to it by typing the username and password in the dialogue box. To use this command change, the bit in bold to the account name of the user that you want to hide. Then run it once on each machine.

dscl . create /Users/username IsHidden 1; chflags hidden /Users/username

Install Slack for macOS

The next script follows a similar structure to the other commands I have posted. Creates a temp repo on the mac, downloads the latest version, mounts, installs, and removes the temp files. Simple but effective.

# Script to download, Silent Install and then clean up once installed Slack # Writen by twitter.com/richhickson # www.RichardHickson.com #Make temp folder for downloads. mkdir "/tmp/slack/"; cd "/tmp/slack/"; #Remove Old Version of Slack sudo rm -rf /Applications/Slack.app/ #Download Slack. curl -L -o /tmp/slack/slack.dmg "https://slack.com/ssb/download-osx"; #Mount DMG hdiutil attach /tmp/slack/slack.dmg; #Copy App to Applications sudo cp -R "/Volumes/Slack.app/Slack.app" /Applications; #Unmount DMG hdiutil detach /Volumes/Slack.app; #tidy up sudo rm -rf "/tmp/slack";

Install Google Drive File Stream for macOS

Again following the same structure as previous posts. This command will download, mount, install, and tidy up a Google Drive File Stream install on macOS. Perfect for provisioning new machines

# Script to download, Silent Install and then clean up once installed Google DrivE FileStream # Writen by twitter.com/richhickson # www.RichardHickson.com #Make temp folder for downloads. mkdir "/tmp/filestream/"; cd "/tmp/filestream/"; #Download filestream. curl -L -o /tmp/filestream/GoogleDriveFileStream.dmg "https://dl.google.com/drive-file-stream/GoogleDriveFileStream.dmg"; #Mount, Install, and unmount GoogleDriveFileStream.dmg hdiutil mount GoogleDriveFileStream.dmg; sudo installer -pkg /Volumes/Install\ Google\ Drive\ File\ Stream/GoogleDriveFileStream.pkg -target "/Volumes/Macintosh HD"; hdiutil unmount /Volumes/Install\ Google\ Drive\ File\ Stream/; #Tidy up sudo rm -rf /tmp/filestream/

Install Zoom

Zoom is one of the most widely used video conferencing software. It is installed on every machine in my estate as it is used a lot. This script, as before, simply downloads it installs and then tidies up at the end.

# Script to download, Silent Install and then clean up once installed Zoom # Writen by twitter.com/richhickson # www.RichardHickson.com #Make temp folder for downloads. mkdir "/tmp/zoom/"; cd "/tmp/zoom/"; #Download Zoom. curl -L -o /tmp/zoom/zoom.pkg "https://zoom.us/client/latest/ZoomInstallerIT.pkg"; #install Zoom sudo installer -pkg /private/tmp/zoom/zoom.pkg -target /; #tidy up sudo rm -rf "/tmp/zoom";

Install Keka

Keka is our compression software of choice; as above its simply downloaded, installed, and removed the temp files at the end.

# Script to download, Silent Install and then clean up once installed Keka # Writen by twitter.com/richhickson # www.RichardHickson.com # Make temp folder for downloads. mkdir "/tmp/keka/"; cd "/tmp/keka/"; #Download Keka. curl -L -o /tmp/keka/keka.dmg "https://d.keka.io/"; #Mount DMGs hdiutil attach /tmp/keka/keka.dmg; #Copy App to Applications sudo cp -R "/Volumes/Keka/Keka.app" /Applications; #Unmount DMG hdiutil detach /Volumes/Keka; #Remove Temp Files sudo rm -rf "/tmp/keka/";

As always if there are any other commands, you would like me to write, and test don’t hesitate to leave a comment or find me on twitter.com