Windows Autopilot
Device enrollment

Automatic Device Group

In brief

The tutorial updates wording, punctuation, formatting, and descriptions for navigating Groups, selecting the service principal, authenticating with Microsoft Graph, and responding to permission prompts.

What Intune admins need to know

Administrators following the tutorial get clearer step-by-step guidance, including the accepted service principal name and AppID.

This summary was assembled from the tracked documentation change. Verify important details in the full Microsoft Learn article.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

To create an assigned security device group for use with Windows Autopilot device preparation, follow these steps:

  1. Sign in to the Microsoft Intune admin center.

  2. In the Home screen, select Groupsin the left hand pane.pane, select Groups.

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

  4. In the New Group screen that opens:screen:

    1. For Group type, select Security.

    2. For Group name, enter a name for the device group, such as Windows Autopilot device preparation device group.

    3. For Group description, enter a description for the device group.

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

    5. For Membership type, select Assigned.

       Note
      
       - In some tenants, the service principal might have the name of **Intune Autopilot ConfidentialClient** instead of **Intune Provisioning Client**. As long as the AppID of the service principal is **f1346770-5b25-470b-88bd-d5744ab7952c**, it's the correct service principal.
       - If the **Intune Provisioning Client** or **Intune Autopilot ConfidentialClient** service principal with AppId of **f1346770-5b25-470b-88bd-d5744ab7952c** isn't available either in the list of objects or when searching, see Adding the Intune Provisioning Client service principal.
      
      1. OnceAfter you select Intune Provisioning Client is selected as the owner, select Select.
    6. Select Create to finish creating the assigned device group.

    Important

Adding the Intune Provisioning Client service principal

If the Intune Provisioning Client service principal with AppId f1346770-5b25-470b-88bd-d5744ab7952c isn't available when selecting the owner of the device group, then follow these steps to add the service principal:

  1. On a device where you normally administer Microsoft Intune or Microsoft Entra ID is normally administered,ID, open an elevated Windows PowerShell command prompt.

  2. In the Windows PowerShell command prompt window:

    1. Install the Microsoft.Graph.Authentication module by entering the following command: Install-Module Microsoft.Graph.Authentication

      
      If prompted toprompted, do so:the following:
      
      - Agree to install **NuGet** by entering **Y** or **Yes**, or selecting the **Yes** button.
      - Agree to install from the **PSGallery** untrusted repository by entering **Y** or **Yes**, or selecting the **Yes** button.
      Install-Module Microsoft.Graph.Applications
      

      If prompted to do so,prompted, agree to install from the PSGallery untrusted repository by entering Y or Yes, or selecting the Yes button.

      For more information, see Microsoft.Graph.Applications and Set-PSRepository -InstallationPolicy.

    2. OnceAfter the Microsoft.Graph.Authentication and Microsoft.Graph.Applications modules are installed, connect to Microsoft Entra ID by entering the following command:

      Connect-MgGraph -Scopes "Application.ReadWrite.All"
      

      For more information, see Connect-MgGraph.

    3. If you're not already authenticated to Microsoft Entra ID, the Sign in to your account window appears. Enter the credentials of a Microsoft Entra ID administrator that has permissions to add service principals.

    4. If the Permissions requested window appears, select the Consent on behalf of your organization checkbox,, and then select the Accept button..

    5. Once authenticatedAfter you authenticate to Microsoft Entra ID and proper permissions are granted, add the Intune Provisioning Client service principal by entering the following command:

      New-MgServicePrincipal -AppID f1346770-5b25-470b-88bd-d5744ab7952c
          ```
      - The following error message is displayed if one of the following conditions is true:
      
          - The account you used to sign in withby using the `Connect-MgGraph` command doesn't have permissions to add a service principal to the tenant.
          - The `-Scopes "Application.ReadWrite.All"` argument isn't added to the `Connect-MgGraph` command.
          - TheYou didn't accept the **Permissions requested** window isnwindow.
          - You didn't accepted.
          - Theselect **Consent on behalf of your organization** checkbox isn't selected in the **Permissions requested** window.
      
          ```powershell
          New-MgServicePrincipal : Insufficient privileges to complete the operation.
      
Daily Intune.Admin.News

Get daily email updates

Get a concise summary of the latest Microsoft Intune updates delivered straight to your inbox.

Loading the secure signup form…