Skip to content

jamesfkane/jamf-api-scripts

Repository files navigation

jamf-api-scripts

get-activation-lock-bypass-code

Scrapes the Jamf console for activation lock bypass codes. Single devices can be pulled used the arguments -name (computer name), -id (device id). Multiple devices can be pulled using -csv (serial numbers).

get-device-lock-passcode

This contains two different scripts:

get-all-device-lock-passcodes.py

Scrapes the Jamf console for macOS device lock passcodes for all computers in your instance and outputs the serial number and lock code for devices that have received the lock command.

get-device-lock-passcode.py

Scrapes the Jamf console for macOS device lock passcodes based on a provided CSV using the -csv argument. The csv is required to have a column of serial numbers, with the header 'Serial Number'. The intent was to make this easy to use a CSV exported from the Jamf console.

get-prestage-serialnumbers

Gets serial numbers assigned to a PreStage Enrollment using the PreStage Enrollment id.

get-recovery-lock-password

Gets recovery lock passwords for devices by csv (serial numbers).

os-update

Sends MDM OS update command to devices by csv (serial numbers). Unable to get major OS updates to work, API request body needs to by modified.

recovery-lock

Lifted heavily from https://github.com/shbedev/jamf-recovery-lock, which should be used instead. I used this line to point the script to a specific smart group in Jamf that targeted the devices we wanted.

self-heal

Sends a Jamf binary self-heal to devices by csv (serial numbers).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages