Skip to content

Automatic deployment of Windows 10 from standard installation media

License

Notifications You must be signed in to change notification settings

lkrms/win10-unattended

Repository files navigation

win10-unattended

Automatic deployment of Windows 10 from standard installation media

What it does

See Unattended.cmd and UnattendedFirstBoot.cmd for details.

How to use it

Skip Office-related steps and exclude the Office365 folder from your removable media if not installing Microsoft Office 365 or OneDrive.

  1. Clone this repo to your system

  2. Copy Autounattend-home.xml or Autounattend-pro.xml (whichever corresponds to your Windows 10 license) to Autounattend.xml

  3. Customise Autounattend.xml as needed (<LocalAccounts> at minimum)

  4. Replace or remove Wi-Fi.xml, e.g. on a system with your Wi-Fi network already configured:

    rem List configured Wi-Fi profiles
    netsh wlan show profiles
    
    rem Export the relevant profile **without passphrase encryption**
    netsh wlan export profile key=clear name="MySSID"
    
    rem Rename the generated XML file to Wi-Fi.xml
    move "Wi-Fi-MySSID.xml" "Wi-Fi.xml" /Y
  5. Personalise (or remove) files in the Unattended folder:

  6. Download the latest OneDriveSetup.exe to the Office365 folder

    • The version of OneDrive packaged with Windows doesn't support machine-wide (/allusers) installation
  7. Download and install the latest Office Deployment Tool from Microsoft's website to the Office365 folder

  8. Edit or replace the Office 365 configuration file at Office365/Configuration.xml

  9. Run download.cmd to download Office 365 install files to the SourcePath location specified in Office365/Configuration.xml

  10. Add system drivers to the Drivers folder

  11. Copy the following files and directories to the root of a USB flash drive and connect it to the target system when booting into Windows 10 Setup (alternatively, if installing Windows from a USB drive with sufficient capacity, you can copy everything to the root of the same drive rather than using two flash drives):

  12. Assuming <UILanguage> values in your Autounattend.xml match your install media language, the only manual step will be choosing an install partition

    • Leave the USB flash drive connected until the login screen appears
  13. Rinse and repeat

About

Automatic deployment of Windows 10 from standard installation media

Resources

License

Stars

Watchers

Forks