Skip to content

Instantly share code, notes, and snippets.

View jfiliceatcsumb's full-sized avatar

Jason Filice jfiliceatcsumb

  • CSUMB
  • 21:45 (UTC -07:00)
View GitHub Profile
@rocketman-pat
rocketman-pat / ListAllFileVaultEnabledUsersJamfEAScript.md
Last active July 24, 2025 00:11
Jamf EA Script for RCC's List All FileVault Enabled Users Tool

This script:

  1. Checks if the Rocketman tool is installed.
  2. Retrieves the backdoor admin username from a managed preferences plist file and uses it to fetch the password from the keychain via Rocketman.
  3. Handles potential errors during password retrieval, providing specific error messages for different scenarios (e.g., no password set, unknown errors).
  4. Returns the result in a format suitable for Jamf Pro inventory data.
#!/bin/zsh

# Define the username of the backdoor admin account
@talkingmoose
talkingmoose / Re-enroll computers for LAPS.zsh
Last active April 17, 2026 20:19
Use a Jamf Pro policy to re-enroll a computer to install a LAPS management account, and then create a launch daemon and script to update inventory immediately.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Technical Enablement Manager
Jamf
bill@talkingmoose.net
https://gist.github.com/talkingmoose/9f4638932df28c4bebde5dd47be1812a
@talkingmoose
talkingmoose / Monterey-compatible Macs (regex).txt
Last active February 5, 2023 18:45
Regex looks for all Mac models compatible with macOS Monterey. May not be up-to-date with newly released models.
Model information: https://support.apple.com/en-us/HT212551
Published Date: June 24, 2022
Verification: https://regex101.com/r/OozSRv/9
1) Regex matches major identifier — Matches major model identifier numbers based on Apple's knowledge base article (more accurate):
(^Mac1[34]|MacBook(10|9)|MacBookAir(10|[7-9])|Macmini[7-9]|MacPro[6-7]|iMacPro1|iMac(1[6-9]|2[0-2])),\d|MacBookPro1(1,[45]|[2-8],\d)
2) Regex matches current or higher — Matches model identifiers based on Apple's knowledge base article and may match higher versions before this regex is updated (more future-proof).
@talkingmoose
talkingmoose / MegaPKGr.zsh
Last active August 16, 2025 01:51
The pkgbuild binary and Jamf Composer don't support adding single files of 8 GB or more to a package. Some apps like Install macOS Big Sur.app include files larger than 8 GB in their bundles. This script will create a deployable PKG file from apps whose bundles include those large files.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Professional Services Engineer
Jamf
bill@talkingmoose.net
https://gist.github.com/e9ed319226c6da30dd633725e48a97b0
@talkingmoose
talkingmoose / Send Jamf Pro Command via API.sh
Created March 8, 2019 13:22
Sample script for sending a remote management command to multple Macs via the Jamf Pro API.
#!/bin/bash
# server connection information
URL="https://talkingmoose.jamfcloud.com"
userName="api-editor"
password="P@55w0rd"
command="EnableRemoteDesktop" # or "DisableRemoteDesktop"
# XML data to upload
THExml="<computer_command>