Skip to content

io-grant/MDM-Migration-Checklist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAMF Migration Optimization Prep

A comprehensive shell script for automating the migration and optimization of JAMF deployments on macOS systems.

Features

  • Automated removal of management profiles (some may need admin credentials)
  • Azure MFA verification (may require assistance for disabling)
  • OneDrive sync and migration handling (requires MFA to be disabled)
  • Bulk application removal (applications can be added or removed via the script)
  • JAMF enrollment automation
  • System settings configuration
  • Self Service app installation

Prerequisites

  • Root access
  • macOS operating system
  • JAMF Pro environment
  • Azure account access
  • Administrative privileges

Installation

  1. Download the script to your local machine
  2. Make the script executable:
chmod +x /path/to/jamf_migration_prep.sh

Usage

Run the script with sudo privileges:

sudo ./jamf_migration_prep.sh

Script Flow

  1. Initialization

    • Validates root access
    • Sets up logging
    • Identifies logged-in user
  2. Profile Management

    • Removes existing management profiles
    • Verifies Azure MFA status
  3. Data Migration

    • Handles OneDrive sync issues
    • Ensures file migration to OneDrive
    • Removes OneDrive application
  4. Application Management

    • Removes specified applications
    • Handles special cases (TeamViewer, Zoom)
    • Empties trash
  5. JAMF Enrollment

    • Processes enrollment
    • Updates computer name
    • Configures Self Service options
  6. System Updates

    • Installs required applications
    • Updates macOS to latest version

Logging

The script maintains detailed logs at:

/var/log/jamf_migration_prep.log

Error Handling

  • Implements error catching and reporting
  • Uses set -e for immediate exit on errors
  • Includes custom error handling function

Version History

  • v1.7 (09/26/2024) - Latest version

Author

Grant Huiras (io-grant)

Notes

  • Ensure all data is backed up before running
  • Verify Azure account settings before migration
  • Monitor Self Service installations
  • Allow sufficient time for MDM server synchronization

About

Jamf Migration Optimization Prep

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages