My scripts for JAMF Pro are now on GitHub

I’ve been heavily involved in the implementation of my company’s JAMF Pro (a macOS system management tool) installation over the past year and one of the more powerful abilities of the JAMF system is to utilize shell scripting to expand its capabilities.

Now, I’m no coder but I can muddle my way through shell scripting pretty effectively and have used that skill to create a bunch of customizations for our system. Since the JAMF community is an open one where users share their work for others to use, I figured it was high-time I throw my hat in the ring and add what I can to the user community.

So I’ve posted a collection of scripts and “extension attributes” to my GitHub account (this also has the added benefit of giving me an excuse to finally try and figure out GitHub). There’s nothing really mind-blowing here but, hopefully, someone will find it useful or, at least, crib some code to do something better,

The initial collection, now available at https://github.com/chrisjscott/, includes:

Extension Attributes

  • batteryHealth.sh (updated from older scripts I’ve seen)
  • encryptionStatus.sh (using fdesetup, as diskutil no longer works w/ 10.13)
  • getSite.sh (stores assigned site so you can actually SEARCH on it!)
  • lastRestart.sh (I use this to spawn reminders toreboot after 30 days)
  • version-OmniGraffle.sh
  • version-SentinelOne.sh
  • version-Sketch.sh
  • version-SketchUp.sh
  • version-VMWareFusion.sh

Scripts

  • assignSite.sh (generates a pop-up and prompts for a site to assign to)
  • canonDuplexOff.sh (Canon printer drivers install w/ duplex on by default)
  • canonDuplexOn.sh
  • turnOffFieryNotifications.sh (for printers w/ Fiery RIPs)
  • checkForFrontApp.sh (use this to avoid running code when a user may be doing something, like presenting, that you don’t want to interrupt)
  • enrollmentCheck.sh (verifies system enrollment in JAMF, intended forSelf Service and as something to reassure end users)
  • uninstallMSOffice2011.sh

Read More

Hiding a user’s posts in Slack

Needless to say, I haven’t been updating this blog for a while now – I’ve been pre-occupied with my new job for the past year and am now getting to a point to where I feel like I have my feet on the ground again, so I’m looking forward to posting some new tips here going forward…

Amongst other things, the new job has thrown me head-first in to Slack, a tool I’ve long been aware of but haven’t had any practical need to use before now. It’s a great tool that can be a bear to manage and, in my opinion, has a long way to go to provide all of the message management tools one needs. The good news is that they, as an organization, are good listeners and and are working quickly to improve their toolset.

One of the things I’ve found myself wishing for was the ability to block posts from particular users – when you’re a member of a large(-ish) Slack team, you inevitably have one or two users who post to your channels who, frankly, post nothing of any value. While Slack does not offer this ability, I found something on GitHub that works like a champ: Happy Slack! is a Chrome extension that, with a little data digging, acts similarly to an ad blocker and will auto-remove posts from specified users.

It should go without saying that this only works if you’re using Slack via a web browser (as opposed to using the desktop client). If you aren’t doing this already, give it a go – the web interface is excellent and 95% of what’s offered by the desktop client.

Read More

Determine which installed apps are from the Mac App Store

Been a while, hasn’t it? I started a new job about five months ago that has me doing all sorts of new things, so I’ve been pretty busy. The good part is that I’m starting to develop a few little goodies and tricks to help me do this new job, like this one:

Need to figure out what apps in macOS’ /Applications directory were installed using the Mac App Store? Try this:

sudo find / -name _MASReceipt

Read More