title | titleSuffix | description | keywords | author | ms.author | manager | ms.date | ms.topic | ms.service | ms.localizationpriority | ms.technology | ms.assetid | ROBOTS | ms.reviewer | ms.suite | search.appverid | ms.custom | ms.collection |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Troubleshoot device enrollment |
Microsoft Intune |
Suggestions for troubleshooting device enrollment issues in Microsoft Intune. |
ErikjeMS |
erikje |
dougeby |
11/09/2018 |
troubleshooting |
microsoft-intune |
high |
6982ba0e-90ff-4fc4-9594-55797e504b62 |
NOINDEX,NOFOLLOW |
damionw |
ems |
MET150 |
intune-classic, seoapril2019 |
M365-identity-device-management |
This article provides suggestions for troubleshooting device enrollment issues. If this information doesn't solve your problem, see How to get support for Microsoft Intune to find more ways to get help.
Before you begin troubleshooting, check to make sure that you've configured Intune properly to enable enrollment. You can read about those configuration requirements in:
- Get ready to enroll devices in Microsoft Intune
- Set up iOS and Mac device management
- Set up Windows device management
- Set up Android device management - No additional steps required
You can also make sure that the time and date on the user's device are set correctly:
- Restart the device.
- Make sure that the time and date are set close to GMT standards (+ or - 12 hours) for the end user's time zone.
- Uninstall and reinstall the Intune company portal (if applicable).
Your managed device users can collect enrollment and diagnostic logs for you to review. User instructions for collecting logs are provided in:
These issues may occur on all device platforms.
Issue: A user receives an error during enrollment (like Company Portal Temporarily Unavailable) and the DMPdownloader.log on Configuration Manager contains the error DeviceCapReached.
Resolution:
Check to see that the user isn't assigned more than the maximum number of devices by following these steps:
-
In Intune, choose Device enrollment > Enrollment restrictions > Device limit restrictions. Note the value in the Device limit column.
-
In Intune, choose Users > All users > select the user > Devices. Note the number of devices.
-
If the user's number of enrolled devices already equals their device limit restriction, they can't enroll any more until:
- Existing devices are removed, or
- You increase the device limit by setting device restrictions.
To avoid hitting device caps, be sure to remove stale device records.
Note
You can avoid the device enrollment cap by using Device Enrollment Manager account, as described in Enroll corporate-owned devices with the Device Enrollment Manager in Microsoft Intune.
A user account that is added to Device Enrollment Managers account will not be able to complete enrollment when Conditional Access policy is enforced for that specific user login.
Issue: Users receive a Company Portal Temporarily Unavailable error on their device.
Resolution:
-
Remove the Intune Company Portal app from the device.
-
On the device, open the browser, browse to https://portal.manage.microsoft.com, and try a user login.
-
If the user fails to sign in, they should try another network.
-
If that fails, validate that the user’s credentials have synced correctly with Azure Active Directory.
-
If the user successfully logs in, an iOS device will prompt you to install the Intune Company Portal app and enroll. On an Android device, you'll need to manually install the Intune Company Portal app, after which you can retry enrolling.
Issue: A user receives an MDM authority not defined error.
Resolution:
-
Verify that the MDM Authority has been set appropriately.
-
Verify that the user’s credentials have synced correctly with Azure Active Directory. You can verify that the user's UPN matches the Active Directory information in the Microsoft 365 admin center. If the UPN doesn't match the Active Directory information:
-
Turn off DirSync on the local server.
-
Delete the mismatched user from the Intune Account Portal user list.
-
Wait about one hour to allow the Azure service to remove the incorrect data.
-
Turn on DirSync again and check if the user is now synced properly.
-
-
In a scenario where you're using System Center Configuration Manager with Intune, verify that the user has a valid Cloud User ID:
-
Open SQL Management Studio.
-
Connect to the appropriate DB.
-
Open the databases folder and find and open the CM_DBName folder, where DBName is the name of the customer database.
-
At the top, choose New Query and execute the following queries:
-
To see all users:
select * from [CM_ DBName].[dbo].[User_DISC]
-
To see Specific Users, use the following query, where %testuser1% is a placeholder for [email protected] for the user you want to look up:
select * from [CM_ DBName].[dbo].[User_DISC] where User_Principal_Name0 like '%testuser1%'
After writing the query, choose !Execute. Once the results have been returned, look for the clouduser ID. If no ID is found, the user isn't licensed to use Intune.
-
-
Issue: You can't create policy or enroll devices.
Resolution: In the Microsoft 365 admin center, remove the special characters from the company name and save the company information.
Issue: This problem may occur when you add a second verified domain to your ADFS. Users with the user principal name (UPN) suffix of the second domain may not be able to log into the portals or enroll devices.
Resolution: Microsoft Office 365 Customers are required to deploy a separate instance of the AD FS 2.0 Federation Service for each suffix if they:
- use single sign-on (SSO) through AD FS 2.0, and
- have multiple top-level domains for users' UPN suffixes within their organization (for example, @contoso.com or @fabrikam.com).
A rollup for AD FS 2.0 works in conjunction with the SupportMultipleDomain switch to enable the AD FS server to support this scenario without requiring additional AD FS 2.0 servers. For more information, see this blog.
The following table lists errors that end users might see while enrolling Android devices in Intune.
Error message | Issue | Resolution |
---|---|---|
IT admin needs to assign license for access Your IT admin hasn't given you access to use this app. Get help from your IT admin or try again later. |
The device can't be enrolled because the user's account doesn't have the necessary license. | Before users can enroll their devices, they must have been assigned the necessary license. This message means that they have the wrong license type for the mobile device management authority. For example, they'll see this error if both of the following are true:
|
IT admin needs to set MDM authority Looks like your IT admin hasn't set an MDM authority. Get help from your IT admin or try again later. |
The mobile device management authority hasn't been defined. | The mobile device management authority hasn't been set in Intune. See information about how to set the mobile device management authority. |
Devices fail to check in with the Intune service and display as "Unhealthy" in the Intune admin console
Issue: Some Samsung devices that are running Android versions 4.4.x and 5.x might stop checking in with the Intune service. If devices don't check in:
- They can't receive policy, apps, and remote commands from the Intune service.
- They show a Management State of Unhealthy in the administrator console.
- Users who are protected by Conditional Access policies might lose access to corporate resources.
Samsung Smart Manager software, which ships on certain Samsung devices, can deactivate the Intune Company Portal and its components. When the Company Portal is in a deactivated state, it can't run in the background and can't contact the Intune service.
Resolution #1:
Tell your users to start the Company Portal app manually. Once the app restarts, the device checks in with the Intune service.
Important
Opening the Company Portal app manually is a temporary solution, because Samsung Smart Manager may deactivate the Company Portal app again.
Resolution #2:
Tell your users to try upgrading to Android 6.0. The deactivation issue doesn't occur on Android 6.0 devices. To check if an update is available, go to Settings > About device > Download updates manually > follow the prompts.
Resolution #3:
If Resolution #2 doesn't work, have your users follow these steps to make Smart Manager exclude the Company Portal app:
-
Launch the Smart Manager app on the device.
-
Choose the Battery tile.
-
Under App power saving or App optimization, select Detail.
-
Choose Company Portal from the list of apps.
-
Choose Turned off.
-
Under App power saving or App optimization, confirm that Company Portal is turned off.
Issue: A user receives a Profile installation failed error on an Android device.
Resolution:
-
Confirm that the user is assigned an appropriate license for the version of the Intune service that you're using.
-
Confirm that the device isn't already enrolled with another MDM provider.
-
Confirm that the device doesn't already have a management profile installed.
-
Confirm that Chrome for Android is the default browser and that cookies are enabled.
Issue: Users receive the following message on their device: You can't sign in because your device is missing a required certificate.
Resolution 1:
The user might be able to retrieve the missing certificate by following the instructions in Your device is missing a required certificate. If the error persists, try Resolution 2.
Resolution 2:
After entering their corporate credentials and getting redirected for federated login, users might still see the missing certificate error. In this case, the error may mean that an intermediate certificate is missing from your Active Directory Federation Services (AD FS) server
The certificate error occurs because Android devices require intermediate certificates to be included in an SSL Server hello. Currently, a default AD FS server or WAP - AD FS Proxy server installation sends only the AD FS service SSL certificate in the SSL server hello response to an SSL Client hello.
To fix the issue, import the certificates into the Computers Personal Certificates on the AD FS server or proxies as follows:
- On the ADFS and proxy servers, right-click Start > Run > certlm.msc to launch the Local Machine Certificate Management Console.
- Expand Personal and choose Certificates.
- Find the certificate for your AD FS service communication (a publicly signed certificate), and double-click to view its properties.
- Choose the Certification Path tab to see the certificate’s parent certificate/s.
- On each parent certificate, choose View Certificate.
- Choose Details > Copy to file….
- Follow the wizard prompts to export or save the public key of the parent certificate to the a file location of your choice.
- Right-click Certificates > All Tasks > Import.
- Follow the wizard prompts to import the parent certificate(s) to Local Computer\Personal\Certificates.
- Restart the AD FS servers.
- Repeat the above steps on all of your AD FS and proxy servers.
To verify a proper certificate installation, you can use the diagnostics tool available on https://www.digicert.com/help/. In the Server Address box, enter your ADFS server’s FQDN (IE: sts.contso.com) and click Check Server.
To validate that the certificate installed correctly:
The follow steps describe just one of many methods and tools that you can use to validate that the certificate installed correctly.
- Go to the free Digicert tool.
- Enter your AD FS server’s fully qualified domain name (for example, sts.contoso.com) and select CHECK SERVER.
If the Server certificate is installed correctly, you see all check marks in the results. If the problem above exists, you see a red X in the "Certificate Name Matches" and the “SSL Certificate is correctly Installed” sections of the report.
The following table lists errors that end users might see while enrolling iOS devices in Intune.
Error message | Issue | Resolution |
---|---|---|
NoEnrollmentPolicy | No enrollment policy found | Check that all enrollment prerequisites, like the Apple Push Notification Service (APNs) certificate, have been set up and that "iOS as a platform" is enabled. For instructions, see Set up iOS and Mac device management. |
DeviceCapReached | Too many mobile devices are enrolled already. | The user must remove one of their currently enrolled mobile devices from the Company Portal before enrolling another. See the instructions for the type of device you're using: Android, iOS, Windows. |
APNSCertificateNotValid | There's a problem with the certificate that lets the mobile device communicate with your company’s network. |
The Apple Push Notification Service (APNs) provides a channel to contact enrolled iOS devices. Enrollment will fail and this message will appear if:
|
AccountNotOnboarded | There's a problem with the certificate that lets the mobile device communicate with your company’s network. |
The Apple Push Notification Service (APNs) provides a channel to contact enrolled iOS devices. Enrollment will fail and this message will appear if:
|
DeviceTypeNotSupported | The user might have tried to enroll using a non-iOS device. The mobile device type that you're trying to enroll isn't supported. Confirm that device is running iOS version 8.0 or later. |
Make sure that your user's device is running iOS version 8.0 or later. |
UserLicenseTypeInvalid | The device can't be enrolled because the user's account isn't yet a member of a required user group. |
Before users can enroll their devices, they must be members of the right user group. This message means that they have the wrong license type for the mobile device management authority. For example, they'll see this error if both of the following are true:
Review Set up iOS and Mac management with Microsoft Intune and information about how to set up users in Sync Active Directory and add users to Intune and organizing users and devices. |
MdmAuthorityNotDefined | The mobile device management authority hasn't been defined. |
The mobile device management authority hasn't been set in Intune. Review item #1 in the "Step 6: Enroll mobile devices and install an app" section in Get started with a 30-day trial of Microsoft Intune. |
Issue: iOS devices aren’t checking in with the Intune service. Devices must check in periodically with the service to maintain access to protected corporate resources. If devices don’t check in:
- They can't receive policy, apps, and remote commands from the Intune service.
- They show a Management State of Unhealthy in the administrator console.
- Users who are protected by Conditional Access policies might lose access to corporate resources.
Resolution: Share the following resolutions with your end users to help them regain access to corporate resources.
When users start the iOS Company Portal app, it can tell if their device has lost contact with Intune. If it detects that there's no contact, it automatically tries to sync with Intune to reconnect (users will see the Trying to sync… message).
If the sync is successful, you see a Sync successful inline notification in the iOS Company Portal app, indicating that your device is in a healthy state.
If the sync is unsuccessful, users see an Unable to sync inline notification in the iOS Company Portal app.
To fix the issue, users must select the Set up button, which is to the right of the Unable to sync notification. The Set up button takes users to the Company Access Setup flow screen, where they can follow the prompts to enroll their device.
Once enrolled, the devices return to a healthy state and regain access to company resources.
Issue Device Enrollment Program (DEP) iOS devices can't be enrolled
Enrolling DEP devices with user affinity requires WS-Trust 1.3 Username/Mixed endpoint to be enabled to request user tokens. Active Directory enables this endpoint by default. To get a list of enabled endpoints, use the Get-AdfsEndpoint PowerShell cmdlet and looking for the trust/13/UsernameMixed endpoint. For example:
Get-AdfsEndpoint -AddressPath “/adfs/services/trust/13/UsernameMixed”
For more information, see Get-AdfsEndpoint documentation.
For more information, see Best practices for securing Active Directory Federation Services. For help in determining if WS-Trust 1.3 Username/Mixed is enabled in your identity federation provider:
- contact Microsoft Support if you use ADFS
- contact your third party identity vendor.
Issue: A user receives a Profile installation failed error on an iOS device.
-
Confirm that the user is assigned an appropriate license for the version of the Intune service that you're using.
-
Confirm that the device isn't already enrolled with another MDM provider.
-
Confirm the device doesn't already have a management profile installed.
-
Navigate to https://portal.manage.microsoft.com and try to install the profile when prompted.
-
Confirm that Safari for iOS is the default browser and that cookies are enabled.
Enrolled iOS device doesn't appear in console when using System Center Configuration Manager with Intune
Issue: User enrolls iOS device but it doesn't appear in the Configuration Manager admin console. The device doesn't indicate that it's been enrolled. Possible causes:
- The Microsoft Intune Connector in your Configuration Manager site isn't communicating with the Intune service.
- Either the Data Discovery Manager (ddm) component or the State Manager (statmgr) component isn't processing messages from the Intune service.
- You may have downloaded the MDM certificate from one account and used it on another account.
Resolution: Review the following log files for possible errors:
- dmpdownloader.log
- ddm.log
- statmgr.log
Examples will be added soon about what to look for in these log files.
Issue: An enrolling device may get stuck in either of two screens:
- Awaiting final configuration from “Microsoft”
- Guided Access app unavailable. Please contact your administrator.
This issue can happen if:
- there's a temporary outage with Apple services, or
- iOS enrollment is set to use VPP tokens as shown in the table but there's something wrong with the VPP token.
Enrollment settings | Value |
---|---|
Platform | iOS |
User Affinity | Enroll with User Affinity |
Authenticate with Company Portal instead of Apple Setup Assistant | Yes |
Install Company Portal with VPP | Use token: token address |
Run Company Portal in Single App Mode until authentication | Yes |
Resolution: To fix the problem, you must:
- Determine if there's something wrong with the VPP token and fix it.
- Identify which devices are blocked.
- Wipe the affected devices.
- Tell the user to restart the enrollment process.
- Go to Intune > Device enrollment > Apple enrollment > Enrollment program tokens > token name > Profiles > profile name > Manage > Properties.
- Review the properties to see if any errors similar to the following appear:
- This token has expired.
- This token is out of Company Portal licenses.
- This token is being used by another service.
- This token is being used by another tenant.
- This token was deleted.
- Fix the issues for the token.
- Go to Intune > Device enrollment > Apple enrollment > Enrollment program tokens > token name > Devices.
- Filter the Profile status column by Blocked.
- Make a note of the serial numbers for all the devices that are Blocked.
After you’ve fixed the issues with the VPP token, you must wipe the devices that are blocked.
- Go to Intune > Devices > All devices > Columns > Serial number > Apply.
- For each blocked device, choose it in the All devices list and then choose Wipe > Yes.
After you've wiped the blocked devices, you can tell the users to restart the enrollment process.
Error message 1: It looks like you're using a virtual machine. Make sure you've fully configured your virtual machine, including serial number and hardware model. If this isn't a virtual machine, please contact support.
Error message 2: We’re having trouble getting your device managed. This problem could be caused if you're using a virtual machine, have a restricted serial number, or if this device is already assigned to someone else. Learn how to resolve these problems or contact your company support.
Issue: This message could be a result of any of the following reasons:
- A macOS virtual machine (VM) isn't configured correctly
- You've enabled device restrictions that require the device to be corporate-owned or have a registered device serial number in Intune
- The device has already been enrolled and is still assigned to someone else in Intune
Resolution: First, check with your user to determine which of the issues affects their device. Then complete the most relevant of the following solutions:
-
If the user is enrolling a VM for testing, make sure it's been fully configured so that Intune can recognize its serial number and hardware model. Learn more about how to set up VMs in Intune.
-
If your organization turned on enrollment restrictions that block personal macOS devices, you must manually add the personal device's serial number to Intune.
-
If the device is still assigned to another user in Intune, its former owner did not use the Company Portal app to remove or reset it. To clean up the stale device record from Intune:
- Go to Intune in the Azure portal and sign in with your administrative credentials.
- Go to Intune > Devices > All devices.
- Find the device with the enrollment problem. Search by device name or MAC/HW Address to narrow your results.
- Select the device > Delete. Delete all other entries associated with the device.
Issue: After successfully enrolling a mobile device to Configuration Manager, it disappears from the mobile device collection. However, the device still has the Management Profile and is listed in CSS Gateway.
Resolution: This issue may occur because:
- You have a custom process removing non-domain-joined devices, or
- the user has retired the device from the subscription. To validate and check which process or user account removed the device from the Configuration Manager console, perform the following steps.
-
In the Configuration Manager admin console, select Monitoring > System Status > Status Message Queries.
-
Right-click Collection Member Resources Manually Deleted and select Show Messages.
-
Pick an appropriate time/date or the last 12 hours.
-
Find the device in question and review how the device was removed. The Example below shows that the account SCCMInstall deleted the device via an Unknown Application.
-
Check that Configuration Manager doesn't have a scheduled task, script, or other process, which could be automatically purging non-domain, mobile, or related devices.
A list of iOS enrollment errors is provided in our documentation, in Troubleshooting iOS device enrollment problems in Microsoft Intune.
Error message | Issue | Resolution |
---|---|---|
IT admin needs to assign license for access Your IT admin hasn't given you access to use this app. Get help from your IT admin or try again later. |
The device can't be enrolled because the user's account doesn't have the necessary license. | Before users can enroll their devices, they must have been assigned the necessary license. This message means that they have the wrong license type for the mobile device management authority. For example, they'll see this error if both of the following are true:
|
Issue: Enrollment fails with the error The machine is already enrolled. The enrollment log shows error hr 0x8007064c.
This failure may occur because the computer:
- was previously enrolled, or
- has the cloned image of a computer that was already enrolled. The account certificate of the previous account is still present on the computer.
Resolution:
-
From the Start menu, type Run -> MMC.
-
Choose File > Add/ Remove Snap-ins.
-
Double-click Certificates, choose Computer account > Next, and select Local Computer.
-
Double-click Certificates (Local computer) and choose Personal/ Certificates.
-
Look for the Intune cert issued by Sc_Online_Issuing, and delete it, if present.
-
If the following registry key exists, delete it: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OnlineManagement regkey and all sub keys.
-
Try to re-enroll.
-
If the PC still can't enroll, look for and delete this key, if it exists: KEY_CLASSES_ROOT\Installer\Products\6985F0077D3EEB44AB6849B5D7913E95.
-
Try to re-enroll.
[!IMPORTANT] This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, read How to back up and restore the registry in Windows
Error code | Possible problem | Suggested resolution |
---|---|---|
0x80CF0437 | The clock on the client computer isn't set to the correct time. | Make sure that the clock and the time zone on the client computer are set to the correct time and time zone. |
0x80240438, 0x80CF0438, 0x80CF402C | can't connect to the Intune service. Check the client proxy settings. | Verify that Intune supports the proxy configuration on the client computer. Verify that the client computer has Internet access. |
0x80240438, 0x80CF0438 | Proxy settings in Internet Explorer and Local System aren't configured. | can't connect to the Intune service. Check the client proxy settings.Verify that Intune supports the proxy configuration on the client computer. Verify that the client computer has Internet access. |
0x80043001, 0x80CF3001, 0x80043004, 0x80CF3004 | Enrollment package is out of date. | Download and install the current client software package from the Administration workspace. |
0x80043002, 0x80CF3002 | Account is in maintenance mode. | You can't enroll new client computers when the account is in maintenance mode. To view your account settings, sign in to your account. |
0x80043003, 0x80CF3003 | Account is deleted. | Verify that your account and subscription to Intune is still active. To view your account settings, sign in to your account. |
0x80043005, 0x80CF3005 | The client computer has been retired. | Wait a few hours, remove any older versions of the client software from the computer, and then retry the client software installation. |
0x80043006, 0x80CF3006 | The maximum number of seats allowed for the account has been reached. | Your organization must buy additional seats before you can enroll more client computers in the service. |
0x80043007, 0x80CF3007 | Couldn't find the certificate file in the same folder as the installer program. | Extract all files before you start the installation. Do not rename or move any of the extracted files: all files must exist in the same folder or the installation will fail. |
0x8024D015, 0x00240005, 0x80070BC2, 0x80070BC9, 0x80CFD015 | The software can't be installed because a restart of the client computer is pending. | Restart the computer and then retry the client software installation. |
0x80070032 | One or more prerequisites for installing the client software weren't found on the client computer. | Make sure that all required updates are installed on the client computer and then retry the client software installation. |
0x80043008, 0x80CF3008 | Failed to start the Microsoft Online Management Updates service. | Contact Microsoft Support as described in How to get support for Microsoft Intune. |
0x80043009, 0x80CF3009 | The client computer is already enrolled into the service. | You must retire the client computer before you can re-enroll it in the service. |
0x8004300B, 0x80CF300B | The client software installation package can't run because the version of Windows that is running on the client isn't supported. | Intune doesn't support the version of Windows that is running on the client computer. |
0xAB2 | The Windows Installer couldn't access VBScript run time for a custom action. | This error is caused by a custom action that is based on Dynamic-Link Libraries (DLLs). When troubleshooting the DLL, you might have to use the tools that are described in Microsoft Support KB198038: Useful Tools for Package and Deployment Issues. |
0x80cf0440 | The connection to the service endpoint terminated. | Trial or paid account is suspended. Create a new trial or paid account and re-enroll. |
If this troubleshooting information didn't help you, contact Microsoft Support as described in How to get support for Microsoft Intune.