Enrolling your Mac device to Intune is straightforward. In general, its a two-step process. First step is configuring the Apple MDM push certificate on the Intune admin center, and the second is Installing Company Portal app on the Mac.
During the macOS device enrollment through Company Portal App, there’s a step where you need to download and install a Management Profile on the device. The download of the Management Profile usually goes smoothly, but when you attempt to install it, an error message pops up, saying Profile Installation failed. The exact error message is:
Profile Installation Failed. Could not obtain the final profile using the Encrypted Profile Service. The credentials within your profile may have expired. Try downloading a new profile.
The error message indicates that the credentials within your profile might have expired and recommends downloading a new profile. However, even if you attempt this multiple times, whether by restarting the app or signing out and then signing back into the company portal app, you still encounter the same error message.
Table of Contents
Pre-Checks
- Make sure the Mac device is running macOS 11 and later.
- Make sure the User has been assigned an Intune License.
Possible Solutions
In addition to the above-mentioned checks, you should verify the following configuration on Intune admin center. Ensure that it’s set up correctly.
- Device platform restrictions policy.
- Apple MDM push certificate verification.
- Update .vmx Configuration file for macOS Virtual Machine [Only if you are enrolling a macOS Virtual Machine].
1. Device Platform Restrictions Settings for macOS
You can control which devices can enroll in Intune by setting up device enrollment restrictions in Microsoft Intune. If Personally owned Mac devices are not allowed to be registered with Intune, you may get a Profile Installation Failed error. Let’s check and verify this configuration.
- Sign in to the Intune admin center > Devices > Enrollment.
- Click on Device platform restrictions.
- Find a device type restrictions policy that applies to All users in your organization. Click on the hyperlink for all users to check the policy settings.
- Click on Properties and then Edit next to Platform settings to change the policy settings.
- Make sure that macOS under the Personally owned column is set to Allow.
2. Apple MDM Push Certificate Verification
To enroll a macOS device with Intune, ensuring that the Apple MDM Push certificate is configured correctly and not expired is important. To check its status, follow these steps:
- Sign in to the Intune admin center > Devices > Enrollment.
- Under the Apple tab, Click on the Apple MDM Push certificate
- Make sure the Status is showing as Active and the certificate is Not Expired.
3. Update .vmx Configuration file [Only When you are enrolling a macOS Virtual Machine]
Creating a macOS virtual machine using VMWare Workstation and enrolling it in Intune is possible. However, because it’s not an actual physical device, enrolling a macOS virtual machine in Intune presents some challenges. For example, you might encounter a Profile Installation failed error message when trying to install the management profile.
You can modify the .vmx file of the macOS virtual machine and enroll the device in Intune. You can follow these steps to resolve this issue:
- First, make sure your macOS Virtual Machine is turned off.
- Locate the Virtual Machine Installation folder within the VMWARE Workstation.
- Right-click on the VM, then click on Settings.
- In the Options tab, look for Working Directory.
- Inside the Working Directory, find the .vmx file in the Installation directory.
1. Update below line
board-id.reflectHost = "FALSE"
2. Add below lines at the end of the file
Copy and paste the lines below at the end of the .vmx file. Don’t worry about serial numbers or other details; add these lines as they are.
board-id = "Mac-AB95B1DDAB278B95" hw.model.reflectHost = "FALSE" hw.model = "MacBookPro19,1" serialNumber.reflectHost = "FALSE" serialNumber = "C04939388580" SMBIOS.use12CharSerialNumber = “TRUE”
- After powering up the Virtual Machine and signing in with your credentials, follow these steps:
- Click on the Apple logo located in the top-left corner.
- Select About This Mac.
You’ll notice that the device’s model has been changed from Mac to MacBook Pro, and the serial number has also been updated.
- Now, attempt to install the Management profile again. This time, it should install successfully. After the management profile is installed, you can verify it by following these steps:
- Go to System Settings.
- Select General.
- Click on Profiles.
- Double-click on the Management Profile to check its status.
Other Solutions for Profile Installation failed error [Only When you are enrolling a macOS Virtual Machine]
- If you’ve double-checked all macOS-related configurations in the Intune admin center and ensured the .vmx file is set up correctly but still encounter this error, you can attempt to test the Management profile installation on a physical macOS test device. If it works on the physical device, it confirms that the enrollment configuration in the Intune admin center is set up correctly.
- Another option is to delete all management profiles from your device, restart the device, and try to re-enroll it.
- To check and confirm the Management profiles on macOS, Go to System Settings > General > Profiles > Select the Management Profile you want to delete and then press delete on the keyboard. If multiple profiles exist, you can delete them too and try to re-enroll your device using the Company Portal App.
- If this does not work either, you can try to reset/reinstall MacOS from scratch and then try again.
Conclusion
This blog post explores various methods to resolve the failed Profile Installation error message when installing a Management profile on macOS. Review the Other Solutions for Profile Installation failed error section for additional troubleshooting steps to address this error.
If you are still facing this issue after following the troubleshooting steps in the blog post, you can create a ticket with Microsoft Support to check for any specific issues/solutions.
Excellent Jatin!! it has worked for me. Many thanks for this clear and well explained solution
Thank you so much for this post, Jatin! It worked for me (Enrolling VM MacOs in Intune)
Great read thanks, what do I do if I user Hyper-V?