Install Windows automatically from a USB drive
You can create a bootable USB key that includes the Windows Setup installation program to install Windows onto a new PC. With a few extra steps, you can automate the installation program to skip screens such as the product key screen.
Download Windows. For more info, see Get the tools needed to customize Windows.
Right-click the file, and click Mount. The ISO files appear as a new drive.
Set up a bootable USB key with the Windows installation files
From the Start screen, type diskpart, open the shortcut, and click Yes to open the window as an administrator. The DiskPart window appears.
Select your USB drive:
list disk select disk 1
Format the drive using the FAT32 format, and mark it as an active, bootable drive.
clean create partition primary format quick fs=fat32 label="Setup x64" active assign letter="J"
Close the DiskPart window.
Copy the Windows installation files onto the USB flash drive.
- From the Start screen, type diskpart, open the shortcut, and click Yes to open the window as an administrator. The DiskPart window appears.
Automate the Windows installation by using a sample answer file together with your company’s info and a product key
Download the Windows Deployment sample answer files. In Notepad, open the file for your PC type, for example, Autounattend_x64_UEFI.xml. This file contains all of the settings that are needed to automate the installation process.
If you're creating PCs for consumers, add your technical support info to the
OEMInformationsection, including your company name (
Manufacturer) and website (
SupportURL). For info, see the Licensing and Policy guidance on the OEM Partner Center.
Optional: change the language shown by the Windows installation program. In the
Microsoft-Windows-International-Core-WinPEsection, change from
en-USto your own language/culture. A list of language/cultures appears here: Available Language Packs for Windows.
Enter one of your product keys in the
Key. You can re-use the same key for multiple installations because the key is used to identify the edition only (for example, Windows 8.1 Pro), and isn't used to activate Windows.
Save the file as
Autounattend.xmlin the root folder of the USB drive.
Warning Be careful with this drive! This USB key is now ready to wipe the hard drive of any PC that it boots to. Label it well, and please don't leave it in your personal PC.
- Download the Windows Deployment sample answer files. In Notepad, open the file for your PC type, for example, Autounattend_x64_UEFI.xml. This file contains all of the settings that are needed to automate the installation process.
Boot to the USB drive to install Windows on a new PC
Insert the USB drive and start the PC. The setup program uses the
Autounattend.xmlfile to automatically install Windows. When it's done, the Personalize screen appears. This screen indicates the start of the Out of Box Experience (OOBE) setup.
You can now turn off the PC by pressing and holding the power button. Do not complete the OOBE for your customer.
If you're only installing a few PCs, this might be all of the customization you need to do. Send the PC to your customers together with their individual product key. The individual product key might or might not be the same as the one that you used to install Windows, but the editions must match.
If you have problems installing Windows by using this method, try the following steps:
You can set up Windows with apps, drivers, and languages that your customers need. To do this, you can temporarily skip the OOBE, and make changes from inside Windows in a maintenance mode known as audit mode.
|Before you start, review the Windows Engineering Guide (WEG), which describes everything that you are legally permitted to change and shows you how to make the changes.|
Turn on the PC. The Personalize screen appears.
Press Ctrl+Shift+F3. The PC reboots, and the Start screen opens.
Open the Desktop. The System Preparation Tool (Sysprep) opens. Close Sysprep for now.
Copy and install apps, drivers, and languages to the PC.
To download language packs and language Interface Packs (LIPs), go to the OEM Partner Center. For instructions about how to install LIPs, see How to Add Language Interface Packs. Not all LIPs are available at Windows 8.1 release. Some languages might be released at a later date. For a complete list of available LIP languages, see the OEM Partner Center.
Start the Command Prompt as an Administrator.
Create a snapshot of the PC by using Windows image capturing tools. You can use tools in the Windows ADK or other third-party tools.
Before you can take a snapshot, you’ll need to generalize the PC. This prepares the Windows files to be captured and applied to other PCs.
C:\Windows\System32\Sysprep\sysprep /oobe /generalize /shutdown
Do not allow the PC to reboot until the image has been captured, or you’ll have to generalize the PC again.
Note If you don't need a snapshot, you can prepare the PC for the customer using the following command instead:
C:\Windows\System32\Sysprep\sysprep /oobe /rebootSysprep prepares the PC to start at the OOBE and then reboots the PC. The Region and language screen appears. At this point, you can power off the PC and send it to your customer. (No shutdown is required.)