Fixing JAMF Renaming Script Issues

Recap

In a previous post I wrote about creating a script to rename a Mac using the barcode1 field within JAMF. Since then we’ve done a few deployments and noticed a few tweaks/changes in JAMF. This post will go over what’s new.

Use…


This content originally appeared on DEV Community and was authored by Blacknight318

Recap

In a previous post I wrote about creating a script to rename a Mac using the barcode1 field within JAMF. Since then we've done a few deployments and noticed a few tweaks/changes in JAMF. This post will go over what's new.

Users and Passwords

This came to me from another JAMF Pro user, at some point, JAMF had changed the minimum password length and disabled any accounts that didn't meet this requirement. We also decided to add read access API Integrations and API Roles. This wasn't a huge deal, but it did make troubleshooting the next issue more of a challenge.

Field Names and Variables

In the script we created, it calls fillable fields from JAMF, we used $4, $5, and $6. At some point it seems the field names in the script changed to variable names, this left the field names as $user instead of $5, etc. This was under Settings > Scripts > Options, after clearing the Parameters to default we can then change the fields under the Policies> Options > Scripts itself. With those out of the way, we should now be able to run the script.

Order of Operations

The last issue to tackle was a little trickier. We were seeing intermittent execution and completion of the script, we ruled out network issues and Prestage Enrollments. We finally narrowed it down to the script's priority within the policy. We changed it from after to before resolving the intermittent execution issue.

Wrapup

Correcting the Parameters fields, ensuring account permissions and passwords meet requirements, cleared up those issue. This is a good reminder to subscribe and read the Release Notes/Changelogs.

If you found this article helpful consider buying me a coffee. Till next time, fair winds and following seas.


This content originally appeared on DEV Community and was authored by Blacknight318


Print Share Comment Cite Upload Translate Updates
APA

Blacknight318 | Sciencx (2024-08-19T13:00:00+00:00) Fixing JAMF Renaming Script Issues. Retrieved from https://www.scien.cx/2024/08/19/fixing-jamf-renaming-script-issues/

MLA
" » Fixing JAMF Renaming Script Issues." Blacknight318 | Sciencx - Monday August 19, 2024, https://www.scien.cx/2024/08/19/fixing-jamf-renaming-script-issues/
HARVARD
Blacknight318 | Sciencx Monday August 19, 2024 » Fixing JAMF Renaming Script Issues., viewed ,<https://www.scien.cx/2024/08/19/fixing-jamf-renaming-script-issues/>
VANCOUVER
Blacknight318 | Sciencx - » Fixing JAMF Renaming Script Issues. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/19/fixing-jamf-renaming-script-issues/
CHICAGO
" » Fixing JAMF Renaming Script Issues." Blacknight318 | Sciencx - Accessed . https://www.scien.cx/2024/08/19/fixing-jamf-renaming-script-issues/
IEEE
" » Fixing JAMF Renaming Script Issues." Blacknight318 | Sciencx [Online]. Available: https://www.scien.cx/2024/08/19/fixing-jamf-renaming-script-issues/. [Accessed: ]
rf:citation
» Fixing JAMF Renaming Script Issues | Blacknight318 | Sciencx | https://www.scien.cx/2024/08/19/fixing-jamf-renaming-script-issues/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.