Skip to content

Script to help migrate from one Jamf server to another Jamf server.

Notifications You must be signed in to change notification settings

PezzaD84/Jamf-Device-Migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Jamf Device Migrator

This script will help to Enrol devices into a new Jamf instance without the need of wiping the device.

It was created for the purpose of migrating on-prem Jamf instances to JamfCloud instances. It can be used to go from cloud to on-prem, on-prem to on-prem or cloud to cloud. It is not limited to one way.

This script could easily be modified to remove MDM profiles from other solutions other than Jamf if needed. Look at lines 102 and 112 which are the commands to remove Jamf. These could be replaced to remove another solutions MDM and local client.

Setup

You will need DEPNotify installed on devices for this script to work. Set up a policy to do this before the script is run. You can download it here https://files.nomad.menu/DEPNotify.pkg

There is a check in the script to install DEPNotify from Jamf if it is not installed. It needs a policy created with a custom trigger of installDEPNotify.

you will need to install a PPPC Profile to allow terminal to send finder and system event requests. You can download the profile here https://github.com/PezzaD84/PPPC-Terminal upload it to your old existing Jamf instance and scope to all devices.

This process needs an account setup in the new Jamf instance with only Enrollment access. This needs to be added to the custom variables in the script.

Upload the script to your old existing Jamf instance and set the custom variables in the script for your Company (Between Lines 10-28).

Migration Flow

The Migration goes through a few steps as follows.

  • Remove Old MDM Profile
  • Remove Old Jamf Framework
  • Enroll in new Jamf Instance
  • Check for Jamf Connect (Optional)
  • Remove Local admin rights (Optional)
  • Log user out

The user will see the following screens while the migration is happening.

Start Screen

Screenshot 2022-07-11 at 09 38 55

MDM Removal

Screenshot 2022-07-11 at 09 40 40

JAMF Framework Removal

Screenshot 2022-07-11 at 09 40 50

Enrollment Details Screen

Screenshot 2022-07-11 at 09 41 02

Enrollment Details pop-up

Screenshot 2022-07-14 at 11 52 49

Enrollment Website in Safari

Screenshot 2022-07-11 at 09 46 48

MDM Approval notification

Screenshot 2022-07-14 at 11 55 22

Final Migration Checks

Screenshot 2022-07-11 at 09 41 31

Completion Screen

Screenshot 2022-07-11 at 09 47 06

Releases

No releases published

Packages

No packages published

Languages