Automatic deployment of Windows 10 from standard installation media
See Unattended.cmd
and
UnattendedFirstBoot.cmd
for details.
Skip Office-related steps and exclude the Office365
folder
from your removable media if not installing Microsoft Office 365 or OneDrive.
-
Clone this repo to your system
-
Copy
Autounattend-home.xml
orAutounattend-pro.xml
(whichever corresponds to your Windows 10 license) toAutounattend.xml
-
Customise
Autounattend.xml
as needed (<LocalAccounts>
at minimum) -
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
-
Personalise (or remove) files in the
Unattended
folder:-
AddPrinters.ps1
: add any printer drivers you reference to theDrivers
folder -
RemoveProvisionedPackages.ps1
: use this document as a reference if needed
-
-
Download the latest OneDriveSetup.exe to the
Office365
folder- The version of OneDrive packaged with Windows doesn't support machine-wide
(
/allusers
) installation
- The version of OneDrive packaged with Windows doesn't support machine-wide
(
-
Download and install the latest Office Deployment Tool from Microsoft's website to the
Office365
folder- The file
Office365/setup.exe
must exist after this step
- The file
-
Edit or replace the Office 365 configuration file at
Office365/Configuration.xml
- Generating a new
Configuration.xml
file using Microsoft's Office 365 Client Configuration Service is recommended
- Generating a new
-
Run
download.cmd
to download Office 365 install files to theSourcePath
location specified inOffice365/Configuration.xml
-
Add system drivers to the
Drivers
folder -
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):
Autounattend.xml
Wi-Fi.xml
(optional)Unattended
(all contents optional exceptUnattended.cmd
andUnattendedFirstBoot.cmd
)Drivers
(optional)Office365
(optional)Office365\OneDriveSetup.exe
(optional)
-
Assuming
<UILanguage>
values in yourAutounattend.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
-
Rinse and repeat