nahrens007 / jamf-scripts

Repository for scripts used in Ashland University's Jamf environment.
5 stars 0 forks source link
api app autopkg bash jamf macos python requests restful script

jamf-scripts

Repository for scripts used in Ashland University's Jamf environment.

3rd Party Tools

Scripts to help with keeping 3rd Party Tools up to date. They require autopkg to be installed https://github.com/autopkg/autopkg

Requirements

Running

To run the scripts, just open terminal, navigate to the directory of the scripts, and enter "./updater_xxx.sh".

The file "generatePackages.sh" will run all of the updater and prepper scripts. All you need to do before hand is manually download the packages for the updater scripts (Audacity, FFMPEG, Lame, and Jing).

Download Jamf Scripts

This script will download all the scripts and extension attributes in the Jamf environment and place them in a folder that has the current date.

Requirements

If everything runs as expected, a new folder with the current date will be created in the same folder as the script, and all the scripts and script extension attributes from Jamf will be inside.

Bulk Mobile App Scoping

This application will allow one to easily bulk-scope mobile applications in Jamf.

This application will not tell you what the current scope arrangements are on applications, nor will this application remove a scope.

This application has the ability to add device groups or devices to the scope, or add device groups or devices to the exclusion scope.

The sole purpose of this app is to add to the scope or exclusion, it will not remove currently set scopes.

App Index Screen

Requirements

Computers in Jamf

This script provides various options for checking JSS to see if a computer is in Jamf by serial number. It can check an entire list of serials from a file, or one at a time through the command line or through an interactive mode.

Requirements

Running

The below is the help message for the script.

usage:      computersInJamf.py -h
usage:      computersInJamf.py -f <infile>
usage:      computersInJamf.py -i
usage:      computersInJamf.py -c <serial>

Description:
computersInJamf.py -h
    Prints this help message.
computersInJamf.py -f serials.txt
    Takes a file as input, parses through a list of serials from the file
    (one serial number on each line), and ouputs list of serials in Jamf or not in Jamf.
computersInJamf.py -i
    Starts interactive mode, useful for checking one serial number at a time.
computersInJamf.py -c XYZ1234
    Checks a serial number to see if it's in Jamf.