Day 2: Windows Autopilot for pre-provisioned deployment

📌 Today, we’ll explore Windows Autopilot with Pre-provisioned deployment. This article provides an overview along with step-by-step guidance to help you understand and implement the process effectively.

Link: https://learn.microsoft.com/en-us/autopilot/tutorial/user-driven/azure-ad-join-workflow

Screenshot of Autopilot pre-provisioned deployment

I. Theory

  • 1/ What is autopilot with pre-provisioned deployment mode
    • Designed for a device used by a single user

    • Deployment is split between IT admin/OEM/reseller and user

    • Autopilot Pre-Provisioning Mode allows IT to set up and fully configure devices before handing them to end users. Devices are provisioned with apps, policies, and settings in advance, so users can simply sign in and start working — minimizing setup time and improving user experience.

  • 2/ When do we use user-driven mode
    • The device will be setup fully by IT team before being delivered to end-users
      • The end-user only needs to perform a minimal number of actions during the deployment process, so that the deployment is faster than the user-driven mode

      • Suitable when you want to minimize user involvement during the OOBE steps

    • The device will be used primarily by a single user

  • 3/ Requirements and Preparation
    • Physical devices that support Trusted Platform Module (TPM) 2.0 and device attestation.

    • Windows Pro, Enterprise, or Education editions.

    • To be ready to try out Windows Autopilot for pre-provisioned deployment, make sure that existing Windows Autopilot user-driven scenarios can be successfully used: (visit link here….)

II. Deployment

  • Step 1: Set up Windows automatic Intune enrollment

    1/ Sign in to the EntraID

    EntraID Sign-in

    2/ In the EntraID screen > search the keyword MDM and WIP > click on MDM and WIP

    Search MDM and WIP

    3/ In Mobility (MDM and WIP) > **choose **Microsoft Intune

    Choose Microsoft Intune

    4/ In Microsoft Intune

    4.1/ MDM user scope

    • check All

    MDM user scope All

    4.2/ Windows Information Protection(WIP) user scope

    • Check None

    WIP user scope None

    5/ After setting like the picture above select > Save

  • Step 2: Allow users to join devices to Microsoft Entra ID

    1/ Sign in to the Microsoft Entra ID.

    Microsoft Entra ID Sign-in

    2/ In the EntraID screen, under Identity in the left hand pane, select Devices.

    Select Devices in EntraID

    3/ In the Devices | Overview screen, under Manage in the left hand pane, select Device Settings.

    Select Device Settings

    4/ In the Devices | Device settings screen that opens, under Users may join devices to Microsoft Entra, select All

    Users may join devices to Microsoft Entra

    5/ Save

  • Step 3: Create a device group

    Create a dynamic device group for use with Windows Autopilot

    1/ Sign into the Microsoft Intune admin center.

    Microsoft Intune admin center Sign-in

    2/ In the Intune Admin Portal > select Groups > All groups

    Groups All groups

    3/ In the Groups | Overview screen > make sure All groups is selected, and then select New group.

    New group in Groups Overview

    3/ In the New Group screen that opens:

    • For Group type, select Security.

    • For Group name, enter a name for the device group [All Autopilot Device]

    • For Group description > skip

    • For Microsoft Entra roles can be assigned to the group, select No.

    • For Membership type, select Dynamic Device.

    • For Owners > skip

    • For Dynamic device members, select Add dynamic query. The Dynamic membership rules screen opens.

    New Group screen

    4/ In the Dynamic membership rules screen

    4.1/ at the Rule syntax box > select edit at the top-right hand side (highlight area)

    4.2/ Paste in the following rule in the Edit rule syntax screen under Rule syntax

    (device.devicePhysicalIDs -any (_ -startsWith "[ZTDid]"))

    Dynamic membership rules syntax

    4.3/ Once the rule is pasted in, select OK.

    4.4/ Once the desired rule is entered, select Save on the toolbar to close the Dynamic membership rules window.

    Dynamic membership rules save

    5/ Select Create to finish creating the dynamic device group.

    6/ Wait until the notification is successful

  • Step 4: Configure and assign Windows Autopilot Enrollment Status Page (ESP) (Edit)
    • *What is ESP (shortly - copy day1)*

      ESP is often configured to wait for only specific apps (instead of all), so users can get to the desktop faster.

    • A. Upload A Package App

      1/ Visit the link here: Zoom Installers

      2/ Download Zoom workspace desktop app for Meeting (64bit)- MSI Installer Or using the link here: https://zoom.us/client/latest/ZoomInstallerFull.msi?archType=x64

      Zoom installer download

      3/ Sign in to the Microsoft Intune admin center.

      2/ Select Apps > Apps | Overview > Windows.

      Apps Windows selection

      3/ In Windows | Windows Apps > select Create

      Create app in Windows Apps

      4/ In the Select app type pane, under the Other app types, select Line-of-business app.

      Select app type

      4/ Select Select. The Add app steps are displayed.

      Add app steps

      5/ In the Add app pane, select Select app package file.

      Select app package file

      6/ Upload the ZoomMSI file downloaded recently, select OK

      Upload Zoom MSI

      7/ In App information > select Next

      • Name: Zoom

      • Description: skip

      • Publisher: Zoom

      • App install context: Device

      • Ignore app version: No

      • Command-line arguments: /qn

      • Upload Logo

      • The other fields: skip

      App information App information continued

      8/ At the scope tags screen > select Next

      Scope tags

      9/ At the Assignments screen > Assign to the desired group > select Next

      9.1/ At the Required header > select add group

      Add group for assignments

      9.2/ Enter [All Autopilot Device] > Check box > click Select

      Select All Autopilot Device group

      9.3/ Ensure the target group is there > select Next

      Target group selected

      10/ At the review + Create tab > select create

      Review and Create app

      11/ Wait until the uploading zoom is completed

      Zoom upload in progress

      12/ uploading process is successful

      Zoom upload successful
    • B. Create ESP Profile

      1/ Sign into the Microsoft Intune admin center.

      2/ In the Home screen, select Devices in the left hand pane.

      Devices in Intune home

      3/ In the Devices | Overview screen, under Manage devices by platform, select Windows.

      Devices Windows platform

      4/ In the Windows | Windows devices screen, under Device onboarding, select Enrollment at the left pane side.

      Windows Enrollment

      5/ In the Windows | Windows enrollment screen, under Windows Autopilot, select Enrollment Status Page.

      Enrollment Status Page selection

      6/ In the Enrollment Status Page screen that opens, select Create.

      Create ESP

      7/ The Create profile screen opens. In the Basics page:

      • Next to Name, enter [ESP - Autopilot Pre-Provision Mode]

      • Next to Description, skip

      • Select Next.

      Create ESP profile basics

      8/ In the Settings page, toggle the option Show app and profile configuration progress to Yes.

      ESP settings

      8.1/ After toggling the setting to Yes > configure these settings following

      • Show an error when installation takes longer than specified number of minutes: 60

      • Show custom message when time limit or error occurs: Yes

      • in the box message: [Installation exceeded the time limitation set by your organization. Please try again or contact your IT support person for help]

      ESP custom message

      8.2/ After entering the message > turn on these settings below

      • Turn on log collection and diagnostics page for end users: Yes

      • Only show page to devices provisioned by out-of-box experience (OOBE): Yes

      • Block device use until all apps and profiles are installed: Yes

      • Allow users to reset device if installation error occurs: Yes

      • Block device use until required apps are installed if they are assigned to the user/device: Selected

      ESP blocking apps settings

      8.2/ After choosing [selected] mode > click on +select apps

      Select apps for ESP

      8.3/ At the Select apps > search Zoom > Click on Zoom and select

      Selecting Zoom app

      8.3/ Ensure Zoom is listed in the Blocking apps list > select Next

      Zoom listed in blocking apps

      8.4/ After adding Zoom, at [Only fail selected blocking apps in technician phase] > Select No > then select Next

      Blocking apps in technician phase setting

      9/ at Assignment tab > click add groups

      Add groups for ESP assignment

      9.1/ At the select groups to include

      • Search [All autopilot device]

      • Check box and click Select

      Selecting All Autopilot Device group for ESP

      10/ Ensure the target group is listed in the list > select Next

      ESP target group listed

      11/ At the scope tags > select Next

      ESP scope tags

      12/ At the Review and create tab > select Create

      ESP Review and Create

      13/ Waiting until the notifications shows [profile successfully created /assigned]

      ESP profile creation success notification
      • Ensure that the new profile is listed in the list like the picture below

      New ESP profile listed
  • Step 5: Create and assign Windows Autopilot profile (Edit)
    1. Sign into the Microsoft Intune admin center.

    2. In the Home screen, select Devices in the left hand pane.

    Devices in Intune home
    1. In the Devices | Overview screen, under By platform, select Windows.

    Devices Windows platform
    1. In the Windows | Windows devices screen, under Device onboarding, select Enrollment.

    Windows Enrollment
    1. In the Windows | Windows enrollment screen, under Windows Autopilot, select Deployment Profiles.

    Deployment Profiles
    1. In the Windows Autopilot deployment profiles screen, select the Create Profile drop down menu and then select Windows PC.

    Create Profile dropdown
    1. The Create profile screen opens. In the Basics page: 1. Name: [Deploy Profile Autopilot Preprovision Mode] 2. Description 3. Convert all targeted devices to Autopilot: No 4. Next.

    Create Autopilot profile basics

    8.1. In the Out-of-box experience (OOBE) page:

    • For Deployment mode, select User-driven.

    • For Join to Microsoft Entra ID as, select Microsoft Entra joined.

    • For Microsoft Software License Terms, select Hide

    • For Privacy settings, select Hide

    OOBE settings 1

    8.2. In the Out-of-box experience (OOBE) page:

    • For Hide change account options, select Hide.

    • For User account type, select Administrator.

    • For Allow pre-provisioned deployment, select Yes.

    • For Language (Region): Operating system defaults

    • For Automatically configure keyboard: No

    • For Apply device name template: PrePro-%SERIAL%

    • Next

    OOBE settings 2
    1. In the Scope Tags tab > Next

    Autopilot profile scope tags
    1. In the Assignments tab - Under Included groups, select Add groups.

      Add groups for Autopilot profile assignment
      • select the group that created in the Step 3 [All Autopilot Device]

      Selecting All Autopilot Device group
      • Next

    2. In the Assignments > Create

    Review and Create Autopilot profile
    1. Wait until the notification is successful

    Autopilot profile creation success notification Autopilot profile listed

III. Admin Workflow

Before a device can use Windows Autopilot, the device must be registered as a Windows Autopilot device.

  • Step 1: Register devices as Windows Autopilot devices (new - physical device)
    • We use the [upload hardware directly] method to register a target device into autopilot service

    1. On a device that is: - Currently undergoing Windows Setup and OOBE:

      1. At the sign-in prompt after OOBE starts, open a command prompt window with the keystroke Shift+F10.

      2. In the command prompt window that opens, start PowerShell by running the following command:

        Windows Command Prompt

        powershell.exe
        
      • Already undergone Windows Setup and OOBE: 1. Sign into the device. 2. Open an elevated Windows PowerShell prompt.

    2. At the PS PowerShell command prompt, run the following PowerShell commands: - PowerShell

      [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType].Tls12
      Set-ExecutionPolicy -Scope Process -ExecutioPolicy RemoteSigned
      Install-Script -Name Get-WindowsAutopilotInfo -Force
      
      • If prompted to do so, agree to install NuGet from the PSGallery > Yes (Y)

      NuGet installation prompt
      • After install the module > run the commands below

        cd 'C:\Program Files\WindowsPowerShell\Scripts\'
        powershell -execution bypass Get-WindowsAutopilotInfo -Online
        
      Get-WindowsAutopilotInfo -Online command
    3. When the last command of Get-WindowsAutopilotInfo -Online runs, a Microsoft Entra ID sign-on prompt is displayed. Sign in with an account that is at least an Intune Administrator.

    Microsoft Entra ID sign-on
    1. After the sign-in is successful, the device hash uploads automatically. (edit different SN and hash)

    Device hash upload successful
  • Step 2: Verify device has a Windows Autopilot profile assigned to it || Verify the hardware hash uploaded. (edit match device hash)

    To confirm the hardware hash for the device was uploaded into Intune and that the device shows as a Windows Autopilot device:

    1. Sign into the Microsoft Intune admin center.

    Intune admin center sign-in
    1. In the Home screen, select Devices in the left hand pane.

    Devices in Intune home
    1. In the Devices | Overview screen, under By platform, select Windows.

    Devices Windows platform
    1. In the Windows | Windows devices screen, under Device onboarding, select Enrollment.

    Windows Enrollment
    1. In the Windows | Windows enrollment screen, under Windows Autopilot, select Devices.

    Autopilot Devices
    1. In the Windows Autopilot devices screen, select Sync in the toolbar.

    Sync button in Autopilot devices
    1. Wait for the sync to finish. The sync might take several minutes.

    Sync completion
    1. After the sync completes > Search the serial number of target device at the search bar

    Search bar for serial number Search results for serial number
    1. Wait until the profile status is assigned

    Profile status assigned
  1. Make sure the profile name that is Deploy Profile Autopilot Preprovision Mode created lately

    Autopilot profile name verification

IV. User Workflow || User experience

Registering a device as a Windows Autopilot device doesn’t mean that the device has used the Windows Autopilot service. It just makes the Windows Autopilot service available to the device.

  • Step 1: `Deploy the device <https://learn.microsoft.com/en-us/autopilot/tutorial/user-driven/azure-ad-join-deploy-device>`_
    1. Power on the device.

    2. The out-of-box experience (OOBE) begins and a screen asking for a country or region appears. Select the appropriate country or region > and then select Yes.

    OOBE country/region selection
    1. The keyboard screen appears to select a keyboard layout. Select the appropriate keyboard layout > and then select Yes.

    OOBE keyboard layout selection
    1. An additional keyboard layouts screen appears > select Skip

    OOBE skip additional keyboard layouts
    1. The Let’s connect you to a network screen appears. At this screen, either plug the device into a wired network (if available), or select and connect to a wireless Wi-Fi network.

    OOBE network connection
    1. Once network connectivity is established, the Next button should become available. Select Next.

    2. At this point, the device might reboot to apply critical security updates (if available or applicable). After the reboot to apply critical security updates, the Windows Autopilot process begins.

    Windows Autopilot process starting Windows Autopilot process
    1. Once the Windows Autopilot process begins, the Microsoft Entra sign-in page appears. > Sign-in with your org account > then select Sign in

    Microsoft Entra sign-in page
    1. After authenticating with Microsoft Entra ID, the Enrollment Status Page (ESP) appears. The Enrollment Status Page (ESP) displays progress during the provisioning process across three phases: - Device preparation (Device ESP) - Device setup (Device ESP) - Account setup (User ESP)

      The first two phases of Device preparation and Device setup are part of the Device ESP while the final phase of Account setup is part of the User ESP.

    Enrollment Status Page
    1. Once Account setup and the user ESP process completes, the provisioning process completes, the ESP finishes, and the desktop appears. At this point, the end-user can start using the device.

    Desktop after provisioning
  • Step 2: Post-Check
    • Verify Computer name > The name format is correct as desired

    Computer name verification
    • Verify Admin rights

    Admin rights verification
    • verify installed apps > Zoom already installed

    Installed Zoom app
    • verify managed devices using dsreg /status

    dsreg /status output

V. References