Skip to content

AndrewMBarnett/ReEnroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ReEnroll

  

GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests

Macadmins Slack channel (#reenroll)

ReEnroll is designed to automate the re-enrollment process of devices into Jamf Pro. It is particularly useful in situations where the Jamf managed local administrator password is not correct, and it needs to be updated in Jamf Pro, or when other re-enrollment scenarios arise, such as updating device inventory or reassigning devices to different sites.

ReEnrollDeployFrameworkCheckIn

Features

  • Redeploy the Jamf Framework silently or with Dialog window to keep the end user informed on progress.
  • Jamf Pro re-enrollment: ReEnroll the device into Jamf Pro using an enrollment invitation.
  • Renew Profiles to re-enroll the device to your Jamf Pro instance.
  • Policy Check: Validates the policy status to ensure successful re-enrollment.
  • Inventory Check: Validates the inventory status to ensure successful re-enrollment and valid device signature, if re-enrolled.
  • LAPS Account Status Check: Integrates with Jamf Pro to validate the local administrator password status (LAPS) and update it if necessary.
  • Automatic Site Assignment: Reassigns devices to the correct site during the enrollment process by site ID.
  • Move Computers to a different site after enrolling by site ID.
  • Delete Specific Accounts: You can target specific user accounts to delete.
  • Send a Teams or Slack message after the script runs.

Prerequisites

If you are wanting to use the API calls in the script, you will need to setup a ReEnroll API account with the following privileges:

  • Read Computer Inventory Collection
  • Read Computer Check-In
  • Update Computers
  • Read Computers
  • Read Sites
  • Flush MDM Commands
  • Flush Policy Logs
  • Update Computer Inventory Collection
  • View Local Admin Password
  • Send Computer Remote Command to Install Package
  • Send Local Admin Password Command

Enrollment Invitation: You will need an enrollment invitation token, which can be generated from Jamf Pro. - (https:/company.jamfcloud.com/enroll?invitation=1542270881__;!!KwNVnq) (Invitation ID in this example would be: 1542270881)

If you use Renew Profiles variable, the device wasn't initially enrolled with preStage enrollment and the device is macOS 14 or higher. The end user will see the Automatic Device Enrollment window. You will want to verify the computer is in the correct group in your Apple Business/School Manager.

Considerations

If you do not have a Jamf managed local administrator account set, this script won't be able to create a new local admin account for the device. If you only setup a local administrator account using PreStage Enrollment, unfortunately this won't be able to fix that.

If you do decide to create a Jamf managed local administrator account, make sure you do not make the PreStage Enrollment administrator account the same username.

Local Administrator Password Solution for Jamf Pro

Warning: Do not use the same username for the managed local administrator account created in user-initiated enrollment settings and a managed local administrator account created in a PreStage enrollment. If the same username is used for both accounts, unexpected errors may occur during Automated Device Enrollment. In addition, the LAPS password will not be retrievable.

About

ReEnroll is designed to automate the re-enrollment process of devices into Jamf Pro.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages