Configuring Automatic Enrollment for Windows

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 9 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Configuring Automatic Enrollment for Windows in Microsoft Intune

Introduction: Why Automatic Enrollment Matters

In the modern workplace, the days of manually provisioning devices—one by one, sitting at a desk with a USB drive or a network cable—are effectively over. As organizations scale, the need for a scalable, efficient, and secure way to bring devices under management becomes critical. This is where automatic enrollment for Windows devices in Microsoft Intune comes into play.

Automatic enrollment, often referred to as "Auto-Enrollment," is the process by which a Windows device joins your organization’s management environment (Microsoft Entra ID and Intune) as soon as the user logs in with their corporate credentials. Instead of an IT administrator having to touch every machine, the device "talks" to Microsoft’s cloud services, authenticates the user, and pulls down the necessary configurations, security policies, and applications automatically.

Why does this matter? First, it significantly reduces the time to productivity. A new employee can unbox a laptop, sign in, and have their environment ready within minutes. Second, it ensures consistency and security. When enrollment is automated, you eliminate the risk of human error in manual configurations. Every device receives the same baseline security policies, ensuring that no machine enters the network without meeting your organization's compliance standards. This lesson will guide you through the technical requirements, configuration steps, and best practices for setting up Windows Auto-Enrollment.


Not read yet

Understanding the Prerequisites

Before we dive into the configuration console, it is vital to understand the foundational components that make auto-enrollment possible. Without these, the enrollment process will fail, often leaving the user with a device that is joined to the domain but not managed by Intune.

Licensing Requirements

The first hurdle is licensing. You cannot manage a device if the user does not have a license that includes the Intune service. Generally, this means Microsoft 365 Business Premium, E3, or E5, or a standalone Intune subscription. Ensure that your users are properly assigned these licenses in the Microsoft 365 Admin Center before attempting enrollment.

Microsoft Entra ID (formerly Azure AD) Connectivity

Intune relies heavily on Microsoft Entra ID. For a device to enroll automatically, it must be either "Entra ID Joined" or "Entra ID Registered." In a professional enterprise environment, "Entra ID Joined" is the standard for corporate-owned devices. This creates a trust relationship between the device and your tenant, allowing Intune to push policies down to the operating system level.

The Role of MDM Discovery URLs

When a device attempts to enroll, it looks for specific "Discovery URLs." These are essentially the addresses for the Microsoft Intune service that tell the Windows device where to send its enrollment request. These URLs are configured within the Microsoft Entra ID portal and are automatically populated when you set up your mobility settings.

Callout: Enrollment vs. Registration It is common to confuse "Registration" with "Enrollment." Registration is a lighter process where the device is known to the Entra directory but not necessarily managed by a policy engine. Enrollment, specifically MDM enrollment, implies that the device is being actively managed by Intune, meaning you can push remote wipes, security policies, and software to it. Always aim for full enrollment for corporate hardware.


Not read yet

Configuring the Mobility (MDM and MAM) Settings

The heart of automatic enrollment lies within the Microsoft Entra admin center. This is where you define who is allowed to enroll devices and which management service they should use.

Step-by-Step Configuration

  1. Access the Entra Admin Center: Sign in to the Microsoft Entra admin center.
  2. Navigate to Mobility: On the left-hand menu, expand Identity, go to Applications, and select App registrations. However, the more direct route for configuration is to navigate to Devices > Enrollment > Microsoft Intune.
  3. Configure MDM User Scope: You will see two primary options: "MDM User Scope" and "MAM User Scope."
    • MDM User Scope: Set this to "All" or "Some." If you choose "Some," you must select a specific group of users. For production environments, it is recommended to start with a pilot group before setting this to "All."
    • MAM User Scope: This is for Mobile Application Management, typically used for Bring Your Own Device (BYOD) scenarios where you want to manage corporate data inside apps without managing the entire device.
  4. Set URLs: Ensure the MDM Terms of use URL, MDM Discovery URL, and MDM Compliance URL are populated. These are usually set to the Microsoft default values, which are sufficient for almost all standard deployments.
  5. Save Changes: Once you click "Save," the configuration is live. Any user in the scope you defined will now attempt to enroll their device the next time they sign in with their Entra ID credentials.

Note: If you change the MDM user scope from "None" to "All," existing devices that are already Entra ID joined may not automatically enroll until the user re-authenticates or the device performs a policy refresh.


Not read yet

The User Experience: What Happens During Enrollment?

Understanding the user experience is critical for successful deployment. When a user powers on a new Windows device, they go through the "Out-of-Box Experience" (OOBE).

The OOBE Workflow

  1. Language and Region Selection: The user selects their preferences.
  2. Network Connection: The device connects to the internet.
  3. Sign-in: The user enters their corporate email address.
  4. Authentication: The device redirects to your organization’s sign-in page (often requiring Multi-Factor Authentication).
  5. Enrollment: Behind the scenes, Windows detects the "MDM Discovery URL." It sees that the user is in the scope for auto-enrollment. It then triggers the enrollment process.
  6. Policy Application: Once the enrollment is complete, the device begins downloading policies, certificates, and applications assigned to that user or device.

This process is generally invisible to the user, except for a brief screen that says "Setting up your device." It is important to communicate this to your end-users so they do not get worried when they see the device taking a few extra minutes to "prepare" during their first login.


Not read yet

Troubleshooting Common Enrollment Failures

Even with a perfect setup, enrollment can occasionally fail. As an administrator, you must know where to look when things go wrong.

Common Pitfalls

  • Connectivity Issues: The device cannot reach the Microsoft endpoints because of a restrictive firewall or a proxy server that doesn't allow traffic to the required URLs.
  • Licensing Gaps: The user successfully authenticates, but because they lack an Intune license, the enrollment process terminates.
  • Enrollment Restrictions: You may have configured "Enrollment Restrictions" in the Intune portal that block specific platforms, versions of Windows, or personal devices.
  • Conflicting Policies: If a device is already managed by a local Group Policy (GPO) that conflicts with Intune, the enrollment might stall.

How to Debug on the Client Device

If a device fails to enroll, go to the affected Windows machine and follow these steps:

  1. Open Settings > Accounts > Access work or school.
  2. If you see your organization's name there, click on it and select Info.
  3. Look for the Sync button. Click it to force a policy refresh.
  4. If the device is not there, go to Command Prompt (Admin) and type dsregcmd /status.
  5. Look for the AzureAdJoined attribute. If it says YES, the device is joined to the domain. If MdmUrl is empty, the device failed to discover the Intune service.

Warning: Never use the dsregcmd /debug command unless you are prepared to analyze logs, as it generates a significant amount of output that can be difficult for beginners to interpret. Stick to the /status flag for initial diagnostics.


Not read yet

Best Practices for Enterprise Deployment

To ensure your infrastructure is resilient and manageable, follow these industry-standard practices.

1. The Pilot Group Strategy

Never enable auto-enrollment for "All" users immediately. Create a security group in Entra ID called "Intune_Pilot_Users." Add your IT team and a few friendly power users to this group. Configure the MDM user scope to target only this group. Verify that their devices enroll correctly, policies apply, and applications install before rolling it out to the rest of the company.

2. Group Policy vs. Intune

If you are transitioning from a traditional Active Directory environment, you likely have many Group Policies (GPOs). Be aware that GPOs can conflict with Intune settings. Use the "Group Policy migration analysis" tool in the Intune portal to identify which of your existing GPOs can be replaced by Intune configuration profiles.

3. Naming Conventions

Establish a device naming convention early. In the Intune portal, under Devices > Enrollment > Enrollment device platform restrictions, you can configure naming templates. For example, using %SERIAL% or WIN-%RAND:5% ensures that you can easily identify devices in your reports.

4. Enrollment Restrictions

Use "Enrollment Restrictions" to prevent users from enrolling personal devices if your security policy forbids it. You can block personal devices by default and only allow corporate-enrolled devices (e.g., those with specific serial numbers or those purchased through Autopilot).


Not read yet

Comparing Enrollment Methods: Autopilot vs. Manual

It is important to distinguish between simple Auto-Enrollment and Windows Autopilot.

Feature Automatic Enrollment Windows Autopilot
Primary Goal Bringing a device into management. Provisioning a device for a specific user.
User Experience Standard OOBE. Custom OOBE (branding, skip screens).
Control Standard. High (pre-provisioning, white-glove).
Hardware Any Windows device. Hardware hash must be registered.

While Auto-Enrollment is the process that happens in the background, Autopilot is the service that makes the process feel tailored to your organization. If you are a medium-to-large enterprise, you should aim to use Autopilot in conjunction with auto-enrollment to provide the best possible experience for your employees.


Advanced Scripting and Automation

Sometimes, you need to verify if a device is enrolled via script, especially for large-scale migrations. You can use PowerShell to check the status of a device.

Example: PowerShell Script to Check Enrollment Status

# Get the enrollment status of the device
$enrollmentStatus = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Enrollments\*" | Where-Object { $_.DiscoveryServiceFullURL -like "*manage.microsoft.com*" }

if ($enrollmentStatus) {
    Write-Host "Device is successfully enrolled in Intune." -ForegroundColor Green
} else {
    Write-Host "Device is not enrolled in Intune." -ForegroundColor Red
}

Explanation:

  • This script looks at the local Registry (HKLM) where Windows stores enrollment metadata.
  • It searches for the specific URL associated with the Intune service.
  • If a match is found, it confirms the device has successfully communicated with the Intune management service.

Tip: Always run PowerShell scripts with administrative privileges when querying the registry. If you run them as a standard user, the script will likely return "Access Denied" or incorrect results because standard users cannot read the HKLM hive.


Not read yet

Managing Compliance Policies

Once a device is enrolled, the "Auto-Enrollment" job is technically done, but the management job is just beginning. You should immediately assign a Compliance Policy to all enrolled devices.

A compliance policy checks for:

  • BitLocker Encryption: Is the disk encrypted?
  • Antivirus/Defender: Is real-time protection enabled?
  • OS Version: Is the device running a supported version of Windows 10 or 11?
  • Password Requirements: Does the user have a PIN or password set?

If a device fails these checks, it is marked as "Non-Compliant." You can then configure Conditional Access policies in Entra ID to block non-compliant devices from accessing resources like Microsoft 365 or SharePoint. This is the ultimate goal of auto-enrollment: ensuring that only healthy, managed devices can touch your corporate data.


Common Pitfalls and How to Avoid Them

1. The "Ghost Device" Problem

Sometimes, a device is retired from Intune but remains joined to Entra ID. This can cause issues if you try to re-enroll it.

  • The fix: Ensure that when you remove a device from Intune, you also clean up the object in the Microsoft Entra admin center.

2. Ignoring Policy Conflicts

If you have a Windows device that is both Hybrid Azure AD Joined and Intune enrolled, you might have conflicting policies coming from both your local Domain Controller and Intune.

  • The fix: Prioritize Intune over GPOs. Where possible, move settings from GPOs into Intune Configuration Profiles.

3. Sync Delays

Users often complain that a policy change isn't reflecting on their device immediately.

  • The fix: Understand that the Intune sync interval is not instantaneous. By default, devices check in every 8 hours. You can trigger a manual sync through the Company Portal app or the Intune portal, but educate your users on how to use the "Sync" button in the Settings menu so they don't have to wait for the automatic interval.

Not read yet

Comprehensive Key Takeaways

To summarize the essential components of configuring automatic enrollment for Windows in Microsoft Intune, keep these points in mind:

  1. Preparation is Paramount: Before enabling any settings, ensure your licensing is in order and your user groups are clearly defined. A "pilot-first" approach is the safest way to prevent widespread configuration issues.
  2. Entra ID is the Foundation: Intune cannot manage a device effectively without a strong trust relationship in Microsoft Entra ID. Ensure your devices are correctly joined to your tenant.
  3. URLs are the Key: The MDM Discovery URL is the secret handshake. If your device cannot find this URL, it will never enroll. Always verify that your mobility settings are correctly populated in the Entra portal.
  4. Security and Compliance: Enrolling a device is not enough. You must apply compliance policies to ensure that the device remains secure and that it meets your organizational standards before it is allowed to access sensitive company data.
  5. User Communication: The enrollment process introduces a new step in the setup of a device. Clear communication with your users prevents helpdesk tickets and ensures they know that the "Setting up your device" screen is a normal part of the process.
  6. Continuous Monitoring: Use the Intune portal to monitor enrollment status. If you see a high rate of failures, check your Enrollment Restrictions and ensure that your network environment isn't blocking the necessary Microsoft traffic.
  7. Transitioning from GPO: If you are coming from a traditional environment, treat Intune as the primary management tool. Do not try to maintain two parallel management systems for the same settings, as this will lead to unpredictable device behavior.

By following these guidelines and taking a structured approach, you can transform your device management from a manual, time-consuming burden into a streamlined, automated, and highly secure infrastructure. Remember that auto-enrollment is the gateway to modern management; once the bridge is built, the possibilities for automated security, software deployment, and remote management are virtually limitless.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.