Skip to content
MDM

WalkthroughZero-touch enrolment

Windows zero-touch enrolment with a provisioning package or Entra ID join

You will be able to enrol new Windows PCs into Purple MDM at first boot with no IT visit, using a provisioning package for shared PCs or Microsoft Entra ID join for one-to-one laptops. You can also check prerequisites, pilot MDM user scope, verify each device with dsregcmd and fix the common failures.

14 min read

Windows zero-touch enrolment with a provisioning package or Entra ID join

Watch the explainer

Enrol new Windows PCs into Purple MDM in seven steps, with no IT visit, on the hardware you already own. A provisioning package joins each PC to Microsoft Entra ID with a bulk token. Alternatively, the person signs in at first boot. Either way, Windows MDM automatic enrolment hands the device to Purple MDM during first-boot setup.

What does a zero-touch Windows PC look like at first boot?

When you finish this guide, a new Windows PC goes from the box to a managed desktop without anyone from IT touching it. Someone powers it on and either plugs in a USB drive or signs in with a work account. Then they wait.

By the time the desktop opens, three things are true:

  • The PC is joined to Microsoft Entra ID, Microsoft's cloud directory for your organisation.
  • The PC is enrolled in Purple MDM through Windows MDM, the mobile device management channel built into Windows 10 and Windows 11.
  • Your security baselines, settings and required apps are installed or arriving. They come from a profile you previewed and staged in Purple MDM.

Purple MDM then runs its health checks. If a check fails, the console explains the failure in plain English rather than as an error code. Device health also feeds Purple Access, so network decisions can reflect the state of each PC.

The Windows zero-touch enrolment provisioning package suits shared PCs that nobody owns individually. Entra ID join at first boot suits one-to-one laptops. You can run both in the same tenant, and most schools and SMBs do.

What do you need before you start?

Check every row before you build anything. Most failed enrolments trace back to one of these, usually the licence or the scope setting.

Prerequisites for both routes Data as of 2026-06-10
RequirementProvisioning packageEntra ID join at first bootHow to check
Windows editionPro, Enterprise or EducationPro, Enterprise or EducationSettings > System > About
LicenceMicrosoft Entra ID P1 for automatic MDM enrolmentMicrosoft Entra ID P1 for automatic MDM enrolmentLicences page in the Microsoft Entra admin center
Purple MDM in EntraRegistered as the MDM applicationRegistered as the MDM applicationListed in the Entra mobility settings
MDM user scopeCovers bulk-joined PCsCovers the person signing inScope set to All or a named group
Permission to joinThe admin who requests the bulk tokenEvery person who joins a PCEntra device settings
Windows Configuration DesignerRequired, free from the Microsoft StoreNot neededInstalled on an admin PC
USB driveHolds the .ppkg at its rootNot neededPackage visible in File Explorer
Network at first bootEthernet, or WiFi carried in the packageEthernet, or WiFi chosen during setupPC reaches the internet before sign-in
Purple MDM profileStaged and previewedStaged and previewedPreview lists every policy and app
Windows Home editions cannot join Microsoft Entra ID. Upgrade the edition before you enrol.

You also need an account that can change device and mobility settings in Microsoft Entra ID, and admin access to Purple MDM. If an IT partner runs the estate, agree who holds each role before you start.

How do a provisioning package and Entra ID join hand a PC to Purple MDM?

Both routes rely on the same Microsoft mechanism. When a PC joins Microsoft Entra ID, Windows asks Entra which MDM service should manage it. Entra answers with the MDM application you registered, as long as the account joining the PC sits inside MDM user scope. MDM user scope is the Entra setting that decides which accounts trigger automatic enrolment. Windows then enrols with Purple MDM over the standard Windows MDM protocol, which Microsoft documents in its Windows MDM overview.

The routes differ only in how the Entra join starts.

The provisioning package route. A provisioning package is a .ppkg file you build in Windows Configuration Designer, Microsoft's free authoring tool. It can set the device name and carry a network profile, apps and certificates. It can also carry a bulk token, which is a time-limited credential that lets the package join PCs to your tenant on your behalf. Windows applies the package during OOBE, the out-of-box experience you see at first power-on. Microsoft's provisioning packages documentation covers the format in full.

The Entra ID join route. During OOBE, the person chooses to set up the PC for work or school and signs in with their work account. Entra joins the PC under that account, which Microsoft describes in its guide to Microsoft Entra joined devices. The PC belongs to that person from the first minute.

After enrolment, Windows can hold the PC on the enrollment status page, a progress screen shown during setup. Windows displays it when the MDM requests it through the DMClient configuration service provider (CSP), the Windows interface that MDM services use to change settings. The page keeps people off the desktop until the policies and required apps you marked as essential have arrived.

IT preparedPerson signs inIn scopeOut of scopeNew PC at firstbootWindows Pro, Enterpriseor EducationProvisioningpackageUSB at first setupscreen, bulk tokenWork accountsign-inSet up for work orschoolMicrosoft Entra IDjoinDevice object created inyour tenantMDM user scopecheckAccount must be in scopeWindows MDMenrolmentPC enrols with PurpleMDMJoined butunmanagedScope excludes theaccount: fix scopeStaged policiesand appsEnrollment status pageshows progressDesktop readyHealth checks feedPurple Access
Both routes reach Purple MDM through Microsoft Entra ID automatic enrolment

Flow from a new PC at first boot, through a provisioning package or a work account sign-in, to Microsoft Entra ID join, an MDM user scope check, Windows MDM enrolment into Purple MDM and a ready desktop.

Connections

  1. New PC at first boot to Provisioning package (IT prepared)
  2. New PC at first boot to Work account sign-in (Person signs in)
  3. Provisioning package to Microsoft Entra ID join
  4. Work account sign-in to Microsoft Entra ID join
  5. Microsoft Entra ID join to MDM user scope check
  6. MDM user scope check to Windows MDM enrolment (In scope)
  7. MDM user scope check to Joined but unmanaged (Out of scope)
  8. Windows MDM enrolment to Staged policies and apps
  9. Staged policies and apps to Desktop ready

How do you set up Windows zero-touch enrolment, step by step?

Work through the steps with the Microsoft Entra admin center and Purple MDM open side by side. Steps one to three apply to both routes. Step four is for the package route only. Step five splits by route.

Enrol a Windows PC into Purple MDM at first boot

  1. Step 1: Register Purple MDM in Microsoft Entra ID

    In the Entra mobility settings, add Purple MDM as the MDM application. Set MDM user scope to a pilot group.

    Check it worked: Purple MDM is listed with a scope other than None.

  2. Step 2: Set who can join devices

    In Entra device settings, allow the right staff to join devices. Decide whether the person joining becomes a local administrator.

    Check it worked: A test account in scope can join a spare PC.

  3. Step 3: Stage the enrolment profile

    In Purple MDM, target new Windows PCs with your security baselines and required apps. Preview the changes, then publish.

    Check it worked: The preview lists every policy and app the profile sends.

  4. Step 4: Build the provisioning package

    In Windows Configuration Designer, choose Provision desktop devices. Set a name pattern, choose Entra ID enrolment and get a bulk token.

    Device name: SCH-%RAND:6%
    Bulk token expiry: no more than 180 days

    Check it worked: The output folder holds a .ppkg and a .cat file.

  5. Step 5: Start the PC

    Power on the PC on a network that reaches Microsoft Entra ID, then follow your route.

    Package at first boot

    Insert the USB drive at the first setup screen and accept the package. If nothing appears, press the Windows key five times.

    Entra ID join

    The person chooses to set up for work or school and signs in with their work account.

    PC already in use

    Apply the package from an elevated PowerShell prompt.

    Install-ProvisioningPackage -PackagePath D:\school.ppkg -QuietInstall

    Check it worked: Settings > Accounts > Access work or school shows your organisation.

  6. Step 6: Watch the first sync

    If your profile turns it on, the enrollment status page holds the PC until Purple MDM delivers policies and required apps.

    Check it worked: The desktop opens with required apps already installed.

  7. Step 7: Verify enrolment

    Confirm the join on the PC, then find the PC in the Purple MDM console.

    dsregcmd /status

    Check it worked: Output shows AzureAdJoined : YES and the PC passes every health check in Purple MDM.

Registering Purple MDM and setting scope

Step one is where most problems start. If MDM user scope is set to None, PCs still join Microsoft Entra ID, but they never enrol in Purple MDM. Use a small pilot group first. Widen the scope to All only after both routes have worked on a test PC.

Building the package

Windows device names have a 15-character limit. The %SERIAL% macro inserts the hardware serial number, but long serial numbers can break that limit. The %RAND:6% macro adds six random characters and stays inside it with a short prefix. Test the pattern on one PC before you build a batch.

If the PC needs WiFi to reach Microsoft Entra ID, the wizard can carry a network profile. Use Ethernet or a simple staging network for setup. A network behind a captive portal, the sign-in page some networks show before granting access, stops the join. Per-device staff WiFi belongs in Purple Access, which picks up device health from Purple MDM once enrolment completes.

The enrollment status page

The enrollment status page matters most on shared PCs. Without it, someone can reach the desktop before your baselines land. Mark only the apps you cannot do without as required. Every required app lengthens the wait at first boot.

How do you verify that every PC enrolled?

Check each pilot PC in two places: the device itself and the Purple MDM console.

On the PC, open Command Prompt and run:

dsregcmd /status

Look for three lines in the output:

  1. AzureAdJoined : YES confirms the Entra ID join.
  2. TenantName shows your organisation, not a test tenant.
  3. MdmUrl points to Purple MDM. If it is blank, the account sits outside MDM user scope.

Then open Settings > Accounts > Access work or school. Select your organisation's connection and choose Info. The sync status shows when Windows last checked in with the MDM service.

In Purple MDM, find the PC by name or serial number. Confirm it received the profile you staged and passes every health check. Any check that fails comes with a plain-English reason, so fix that before you widen scope.

Once both pilot routes pass, compare the console's Windows device count against your asset list or delivery note. A gap points to a PC that joined Entra but never enrolled. Fix that before the next batch ships.

Provisioning package or Entra ID join: which fits your estate?

Choose by who uses the PC, not by which route feels faster. Shared PCs suit the package. Personal laptops suit Entra ID join.

Choose the route for each group of PCs

Provisioning package

IT prepares one package per batch, and anyone can apply it at first boot.

  • Suits shared PCs: computer rooms, laptop trolleys, front desk terminals
  • No person joins the PC, so nobody becomes a local administrator through the join
  • The bulk token expires within 180 days, so rebuild before that date
  • One USB drive serves a whole batch

Entra ID join at first boot

The person who will use the PC signs in during setup.

  • Suits one-to-one staff laptops shipped direct to the person
  • The PC is linked to that person's account from the start
  • No USB drive and no package to maintain
  • Check the maximum devices per person in Entra device settings

Moving from Intune or JumpCloud

Windows allows one MDM enrolment at a time, so each PC leaves its current MDM first.

  • Import your existing configuration into Purple MDM and preview it
  • Reset or unenrol a pilot group, then enrol it by either route
  • Compare health checks before and after the move
  • Move the rest in staged batches

Worked example: a secondary school laptop trolley

Situation. An IT partner supports a secondary school with a technician on site two days a week. The school orders 30 laptops for a new trolley, delivered during the summer break.

What was done. The partner built one provisioning package with the name pattern SCH-%RAND:6% and a staging network profile. The package carried a bulk token set to expire after term began. MDM user scope covered bulk-joined PCs, and the enrollment status page held each laptop until the exam browser and baselines installed. A teaching assistant unboxed the laptops and applied the USB drive at the first setup screen.

Measurable outcome. The measure was simple: laptops on the delivery note against laptops passing every check in Purple MDM. All 30 matched before the first lesson, and the partner made no site visit for the build.

Worked example: a retailer shipping laptops to store managers

Situation. A retailer with 12 stores replaces each store manager's laptop. Head office wants the laptops shipped straight to the stores, with no return trip for setup.

What was done. IT used the Entra ID join route. MDM user scope covered the store managers' group, and the Purple MDM profile targeted that group's laptops. Each manager opened the box, chose to set up for work or school, and signed in.

Measurable outcome. IT watched two numbers: laptops shipped against laptops enrolled, and laptops returned for rework. Each laptop appeared in Purple MDM against its manager's account on the day it was opened. None came back to head office.

Common mistakes, and what to do when a step fails

These are the mistakes that stop a PC enrolling. Each one has a quick fix.

  • MDM user scope excludes the account. The PC joins Entra ID but never enrols, and MdmUrl is blank. Widen the scope, then rejoin the PC.
  • The bulk token has expired. The package applies but the join fails. Rebuild the package with a new token and replace every copy.
  • Windows Home on a cheap PC. Home editions cannot join Microsoft Entra ID. Upgrade the edition first.
  • Device names over 15 characters or duplicated. Use a short prefix with %RAND:x%, and test one PC first.
  • A Conditional Access policy demands multi-factor sign-in to join devices. The bulk token account cannot complete that prompt. Review the policy's scope before you test the package.
  • The device-per-person limit is reached. Staff who already own several devices cannot join another. Raise the limit in Entra device settings or remove stale devices.
  • No internet at first boot. A captive portal or a missing WiFi profile stops the join. Use Ethernet or include a staging network in the package.
  • The PC is still enrolled in another MDM. Windows holds one MDM enrolment at a time. Unenrol or reset it first.

When a step fails

Start with the plain-English explanation Purple MDM shows against the failed check. If the PC never reached the console, look on the device itself. Run dsregcmd /status again, then open Event Viewer at Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider > Admin. That log records each enrolment attempt and its error.

If a staged change caused the problem, restore the previous version of the profile in Purple MDM and re-test on one PC. Troubleshooting guides for Windows enrolment errors sit alongside this guide in Device management guides.

Where this fits in your device management guides

Zero-touch enrolment is the first step in a PC's life under Purple MDM. Every later task assumes the PC is enrolled: security baselines, app delivery, health checks and retirement. This guide sits in the zero-touch enrolment category of our Device management guides. That category also covers Apple declarative management, Android Enterprise and Chrome management.

Purple MDM puts Windows, Apple, Android and Chrome devices in one console. Every change is previewed, staged and restorable. Failed checks are explained in plain English. Device health feeds Purple Access, so the network sees what the console sees.

Key terms

Microsoft Entra ID
Microsoft's cloud identity directory. An Entra joined device has a device object in your tenant and authenticates with organisational accounts; joining requires Windows 10 or Windows 11 Pro, Enterprise or Education, as Home editions cannot join. Both enrolment routes start with an Entra join. Without it, Windows never asks which MDM service should manage the PC.
Windows MDM
The mobile device management channel built into Windows 10 and Windows 11. Microsoft documents it as an implementation of the OMA-DM (Open Mobile Alliance Device Management) protocol, with settings exposed through configuration service providers. This is the protocol Purple MDM uses to manage the PC after enrolment, so no extra agent is needed to receive policies and apps.
MDM user scope
The setting in the Microsoft Entra mobility settings that decides which accounts trigger automatic MDM enrolment when a device joins. It can be set to None, a named group or All, and automatic enrolment depends on Microsoft Entra ID P1. The most common cause of failure. If the joining account is out of scope, the PC joins Entra but never enrols and MdmUrl is blank.
Provisioning package (.ppkg)
A Windows configuration file applied during OOBE or from a running system with Install-ProvisioningPackage. It can set the device name and carry network profiles, apps, certificates and a bulk token for Entra join. The route for shared PCs. One USB drive holding the package at its root serves a whole batch with no person joining the device.
Bulk token
A time-limited credential requested in Windows Configuration Designer that authorises a provisioning package to join PCs to your Microsoft Entra ID tenant on your behalf, with an expiry of no more than 180 days. Anyone holding the package can join a PC to your tenant, so password-protect it and lock the drive away. When it expires, new joins fail but enrolled PCs stay managed.
Windows Configuration Designer
Microsoft's free authoring tool, available from the Microsoft Store, that builds provisioning packages. Its Provision desktop devices wizard outputs a .ppkg and a .cat file. Install it on one admin PC to build the package route. It is not needed for Entra ID join at first boot.
OOBE (out-of-box experience)
The Windows first-boot setup sequence shown at initial power-on, during which a provisioning package can be applied or a person can choose to set up for work or school and sign in. Both routes complete enrolment inside OOBE, so the PC reaches the desktop already managed. If no package prompt appears, press the Windows key five times.
Enrollment status page
A Windows setup progress screen that holds the device until policies and required apps marked as essential arrive. Windows shows it when the MDM requests it through the DMClient configuration service provider. Stops someone reaching the desktop of a shared PC before your baselines land. Every required app lengthens the wait, so mark only essentials.
Configuration service provider (CSP)
The Windows interface that MDM services use to read and change device settings. The DMClient CSP specifically controls enrolment behaviour, including whether the enrollment status page is shown. Explains how Purple MDM can hold a PC at first boot and deliver settings without a separate management agent.
dsregcmd /status
A Windows command-line tool that reports device registration state, including AzureAdJoined, TenantName and MdmUrl for the Entra join and MDM enrolment. Your first check on every pilot PC. A blank MdmUrl points directly to an MDM user scope problem.
Captive portal
A sign-in page some networks present before granting internet access, typically intercepting HTTP traffic until the visitor accepts terms or authenticates. A PC cannot complete the portal during OOBE, so the Entra join fails. Use Ethernet or a staging network carried in the package.
Conditional Access
Microsoft Entra ID policies that evaluate sign-in conditions and can require controls such as multi-factor authentication before granting access, including when joining devices. A policy demanding multi-factor sign-in to join devices blocks the bulk token account. Review its scope before testing the package.

Worked examples

An IT partner supports a secondary school with a technician on site two days a week. The school orders 30 laptops for a new trolley, delivered during the summer break. How do you build them without a site visit?

The partner used the provisioning package route, because trolley laptops are shared and have no single owner. One package carried the name pattern SCH-%RAND:6%, which stays inside the 15-character limit, plus a staging network profile. The bulk token was set to expire after term began. MDM user scope covered bulk-joined PCs, and the enrollment status page held each laptop until the exam browser and baselines installed. A teaching assistant unboxed each laptop and applied the USB drive at the first setup screen. Success was measured as laptops on the delivery note against laptops passing every check in Purple MDM. All 30 matched before the first lesson, with no site visit for the build.

A retailer with 12 stores replaces each store manager's laptop. Head office wants them shipped straight to the stores with no return trip for setup. Which route fits?

IT chose Entra ID join at first boot, because each laptop belongs to one manager and needs no USB drive or package to maintain. MDM user scope covered the store managers' group, and the Purple MDM profile targeted that group's laptops. Each manager opened the box, chose to set up for work or school and signed in with their work account, which linked the laptop to them from the first minute. IT tracked laptops shipped against laptops enrolled, and laptops returned for rework. Each laptop appeared in Purple MDM against its manager's account on the day it was opened, and none came back to head office.

Frequently asked questions

Do we need extra licences to enrol Windows PCs this way?

Yes, you need Microsoft Entra ID P1, because automatic MDM enrolment depends on it. Several Microsoft 365 business and education plans include it, so check your existing licences first. Windows Configuration Designer is free from the Microsoft Store. Each PC also needs Windows Pro, Enterprise or Education. For Purple MDM pricing, speak to our team through the [Purple MDM](product:mdm/) page.

Will this work with the PCs we already own?

Yes, any PC running Windows 10 or Windows 11 Pro, Enterprise or Education can use either route, whatever the manufacturer. Windows Home cannot join Microsoft Entra ID, so upgrade the edition first. PCs already in use can run the package with `Install-ProvisioningPackage`. They can also join from **Settings > Accounts > Access work or school**. A PC enrolled in another MDM must leave it before it joins Purple MDM.

How do we move Windows PCs from Intune or JumpCloud?

Import your configuration into Purple MDM, then move PCs in staged batches. Purple MDM imports from Intune and JumpCloud, so you rebuild less by hand. Windows allows one MDM enrolment at a time. Each PC must therefore be unenrolled or reset before it enrols by either route. Preview the imported profile and pilot it on a few PCs first.

Which route should a school choose?

Use the provisioning package for shared PCs and Entra ID join for staff laptops. Computer rooms and laptop trolleys have no single owner, so the bulk token join fits them. Students then sign in to bulk-joined PCs as standard accounts. Staff laptops belong to one person, so joining under that person's account links the device to them from first boot.

Can students or staff end up as local administrators?

Only if you allow it, because Microsoft Entra ID controls local administrator rights at join time. Entra device settings decide whether the person joining a PC becomes a local administrator. Set that before staff join laptops. On bulk-joined PCs, no person performs the join. Students who sign in later are standard accounts unless your Purple MDM profile grants more.

Does the PC need internet access at first boot?

Yes, the PC must reach Microsoft Entra ID and Purple MDM during setup. Ethernet is the most reliable option for a batch. The provisioning package can also carry a WiFi profile for a staging network. Avoid networks behind a captive portal, because the PC cannot complete the sign-in page before the join. Staff WiFi with per-device access belongs in Purple Access.

What happens when the bulk token expires?

New PCs stop joining, and PCs that already joined carry on unaffected. The token only authorises new joins, so enrolled devices stay managed. Note the expiry date when you build the package, and set a reminder before it. Rebuild with a fresh token, replace every copy on your USB drives, and test on one PC.

How does device health reach our network controls?

Purple MDM feeds device health to Purple Access automatically once a PC enrols. Health checks run after enrolment, and each failed check is explained in plain English in the console. Purple Access can then reflect that state in network access decisions. Fixing a failed check in Purple MDM is therefore the first step when a PC loses network access.

Sources

See every device in one console, on your own fleet

Tell us which devices you run and what you manage them with today, and the Purple team shows you Purple MDM on a fleet like yours.

Tell us your fleet. We show you Purple MDM running it.