![]() ![]() csv file.Ī successful MDM lock should produce output similar to that shown below: csv file and lock the Mac in question using the PIN code listed in the. Use the variables in an API POST call to identify a Jamf Pro computer inventory record using the Jamf Pro ID listed in the.csv one at a time and assign the values of column 1 and column 2 to separate variables. csv file (this is the “Jamf Pro ID, PIN Code” line.) Once executed, the script will then do the following: path/to/Jamf_Pro_MDM_Device_Lock.sh /path/to/filename_goes_here.csv Once you have authentication handled, the script is designed to run as shown below: To store the account password in the plist file:ĭefaults write -info jamfpro_password account_password_goes_here To store the account username in the plist file:ĭefaults write -info jamfpro_user account_username_goes_here To store the Jamf Pro URL in the plist file:ĭefaults write -info jamfpro_url The plist file can be created by running the following commands and substituting your own values where appropriate: “ Jamf Pro ID, PIN Code” as the first lineįor authentication, the script can accept manual input or values stored in a ~/Library/Preferences/ file. csv file and use that information to send device lock commands to multiple Macs. ![]() To help make the task of sending MDM lock commands easier, I’ve written a script which uses the API command above to read input from a. If a message must appear on the lock screen, I recommend using the method described earlier for sending lock commands from the computer inventory record in the Jamf Pro admin console. Note: Using the API to send lock commands does have a limitation, where it is not possible to include a message to appear on the lock screen. usr/bin/curl -su mdmlock:correct_horse_Battery_Staple -H "Content-Type: application/xml" -X POST
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |