LogoLogo
OSDeploy.comTwitterGitHubPowerShell Gallery
  • OSD PowerShell Module
  • Functions
  • Docs
    • OSDCloud
    • OSDPad
    • OSDHelp
      • Autopilot
    • Guides
      • UEFI System Firmware Update
      • In Your Code
      • New-OSDBoot.usb
      • Partitions
        • New-OSDDisk (Information)
        • New-OSDDiskWinPE (GPT)
        • New-OSDDiskWinPE (2 Disks)
        • AutoUnattend.xml
    • OSDWindowsImage
    • Windows Setup Environment
      • Execution Policy
      • WinSE Settings
      • Import Modules
      • Automation
    • Release Notes
    • Trash
      • Adk
        • Edit-ADKwinpe.wim
        • Get-ADKpaths
        • New-ADK.iso
        • New-ADKcopype
      • Appx
      • Block
      • CloudDriver
      • Dell
        • Get-DellCatalogPC
        • Get-MyDellBIOS
        • Update-MyDellBios
      • Disk
        • Backup-Disk.ffu
        • Clear-LocalDisk
        • Clear-USBDisk
        • Get-LocalDisk
        • Get-OSDDisk
        • Get-USBDisk
        • New-OSDisk
          • Old Version
            • Sandbox
            • Partition Layout
            • Partition Sizes
            • Volume Labels
            • AutoUnattend.xml
        • Get-USBVolume
      • Dism
        • Get-MyWindowsCapability
        • Get-MyWindowsPackage
        • Set-WimExecutionPolicy
        • Set-WindowsImageExecutionPolicy
      • Display
        • Get-VidConRes
      • Driver
        • Get-OSDDriverWmiQ
        • Get-OSDDriver
      • General
        • Get-OSD
        • Get-OSDClass
        • Get-OSDGather
        • Get-OSDPower
        • Get-RegCurrentVersion
        • Get-SessionsXml
        • Save-OSDDownload
      • MyBitLocker
        • Get-MyBitLockerKeyProtectors
        • Backup-MyBitLocker
        • Save-MyBitLockerExternalKey
        • Save-MyBitLockerKeyPackage
        • Save-MyBitLockerRecoveryPassword
        • Unlock-MyBitLockerExternalKey
      • OOBE
      • PSModule
        • Copy-PSModuleToFolder
        • Copy-PSModuleToWim
        • Copy-PSModuleToWindowsImage
      • WebConnection
      • WebPSScript
      • WinPEWim
      • WinPE
        • Enable-PEWimPSGallery
        • Get-OSDWinPE
Powered by GitBook
On this page
  • BIOS MBR | 1 Disk | RAW
  • BIOS MBR | 1 Disk | Existing Data

Was this helpful?

  1. Docs
  2. Trash
  3. Disk
  4. New-OSDisk
  5. Old Version

AutoUnattend.xml

19.10.11 David Segura

PreviousVolume LabelsNextGet-USBVolume

Last updated 5 years ago

Was this helpful?

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>

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

And here are the Partitions ready for Windows Setup

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