AutoUnattend.xml

Here's an example of adding this to an AutoUnattend.xml. In this example, I have added some Parameters

  • UEFI System Partition = 500MB
  • Recovery Partition = 800MB
  • OS Partition Label = OSDeploy

I've also added a Transcript which saves to X:\Sources by default, and a Sleep timeout of 5 seconds so I can get a screenshot

1
<RunSynchronousCommand wcm:action="add">
2
<Order>4</Order>
3
<Description>New-OSDDiskWinPE</Description>
4
<Path>PowerShell -Command "& {Start-Transcript|Out-Null;New-OSDDiskWinPE -SSU 500MB -SR 800MB -LO OSDeploy;Stop-Transcript;Sleep -S 5}"</Path>
5
</RunSynchronousCommand>
Copied!

This is what it looks like during RunSynchronousCommand processing

And the Partitions in Windows Setup

Last modified 2yr ago
Copy link