# Register with Autopilot

The **Register with Autopilot** step adds the current computer to the Autopilot service (for Autopilot v1) or to the Intune list of corporate device IDs (for Autopilot v2).  Multiple options can be configured:

![](/files/KepqUsFEK9Jdi3pFIIYM) &#x20;

With Autopilot v1, a group tag can be configured (not applicable for v2) and the step can be instructed to wait for the profile assignment to complete.  For either version, the device can be added to a specified Entra ID group.

If the device is already enrolled in Windows Autopilot (v1) or a corporate identifier already exists (v1), no additional actions will be performed for the device.

{% hint style="info" %}
If you're using the "Entra ID group name" option, ensure that the group is an Assigned type, not a Dynamic group. If you get errors about permissions, first confirm your API access using the link below, then ensure the group is not Dynamic.&#x20;
{% endhint %}

This requires configuring [Microsoft Graph API access](/deployr/getting-started/microsoft-graph-api-access.md).

This step must be run in the Full OS, it will not work while in WinPE.

### Simple Implementation Test

To test this step in a task sequence, once the requirements in Graph as linked to above are complete, create a new task sequence: Add -> Select from Template ->  Autopilot pre-provisioning

{% hint style="info" %}
The "Register with Autopilot" step does not require this template.  It can be added to any task sequence where it is still running in the Full OS to do additional steps. Just make sure the step is added into the Full OS part of the task sequence.
{% endhint %}

* Either update the Apply OS step or replace it with the Apply OS from cloud and configure.  In this example I replaced it and configured
  * Apply operating system from cloud
    * Set Continuation Method to "Use Audit mode"

<figure><img src="/files/YSIc1O4hT8lMIlHndZ11" alt=""><figcaption></figcaption></figure>

* Add a step in the "Full OS" section of the Task Sequence
  * Register with Autopilot
    * Optional, add the group tag

<figure><img src="/files/vaaVN61nFfdOqKA5he21" alt=""><figcaption></figcaption></figure>

During the Task Sequence, the log will show it first is importing the ID, then loop until it confirms it has been imported

<figure><img src="/files/hi71aqoBEKGcWe4T1DVm" alt=""><figcaption></figcaption></figure>

Once confirmed it imported (status = complete), it will then loop waiting for the profile assignment to be assigned.

<figure><img src="/files/BFtIKwOVh4FyQK9sUWkF" alt=""><figcaption></figcaption></figure>

It will eventually report back status = assignedInSync and the step will end

<figure><img src="/files/Ln3IVdXlB65esZSXXh2C" alt=""><figcaption></figcaption></figure>

After the task sequence completes successfully the device will be waiting at the Autopilot logon page:

<figure><img src="/files/SKzaHvTsVB5jvjBirddM" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.2pintsoftware.com/deployr/reference/step-definitions/register-with-autopilot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
