

These scripts are used for various purposes without the Jamf Pro API, but are generally optimized for distribution with Jamf Pro and in many cases for use with Self Service. APIrename will rename the computer again using the Asset Tag variable.This can be used to remove profiles, or prepare a machine to be re-imaged with an erase and install. APIremoveFromStaticGroup removes the computer the script is run on from a Jamf Pro Static Group by its ID via the API.

This can be used when erasing a system to prepare for reuse or resale.
#Jamf pro variables password
APIremoveFWPW removes a firmware password with a variable including the Asset Tag from the JSS, to be used in conjunction with the script to create.APIfirmware creates a firmware password with a variable including the Asset Tag from the JSS.APIchownAssignedUser in the event that permissions for a user's folder are not working, this will remotely run a chown (change owner) command to the registered owner's user folder.This is helpful for scoping policies to specific groups, and works well in conjunction with policies and profiles to be applied through Self Service APIaddtoStaticGroup adds the computer the script is run on to a Jamf Pro Static Group by its ID number via the API.APIaddAdmin adds the user registered in the JSS to the admin list.Then by using this information you can do customization based on information in your inventory already, or uploaded to inventory preload. Several scripts are using the Jamf API to pull data like the asset tag or assigned user. Some scripts which are not Jamf specific are now located in MacAdminScripts API Scripts I've added interactivity for testing the scripts in most cases so it will prompt if the variable is not passed. I reccomend customizing the fields in Jamf Admin to make it easier to create policies. Scripts I use to customize systems with parameters and API access.Īll scripts are using the $4, $5, $6 (etc) parameters as provided by Jamf Pro.
