Skip to content
Endpoint Management with Microsoft Intune

Kickstart macOS management with Intune

Part 19 of 45 in Endpoint Management with Microsoft Intune

Rainbow Apple logo with the Intune icon for macOS management

Introduction

The macOS journey with Intune is omnipresent and I can confirm, that now is the right time to check out what's possible and do some exploration. 🧭 This post will be about how to set up a macOS VM and manage it with Intune. I will walk through the key steps to get your Mac instance, enroll it into Intune and deploy policies and apps. If you are new with macOS and Intune, please check out my introduction post:

Kickstart macOS management with IntuneKickstart macOS management with Intune: set up a macOS VM, prepare Intune, enroll your Mac and apply first policies from ready-made templates.Oceanleaf · Niklas Tinner

Scenario

This scenario forsees, that we have a virtual macOS machine to enroll, deploy, monitor, manage and test out features with. I recommend a VM to have an isolated environment and break nothing productive and be more flexible.

Prerequisites

  • Mac device > MacBook or iMac
  • UTM as virtualization tool (it's free and open-source and easy to use 👍)
  • Intune tenant and the Intune admin role (if you are new to Intune check out my full series)
  • Intune plan 1

Guide

This part is divided in 4 chapters:

  1. Set up macOS virtualized machine 🎁
  2. Prepare management with Microsoft Intune ⚙️
  3. Enroll your Mac! 🚀
  4. Manage the Mac 💻

1. MacOS virtual Machine

Download and install UTM and create your new virtual machine (the setup is very simple and takes about 30 minutes):

UTM welcome screen on a Mac to create a new virtual machine

UTM option to virtualize or emulate a virtual machine

UTM operating system selection with macOS 12 or later, Windows and Linux

macOS virtual machine in UTM with its configuration summary

UTM virtual machine information settings for the macOS VM


2. Prepare management with Intune

When I start to prepare an Intune tenant for macOS, I go thorugh the following items:

  1. MDM scope, device settings and mobility - Entra ID related settings that configure and allow Intune as MDM for your users

Intune automatic enrollment settings with MDM user scope set to All

2. Device platform & limit restrictions - Configure device OS platform and enrollment limits

Intune macOS enrollment restriction allowing personally owned devices

3. Apple MDM Push Certificate (APNs) - Required to install the management profile and manage any Apple device

Configuring the Apple MDM push certificate for macOS enrollment in Intune

4. Create groups & filters - Create a group/filter where your Mac is automatically added to target policies and other contents

Entra dynamic group query

Code
(device.deviceOSType -eq "macMDM")

Intune filter query

Code
(device.model -contains "Mac")

5. Compliance policy - Check system health and status to be compliant and access corporate resources (to be combined with Conditional Access)

Intune macOS compliance policy with system integrity protection, password, encryption and firewall settings

6. Configuration profiles - Configure system aspects, look & feel

Intune macOS configuration profiles list and the settings catalog profile type

7. Deploy apps - Deploy different app types through to your endpoints

Intune macOS apps list and app type selection

8. Shell scripts (optional) - Run shell scripts to do anything you want

Intune macOS shell scripts list for Dock configuration and app installations

9. Custom attributes (optional) - Collect custom inventory data

Intune macOS custom attributes for battery cycles, Defender status and Gatekeeper


3. Enroll your Mac!

To enroll your Mac you need to:

  1. Download Company Portal on the Mac from aka.ms/enrollmymac
  2. Install Company Portal
  3. Launch Company Portal, sign in with your Entra account
  4. Go through the enrollment steps, including to install the management profile

Company Portal installation

Downloading the Intune Company Portal installer in Safari on a macOS VM

Intune Company Portal installer welcome screen on macOS

macOS installer asking for the administrator password to install the Intune Company Portal

Intune Company Portal installation completed successfully on macOS

Enrollment

Intune Company Portal sign-in screen on macOS

Microsoft Intune sign-in page in the Company Portal

Company Portal on macOS: set up organization access with the enrollment steps

Company Portal privacy information: what the organization can and cannot see on the Mac

Company Portal step to download and install the macOS management profile

macOS prompt to install the verified Intune management profile

Company Portal checking device settings against compliance and security policies


4. Manage the Mac

After the enrollment I recommend to restart the Mac to apply all policies (especially FileVault and password policy) succesful and get compliant. Next step is to perform remote actions and monitor the endpoint through Intune:

Enrolled macOS virtual machine in the Intune admin center with device actions

Intune device properties for a Mac with device ownership set to personal or corporate

Intune device configuration status of a Mac with Defender, FileVault and firewall profiles succeeded

Intune managed apps status on a Mac


Bonus: Intune - macOS repo

To kickstart your Intune management journey, I have created a little repo with some default Intune policies and profiles ready to import. Settings Catalog profiles can be imported directly and for the rest you need Graph or tools like IntuneManagement.

Oceanleaf/Intune macOS Templates at main · thenikk/OceanleafScripts & files for my blog. Contribute to thenikk/Oceanleaf development by creating an account on GitHub.GitHub · thenikk


Next steps

Here is some inspiration on next steps, that I will feature in the upcoming blog posts:

  • Set up Declarative Device Management (DDM) policies for updating
  • Add more configuration profiles/settings catalog (including SSO like Platform SSO)
  • Enroll the Mac into Defender for Endpoint
  • Deploy & package apps
  • Add scripts + custom attributes
  • Conditional Access integration

powered by

OceanleafTechnology blog on Microsoft Cloud. Learn about cutting edge tech, explained simply & straightforward in quality focused blog posts.Oceanleaf · Niklas Tinner

Related posts

Niklas Tinner

2x Microsoft MVP · Founder of Oceanleaf

Writes about AI, Intune, Entra, Defender and Global Secure Access.

LinkedIn