Skip to content

Instantly share code, notes, and snippets.

View MichaelandMore's full-sized avatar

MichaelandMore

  • University od Basel
  • Basel
View GitHub Profile
@MichaelandMore
MichaelandMore / Set Computer PreStage Scope.bash
Last active November 14, 2023 02:18 — forked from talkingmoose/Set Computer PreStage Scope.bash
JAMF Pro API: This script removes a list of machines from one PreStage Enrollment and adds them to another
#!/bin/bash
#This script removes a list of machines from one PreStage Enrollment and adds them to another
#Checks are applied to see if all machines are able to move between these two PreStages as intended
#This should help keeping track
#
#standing on the shoulders of giants:
#https://community.jamf.com/t5/jamf-pro/creating-an-authorization-token-with-jamf-pro-api-help-would-be/m-p/186172
#https://developer.jamf.com/jamf-pro/reference/computer-prestages-1#put_v2-computer-prestages-id-scope
#https://gist.github.com/talkingmoose/327427d23b422000f9d17183f8ef1d22
###Thank you very much ####