> For the complete documentation index, see [llms.txt](https://osd.osdeploy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osd.osdeploy.com/docs/trash/disk/new-osdisk/old-version/autounattend.xml.md).

# AutoUnattend.xml

19.10.11 David Segura

#### When using New-OSDDisk, I you should RunSynchronousCommand in the windowsPE settings pass with the following Path

```
PowerShell -Command "& {Start-Transcript | Out-Null;New-OSDDisk -Confirm -SelectDisk -Force;Stop-Transcript;Sleep -S 5}"
```

#### It should look something like this

```
<RunSynchronousCommand wcm:action="add">
    <Order>4</Order>
    <Description>New-OSDDisk</Description>
    <Path>PowerShell -Command "& {Start-Transcript | Out-Null;New-OSDDisk -Confirm -SelectDisk -Force;Stop-Transcript;Sleep -S 5}"</Path>
</RunSynchronousCommand>
```

![](https://3420392058-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpnxLqvh8u2fEz86kIM%2F-LqtR4kHSWfYRCsvSxhi%2F-LqtSz_uFvdViwQtQZ57%2Fimage.png?alt=media\&token=cdf03b79-7cc2-48c5-a047-4bbbc1b3641b)

#### The examples below will show what different Disk configurations look like with the AutoUnattend.xml

## BIOS MBR | 1 Disk | RAW

In this example, the only thing I had to press was P to Partition the Disk as it didn't need cleaning.  Keep in mind the Transcript display was my doing to show where the file was.  That can be left out or even hidden

![](https://3420392058-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpnxLqvh8u2fEz86kIM%2F-LqtR4kHSWfYRCsvSxhi%2F-Lqv4-CD05KRFg7HzUgT%2Fimage.png?alt=media\&token=049a6d5f-86a2-4926-a5ed-cea1b7365fad)

And here are the Partitions ready for Windows Setup

![](https://3420392058-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpnxLqvh8u2fEz86kIM%2F-LqtR4kHSWfYRCsvSxhi%2F-Lqv5EowLzDeVnFJZFqK%2Fimage.png?alt=media\&token=eeb7cf48-1422-4c14-8b57-0efe130c7b98)

## BIOS MBR | 1 Disk | Existing Data

Unlike the RAW disk in the previous example, this had to have the Disk cleaned so there was an additional Confirm prompt

![](https://3420392058-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpnxLqvh8u2fEz86kIM%2F-LqtR4kHSWfYRCsvSxhi%2F-Lqv4sJ7N4rsvpcu7KKs%2Fimage.png?alt=media\&token=aff3a157-129f-4d89-9478-8ebfd7688cba)
