
- #JAMF API SCRIPTS HOW TO#
- #JAMF API SCRIPTS DRIVER#
- #JAMF API SCRIPTS PRO#
- #JAMF API SCRIPTS SOFTWARE#
Using an Extension Attribute in the Casper Suite, I have been able to achieve the following goals…
#JAMF API SCRIPTS SOFTWARE#
Thankfully, firmware updates are relatively infrequent compared to other Apple Software Updates. In the absence of a scriptable robot that can go around to users’ desks pressing buttons, this process is hard to automate. Unfortunately, firmware updates usually require physically touching a computer. People who have followed this blog will know that I like zero touch.
#JAMF API SCRIPTS PRO#
Author The Mac Admin Posted on JanuJanuCategories Jamf Pro, Scripts Leave a comment on Jamf Pro EA: Member of AD Group Casper Suite: Firmware Updates Extension AttributeĪs promised, here is the follow up to my previous post. The script can also be found on GitHub below. Membership=$(dscl /Active\ Directory/"$domain"/All\ Domains read /Users/$assignedUser dsAttrTypeNative:memberOf | egrep 'ADGroupX|ADGroupY') Response=$(curl -v -k -u apiComputerReadUsername:apiComputerReadPassword -H "Accept: application/xml" -H "Content-Type: application/xml" assignedUser=$(echo $response | xpath '/computer/location/username/text()' 2>/dev/null)ĭomain=$(dscl /Active\ Directory/ -read. SerialNumber=$(ioreg -l | awk -F'"' '/IOPlatformSerialNumber/ ') # In this example, the target groups are "ADGroupX" and "ADGroupY" # Is the user assigned to this computer a member of a given AD group or groups. This script can certainly be cleaned up a bit but does the job effectively.


#JAMF API SCRIPTS DRIVER#
Use the Upload PPD button to upload a copy of the driver file (from its original and proper location – do not upload a copy from another location such as a Desktop or Downloads folder).Enter the following CUPS data into the Jamf Pro printer object fields:.Navigate to Settings > Computer Management > Printers in your Jamf Pro instance.Select the printer’s queue name to view details.Navigate to Make note of the queue name.Open the Terminal application and enter cupsctl WebInterface=yes. Make note of the path to the driver file (in this example, /Library/Printers/PPDs/Contents/Resources/Kyocera\ FS-4200DN.ppd). If the printer requires a specific driver, be sure to select it when you add the printer, installing the driver on the Mac if necessary.

Configure the printer in Printers & Scanners Preferences according to the manufacturer’s and your organization’s requirements. Add The Printer to a Test Macīegin by adding the printer or print queue to a test Mac. In order to add a printer, we must first have several details collected from a Mac that has the printer configured.

If you are in a position to make decisions regarding how your organization deploys printers, it is strongly suggested to avoid legacy systems and only implement AirPrint-enabled devices and print servers. AirPrint requires no device configuration. Depending the details of your organization’s Jamf Pro implementation, it may already be problematic or impossible to make use of this application. Your organization has legacy printers and print servers and the Macs you manage need to have these printers and queues added.įor quite some time, there has been ‘writing on the wall’ to indicate that the Jamf Admin application (formerly Casper Admin) will eventually be deprecated.
#JAMF API SCRIPTS HOW TO#
Here, we’ll discuss how to add a deployable printer object to Jamf Pro via the web application.
