# Autopilot CMD

To make things easier for my Support Staff, I like to drop an Autopilot CMD file on the OS during Deployment so they don't need to even think about Parameters or Configuration Json files

## OSDHelp AutopilotOOBE

You can use OSDHelp to get the proper PowerShell code for creating an Autopilot.cmd with whatever settings you want

![](https://2658300904-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbqMV0UfDLtVGCCM8EV%2F-MhRmK1UfZcRViUCNRhd%2F-MhRqV4YE4YXrsikdPVv%2Fimage.png?alt=media\&token=84b7d7ef-2062-4460-b5e0-a6406b71fa04)

## OOBE

Once you've created an Autopilot.cmd,  you can simply press Shift + F10 to open a Command Prompt and type in Autopilot

* Set ExecutionPolicy
* Add PowerShell Scripts to the Path
* Install AutopilotOOBE PowerShell Module
* Start-AutopilotOOBE with your CustomProfile
  * or Command Line
  * or without if you have the Configuration Json saved

![](https://2658300904-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbqMV0UfDLtVGCCM8EV%2F-MfvZrQOHvfyHi2e8IJP%2F-MfvaWqXYqhNjkfdvO-J%2Fimage.png?alt=media\&token=f879e4d9-a889-42ed-9d33-5b51714fe909)

## Sponsors

{% embed url="<https://www.recastsoftware.com/?utm_source=osdeploy&utm_medium=ad&utm_campaign=web>" %}
OSDeploy is sponsored by Recast Software
{% endembed %}


---

# 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://autopilotoobe.osdeploy.com/autopilot-cmd.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.
