Skip to content

Repository files navigation

MacOS Admin Scripts

Welcome to a collection of valuable scripts designed for Mac administrators. These scripts assist in performing a variety of tasks on macOS machines. Created with deployment in mind, they work seamlessly with Mobile Device Management (MDM) solutions like Intune, Jamf, and Kandji. Most scripts are adaptable for both local and remote execution via SSH. Some may require pre-existing software such as SwiftDialog, JamfHelper, Xcode, or AppleScript, and can be customized to fit specific needs.

Sharing tools and scripts is essential in the Mac admin community. Many of these scripts are adaptations or combinations of existing ones, and others are original creations. Feel free to modify, request, or contribute your own scripts. After all, it’s all about collaboration and community support.

Available Scripts

A comprehensive collection of scripts for installing various applications.

Scripts tailored for customizing or configuring specific applications.

A set of scripts designed for uninstalling different applications.

Scripts for disabling or uninstalling software and services.

Scripts specifically crafted for deployment via Jamf Pro.

Scripts focused on managing keychain, SSH, and certificates.

Scripts to assist with updating or upgrading macOS.

Scripts designed to help admins manage and communicate password requirements.

Scripts that provide tools and prompts for user and admin tasks.

A GUI tool that completely uninstalls an app and all its leftover files, with a user-reviewed checklist.

Featured Scripts

Completely uninstalls an app and all the leftover files it leaves behind. The user picks an app, reviews exactly what will be removed, and confirms — nothing is deleted without their OK.

Warns users when their password is nearing expiration.

Prompts users to upgrade macOS via the Install Assistant pkg, encouraging them to perform the upgrade.

Allows the local logged-in user to test their password, useful in SmartCard-enforced environments.

Recommends users to reboot their devices based on a maximum uptime setting.

Allows users to select their time zone.

Finds expired certificates in the login and System keychains, backs them up, and removes them. Runs as a Self Service item (the user reviews a checklist and confirms) or fully headless with no prompt.

Gathers log files from across the Mac (including Jamf, App Auto-Patch, and Installomator logs), zips them up, and drops the archive on the user's Desktop — ready to attach to a support ticket. Shows live progress and reveals the file in Finder.

How to Download and Execute Scripts

To get started, follow the detailed instructions in our How-To Guide. This guide covers the steps to download, configure, and execute the scripts effectively.

Preexisting Requirements

Certain scripts may require additional software:

  • Xcode: Required for compiling and running specific scripts.
  • SwiftDialog: Needed for scripts using SwiftDialog for graphical user prompts.
  • IBM Notifications: Necessary for scripts involving IBM notifications.

Questions, Concerns, and Requests

We welcome your feedback and encourage you to get involved:

  • Report Issues: Submit an issue on GitHub for bug reports or feature requests.
  • Join the Discussion: Engage with us on the Mac Admins Slack Channel for collaboration and insights.
  • Email: Contact us at cocopuff2u@yahoo.com for detailed inquiries or support.
  • Share Feedback: Your suggestions are crucial for continuous improvement. Please share your thoughts to help us enhance these scripts.
  • Fork and Fix: Interested in contributing? Fork the repository, make your modifications, and submit a pull request to improve the codebase.

About

macOS Admin Script/Tool Collection

Topics

Resources

Stars

23 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages