OEM Deployment of Windows 10 For Desktop Editions
OEM Deployment of Windows 10 For Desktop Editions
OEM Deployment of Windows 10 For Desktop Editions
This guide is intended for OEMs, and applies to Windows 10 for desktop
editions (Home, Pro, Enterprise, and Education). IT professionals using this
guide should have prior knowledge of Windows basic administration and
troubleshooting. For more information about what's new in Windows 10
deployment, see Windows 10 Deployment and Tools.
For the latest version, see the Windows 10, version 1607 version of this
guide.
Hardware
1 1b 2
configuration
RAM 1 GB 2 GB 4 GB
Pen No Yes No
You must use the matching version of the Windows ADK for the images that
you plan to customize. For example, if you are customizing an image based
on Windows 10, version 1511, you must use the Windows ADK from
Windows 10, version 1511.
Prerequisites
To complete the steps outlined in this guide, OEMs will require:
This guide uses Windows 10 RTM images as examples for creating images.
You should check for the latest OPK
on https://www.microsoftoem.com before completing the sections in this
guide.
X20-74669 Windows 10 Home SL, version 1511 32/64 Eng Intl OPK
X20-74677 Windows 10, version 1511 32/64 MultiLang OPK Feat on Demand
X20-87906 Windows 10, version 1511 32-BIT/X64 MultiLang OPK App Update
This guide uses samples of configuration files and scripts, as well as storing
a copy of the Windows installation files on a USB key. Before starting this
guide, complete the steps in Creating My USB-B.
If you use an x86 Windows 10 image, copy the x86 WinPE folder
structure:
Dism /mount-image
/imagefile:c:\WinPE_amd64\media\sources\boot.wim /index:1
/mountdir:c:\winpe_amd64\mount
If you use an x86 Windows 10 image, mount the x86 WinPE image:
Dism /mount-image
/imagefile:c:\WinPE_x86\media\sources\boot.wim /index:1
/mountdir:c:\winpe_x86\mount
Add drivers
Use the Dism command with the /Add-Driver option.
Note: To install all of the drivers in a folder and all its subfolders use the
/recurse option.
Cleanup boot.wim
Run cleanup to reduce the disk and memory footprint of WinPE, which is
suited for lower-spec devices (such as devices with 1 GB Ram or 16 GB
Storage). This increases compatibility with a wider range of devices.
Beginning with Windows 10, version 1607, you can specify the /Defer
parameter with /Resetbase to defer any long-running cleanup operations to
the next automatic maintenance. But we highly recommend
you only use /Defer as an option in the factory where DISM /Resetbase
requires more than 30 minutes to complete.
Notepad.exe c:\winpe_amd64\mount\windows\system32\startnet.cmd
powercfg /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
Notepad.exe c:\winpe_x86\mount\windows\system32\startnet.cmd
powercfg /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
Del c:\winpe_amd64\media\sources\boot.wim
Del c:\winpe_x86\media\sources\boot.wim
Answer files created in Windows System Image Manager (Windows SIM) are
associated with a particular Windows image. This enables validating the
settings in the answer file to the settings available in the Windows image.
However, because any answer file can be used to install any Windows
image, if there are settings in the answer file for components that do not
exist in the Windows image, those settings are ignored.
Install Windows
1. Connect the USB-A drive and boot the Reference computer.
Note: If booting with USB drive fails, make sure USB boot has been
prioritized instead of HDD boot. To do so, it may be necessary to go to
the Reference Computers/Devices BIOS menu and adjust the boot
priority order so that the USB Key is at the top of the list.
2. After WinPE has been booted, insert USB-B.
3. At the X:\windows\system32> prompt, type diskpart and press
the <Enter> key to start Diskpart.
4. At the \DISKPART> prompt type list volume.
Note: Check what letter USB-B has been assigned under the Ltr"
column (Example: E). This is the drive letter that will be used
throughout the installation.
5. Type exit to quit Diskpart.
6. Execute setup.exe with an answer file and install Windows 10
Update with additional OEM customizations. Copy the commands in
the following table.
E:\MyWindows\Setup.exe /unattend:E:\Configset\OA3.0\AutoUnattend.xml
E:\MyWindows\Setup.exe /unattend:E:\Configset\non_oa3.0\AutoUnattend.xml
Note: Many Windows features, including the Start menu and the Settings
menu, do not work in this environment.
Apps and Store opportunities
Through Windows 10 and the Windows Store, you have tremendous
opportunities for brand and device differentiation, revenue creation, and
customer access.
Windows Store apps are at the center of the Windows 10 experience. They
are Windows universal apps, so you can build apps for desktops, tablets, or
phones that run Windows 10. As an OEM, you can provide an engaging
customer experience and increase brand loyalty by providing a great set of
value-added software and services along with the high-quality hardware
that you build.
Important: The key below must be set in Audit mode. If you have completed
the Install Windows section, you should be in Audit mode.
Change the registry setting and add the OEM ID. OEM Windows Store
Program participants, contact PartnerOps@microsoft.com to get your OEM
ID.
OEMI HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\St
D ore, (REG_SZ) OEMID
Regedit.exe
6. OEMID
1. After setup has finished, the computer logs into Windows in Audit
mode automatically as an Administrator.
2. Verify the changes which were stated in the answer file (see
manufacturer name, support phone number and other
customizations).
3. The image must be generalized before being used as a
manufacturing image; select the Generalize checkbox.
4. In the System Cleanup Action box, select Enter System Out-of-Box
Experience.
5. In the shutdown options box select Shutdown.
MD e:\scratchdir
Offline servicing
Modify your images by adding and removing languages, drivers, and
packages.
Mount image
Insert USB-B into your technician computer.
2. Md C:\mount\windows
3.
7.
8. Dism /Mount-Image
/ImageFile:C:\mount\windows\Windows\System32\Recovery\winre.wim
/index:1 /MountDir:C:\mount\winre
attrib -h -a -s C:\mount\windows\Windows\System32\Recovery\winre.wim
Add drivers
1. Adding driver packages (.inf files) one by one. SampleDriver\driver.inf
is a sample driver package that is specific to the computer model.
(Type a specific driver path). If there are multiple driver
packages please skip to the next step.
2. Multiple drivers can be added on one command line if a folder is
specified instead of an .inf file. To install all of the drivers in a folder
and all its subfolders, use the /recurse option.
4.
Important: If the driver contains only the installer package and doesnt have
an .inf file, the driver in AUDIT mode may be installed by double-clicking the
corresponding installer package. Some drivers may be incompatible with
Sysprep tool; they will be removed after sysprep generalize even if they
have been injected offline.
PersistAllDeviceInstalls
To save time during installation and to speed up the out-of-box experience
for end users, instruct Windows Setup that the hardware on the reference
computer and the destination computers are identical. By doing this,
Windows Setup maintains driver configurations during image capture and
deployment.
The following XML output specifies that device drivers will not be
uninstalled during the generalize pass.
<PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
x64/x86 Distinction
OEMs using x64 Windows 10 image, add the following setting to USB-
B\Answerfiles\OA3.0\UnattendSysprep.xml:
<settings pass="generalize">
<component name="Microsoft-Windows-PnpSysprep"
processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
</component>
</settings>
OEMs using x86 Windows 10 image, add the following setting to USB-
B\AnswerFiles\OA3.0\UnattendSysprep.xml:
<settings pass="generalize">
<PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
</component>
</settings>
DoNotCleanupNonPresentDevices
The DoNotCleanUpNonPresentDevices setting specifies whether plug-
and-play information for devices that are not detected on the destination
computer during the next specialize should remain on the computer.
However, when
both PersistAllDeviceInstalls and DoNotCleanUpNonPresentDevices
are set to true, the device information remains on the computer. For more
information, see DoNotCleanUpNonPresentDevices.
OEMs using x64 Windows 10 image, add the following setting to USB-
B\AnswerFiles\OA3.0\UnattendSysprep.xml:
<settings pass="generalize">
<component name="Microsoft-Windows-PnpSysprep"
processorArchitecture="amd64"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices >
</component>
</settings>
OEMs using x86 Windows 10 image, add the following setting to USB-
B\AnswerFiles\OA3.0\UnattendSysprep.xml:
<settings pass="generalize">
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices >
</component>
</settings>
Microsoft-Windows-
Language UI text, including basic
Client-Language- None
pack Pack_x64_es-es.cab Cortana capabilities.
Fonts.
Optical Microsoft-Windows-
Recognizes and outputs
character LanguageFeatures- Basic
OCR-fr-fr-Package text in an image.
recognition
Obtain the Win 10 32 64 MultiLang OPK LangPackAll and the Win 10 32-BIT
x64 MultiLang OPK Feat on Demand from DOC Center.
Note: you must use the Microsoft Media Tool from SOC Resources to merge
the DDP folder structure into a mountable image for the Win 10 32-BIT x64
MultiLang OPK Feat on Demand From DOC Center.
1. Copy the x86 and x64 language pack .cab files to E:\Languagepacks.
2. Copy partial language packs to USB-B.
3. Highlight all de-de Features on Demand files and copy to
E:\LanguageFeaturePacks.
Where E: is drive letter of USB-B
Important: Do not install a language pack after an update. If an update
(hotfix, general distribution release [GDR], or service pack [SP]) is installed
that contains language-dependent resources before a language pack is
installed, the language-specific changes that are contained in the update
are not applied the update will need to be reinstalled. Always install
language packs before installing updates.
For packages with dependencies, make sure you install the packages in
order. For example, to enable Cortana, install: the language pack .cab file,
then Basic, then TextToSpeech, then Speech, in this order. If youre
not sure of the dependencies, its OK to put them all in the same folder, and
then add them all using the same DISM /Add-Package command, as shown
in the examples in the following tables (where E: is the drive where
language pack exists). Beginning with Windows 10 version 1607, language
pack file names include the Windows edition, platform architecture, and
locale. The Features On Demand (FOD) packages should be from media that
matches the platform architecture of the device. For example, use FOD
packages from x64 media for an x64-based computer.
attrib -h -a -s C:\mount\windows\Windows\System32\Recovery\winre.wim
where C is the drive letter of the drive that contains the image.
Review the resulting list of packages and verify that the list contains
the package. For example:
OEMs will need to remove all en-US language packages from the system.
The following sample removes pre-installed languages from Windows 10
Professional.
Error: 0x800f0825
3.
7. Set the timezone for the region of the default language applied:
The following example shows how to extract KBs from the OPK download
from SOC.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\UBR
Please verify on SOC (Software Order Center) the latest version of the
"Windows Desktop OPK Supplemental" package.
Note: it is no longer necessary to remove the Get Started inbox app. If you
do try to remove it using DISM, the command may fail.
**Note: There are 27 in-box apps to re-install into the image. Use the list
below to identify the apps to re-apply to the image. If a Windows 10
supplemental update does not contain all 27 apps, install the remaining
apps from the previous Windows 10 supplemental OPK. **
[Desktop_2015.1071.40.0_Microsoft.Camera.appxbundle_Windows10_Preins
tallKit]
[Desktop_Builder3D_10.9.50.0_x86_x64.appxbundle_Windows10_PreinstallK
it]
[Desktop_Mobile_x86_ARM_1.10.26007.0_MicrosoftMessaging.appxbundle_
Windows10_PreinstallKit]
[Desktop_x86_x64_10.1510.9010.0_WindowsPhone.appxbundle_Windows10
_PreinstallKit]
[Desktop_x86_x64_15.1001.16470.0_WindowsPhotos.appxbundle_Windows
10_PreinstallKit]
[Desktop_x86_x64_3.6.13281.0_Music_Desktop_Production.appxbundle_Win
dows10_PreinstallKit]
[Desktop_x86_x64_3.6.13571.0_Video_Desktop_Production.appxbundle_Win
dows10_PreinstallKit]
[Desktop_x86_x64_ARM_10.0.2840.0_MicrosoftPeople.appxbundle_Windows
10_PreinstallKit]
[Desktop_x86_x64_ARM_10.1510.13110.0_SoundRecorder.appxbundle_Wind
ows10_PreinstallKit]
[GetSkype_3.2.1.0_x86_bundle.appxupload_Windows10_PreinstallKit]
[Microsoft.ConnectivityStore_8wekyb3d8bbwe.appxbundle_Windows10_Prei
nstallKit]
[Microsoft.WindowsStore_8wekyb3d8bbwe_2015.1013.14.0.1509.Universal.
appxbundle_Windows10_PreinstallKit]
[Mobile_Desktop_x86_x64_ARM_1.10.23004.0_CommsPhone.appxbundle_Wi
ndows10_PreinstallKit]
[MoneyApp_4.6.169.0_x86.appxbundle_Windows10_PreinstallKit]
[News_4.6.169.0_x86.appxbundle_Windows10_PreinstallKit]
[PC_storeandTH2_6314.2375.officehubim.appxbundle_Windows10_Preinstall
Kit]
[PC_Sway_6216.2025.storyim.appxbundle_Windows10_PreinstallKit]
[PC_TH2RC_store.16.0.6131.1005.onenoteim.appxbundle_Windows10_Prein
stallKit]
[PC_TH2_store.16.0.6308.4227.Sc6131.1009.outlookim.appxbundle_Window
s10_PreinstallKit]
[Solitaire_3.4.9241.0_x86_x64.appxbundle_Windows10_PreinstallKit]
[Universal_Maps.Windows_4.1509.50911.0_ARM_x64_x86.appxbundle_Wind
ows10_PreinstallKit]
[Universal_Sports_4.6.169.0_x86.appxbundle_Windows10_PreinstallKit]
[Universal_Weather_4.6.169.0_x86.appxbundle_Windows10_PreinstallKit]
[Universal_x86_x64_ARM_10.1510.13020_WindowsCalculator.appxbundle_W
indows10_PreinstallKit]
[Universal_x86_x64_ARM_10.1510.14020.0_WindowsAlarms.appxbundle_Wi
ndows10_PreinstallKit]
[Universal_x86_x64_ARM_2.4.13.0_GetStarted.appxbundle_Windows10_Prei
nstallKit]
[XboxApp_9.9.30030.0]
To take advantage of all these new features and have the most robust and
complete Start customization experience for Windows 10, consider creating
a LayoutModification.xml file. This file specifies how the OEM tiles should be
laid out in Start. For more information about how to customize the new Start
layout, see Customize the Windows 10 Start screen.
1. Create Layoutmodification.xml.
Note: It is recommended to start with the sample on USB-
B\StartLayout\layoutModification.xml as it conforms to the samples in
this document (example only).
The Sample LayoutModification.xml shows two groups called
Fabrikam Group 1" and Fabrikam Group 2, which contain tiles that
will be applied if the device country/region matches whats specified
in Region (in this case, the regions are Germany and United States).
Each group contains three tiles and the various elements you need to
use depending on the tile that you want to pin to Start.
Keep the following in mind when creating your LayoutModification.xml
file:
o If you are pinning a Windows desktop application using
the start:DesktopApplicationTile tag and you dont know
the applications application user model ID, you need to create
a .lnk file in a legacy Start Menu directory before first boot.
o If you use the start:DesktopApplicationTile tag to pin a
legacy .url shortcut to Start, you must create a .url file and add
this file to a legacy Start Menu directory before first boot.
For those scenarios, you can use the following directories to put
the .url or .lnk files:
o %APPDATA%\Microsoft\Windows\Start Menu\Programs\
o %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\
2. Save the LayoutModification.xml file.
3. Add your LayoutModification.xml file to the Windows image. Youll
need to put the file in the following specific location before first boot.
If the file exists, you should replace the LayoutModification.XML that
is already included in the image.
4. Copy E:\StartLayout\layoutmodification.xml
c:\mount\windows\users\default\AppData\Local\Microsoft\Windows\Shell\
o Copy e:\StartLayout\Bing.url
"C:\mount\windows\ProgramData\Microsoft\Windows\Start
Menu\Programs\"
o copy e:\StartLayout\Paint.lnk
"c:\mount\windows\ProgramData\Microsoft\Windows\Start
Menu\Programs"
MD c:\mount\windows\windows\system32\oobe\info\default\1033
MD c:\mount\windows\windows\system32\oobe\info\default\1031
4. Create license term document for each language specified. Move
each license term document to the corresponding language folder.
For example, move the agreement.rtf file in English to:
C:\mount\windows\Windows\System32\oobe\info\default\1033\
And move the agreement.rtf file in German to:
C:\mount\windows\Windows\System32\oobe\info\default\1031\
Copy E:\resources\agreement.rtf
c:\mount\windows\windows\system32\oobe\info\default\1033
Copy e:\configset\oobe.xml
c:\mount\windows\windows\system32\oobe\info\default\1033
Copy /y E:\AnswerFiles\Non_OA3.0\Unattend.xml
For non-OA 3.0 C:\Mount\Windows\Windows\Panther
systems: (where E:\ is USB-B)
Optimize WinRE
1. Increase scratchspace size.
where C is the drive letter of the drive that contains the image.
This process can take a few minutes.
4. Make a backup copy of the updated Windows RE image:
Troubleshoot: If you cannot see winre.wim under the specified
directory, use the following command to make the file visible:
attrib -h -a -s C:\mount\windows\Windows\System32\Recovery\winre.wim
dism /export-image
/sourceimagefile:c:\mount\windows\windows\system32\recovery\winre.wim
/sourceindex:1 /DestinationImageFile:e:\images\winre_bak.wim
Del c:\mount\windows\windows\system32\recovery\winre.wim
Copy e:\images\winre_bak.wim
c:\mount\windows\windows\system32\recovery\winre.wim
6. Dir "C:\mount\windows\Windows\System32\Recovery\winre.wim"
Use the following partition layout size guidance to determine the size
of your recovery partition in createartitions-<firmware>.txt files. The
amount of free space left is after you copy winre.wim to the hidden
partition.
Please reference Disk Partition rules for more information.
o If the partition is less than 500 MB, it must have at least 50 MB
of free space.
o If the partition is 500 MB or larger, it must have at least 320 MB
of free space.
o If the partition is larger than 1 GB, we recommend that it
should have at least 1 GB free.
where C is the drive letter of the drive that contains the image.
This process may take several minutes.
Deploy the image to new computers
In this section, the device is prepared for deployment by booting into
WinPE, creating a partition layout, and deploying the image.
Boot to WinPE
1. On the technician computer, locate the following files in USB-
B/Deployment destination. Please see Creating My USB-B to create
and place the files in the correct paths. Skip this step if it was done
previously.
2. Connect the USB-A drive and boot the reference computer.
3. After WinPE has been booted, connect USB-B.
4. At the X:\Windows\system32> command line,type diskpart and
press <Enter> to start Diskpart.
5. At the \DISKPART> command line, type list volume.
6. Under the Label column, identify the USB-B drive and note the
letter of the volume under the Ltr column (for example, E).
7. Type exit to quit Diskpart.
Deploy the image
Using the deployment script walkthrough-deploy.bat in USB-B/Deployment
folder, lay out the partitions on the device and apply the image.
E:\Deployment\walkthrough-deploy.bat E:\Images\BasicImage.wim
There are several pauses in the script. You will be prompted Y/N for the
Apply operation if this is a Compact OS deployment.
Note: Only use Compact OS on Flash drive based devices because Compact
OS performance depends heavily on the storage device capabilities.
Compact OS is NOT recommended on rotational devices. For more
information, see Compact OS.
After the computer boots to the OOBE screen, press this key combination to
boot into Audit mode:
Ctrl+Shift+F3
Note: This guide doesnt cover the PIPC scenarios for OEMs in Japan.
2. Copy files from mounted drive to USB-B (where E:\ is driver letter for
USB-B) E:\OfficeV16.
5. Copy the folder Office from mounted drive X20-39283 Office 2016
v16 32-BIT X64 English OPK\Software - DVD\X20-37728 SW DVD5
Office Pro 2016 32 64 English C2ROPK Pro HS HB OEM\X20-37728.img
to USB-B (where E:\ is drive letter for USB-B) E:\OfficeV16.
2. Find the drive letter for USB-B; for this example USB-B is E:.
3. Notepad ConfigureO365Home.xml.
Note: the only Product ID that needs to be specified in the configuration.xml file is
O365HomePremRetail. If the user enters a key for another product, such as for Office
Home & Student 2016, then Office will automatically be configured as the product
associated with that key.
7. Type:
Setup.exe /configure ConfigureO365Home.xml
Pin Office tiles to the Start menu
You must pin the Office tiles to the Start menu, otherwise Windows will
remove the Office files during OOBE boot phase.
Note: You must be using at least version 10.0.10586.0 of Windows 10. The
following steps dont work with earlier versions of Windows 10.
2. notepad
C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\layoutmodification.xml.
6. copy
C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\layoutmodification.xml
c:\recovery\OEM
Once the machine is booted to desktop after going through OOBE, the
Start menu will have these three tiles appended as shown in the
following diagram:
Configure the Setup experience for the user
After you install Office on the device, you also need to configure the Setup
experience for the user. This is the experience the user sees when they
open an Office app for the first time on the device. This also is intended to
ensure that Office is properly licensed and activated.
Setup
Description
mode
In this mode, a customer can choose to try, buy, or activate Office with an
existing account, PIN, or product key. This mode doesnt support Activation
OEM for Office (AFO) or AFO late binding. Therefore, if you choose this mode,
you need to provide the customer with an Activation Card (formerly called a
product key card or a Microsoft Product Identifier (MPI) card).
This mode supports the try, buy, or activate experience of the OEM mode as
well as supporting AFO and AFO late binding. This mode supports Office
OEMTA
activation through the devices Windows product key, which means the
customer wouldnt need to enter a 5x5 product key code.
OEM Mode Provide user with activation card
oemsetup.cmd Mode=OEM
Note: If Office Tiles are automatically pinned as part of the Microsoft Group
of Start Menu tiles, skip the entire following section about tile replacement.
For Office single image v15, pin the Office tile as medium sized tile or
larger.
For Office Mobile or Office single image v15 successor, pin 3 Office
tiles (Word, Excel, PowerPoint tiles) as small sized tiles or larger in a
2x2 orientation.
Oemsetup.en-us.cmd
Oemsetup.en-us.oa30.cmd
After the process is completed, the Microsoft Office application tile will be
placed on the Start screen. However, the user can install only one language
version of Office Single Image v15.4. By default, the language version of the
OOBE application matches the Windows language settings and the Office
Single Image v15.1 language that is preloaded on the computer. If this
match doesnt take place, the language dialog box will contain languages
that are based on the Office 2013 preloaded languages.
Image-less recovery
Push-button reset features no longer require or support a separate
recovery image on a local partition or on media. This significantly
reduces the disk space needed to support the features, and makes
recovery possible even on devices with limited storage capacity.
Recovers to an updated state
Push-button reset features now recover the Operating System (OS) and
drivers (including device applets that are installed as part of INF-based
driver packages) to an updated state. This reduces the amount of time
users have to spend reinstalling the OS updates and drivers after
performing a recovery.
Refresh your PC
Fixes software problems by reinstalling the OS while preserving the
user data, user accounts, and important settings. All other
preinstalled customizations are restored to their factory state. In
Windows 10, this feature no longer preserves user-acquired Universal
Windows apps1.
Reset your PC
Prepares the PC for recycling or for transfer of ownership by
reinstalling the OS, removing all user accounts and contents (e.g.
data, Windows desktop applications, and Universal Windows apps),
and restoring preinstalled customizations to their factory state.
Bare metal recovery
Restores the default or preconfigured partition layout on the system
disk, and reinstalls the OS and preinstalled customizations from
external media.
For more information, see:
Push-button reset
md E:\ScanState_amd64
md E:\ScanState_x86
Create a migration XML file used to restore registry values manually entered
during manufacturing process. The sample below restores the OEMID
registry value set earlier in this document.
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
<displayName>OEMID</displayName>
<role role="Settings">
<rules>
<include>
<objectSet>
<pattern
type="Registry">HKLM\Software\Microsoft\Windows\CurrentVersion\Store
[OEMID]</pattern>
</objectSet>
</include>
</rules>
</role>
</component>
</migration>
Create recovery package using ScanState
Use the ScanState tool to capture the installed customizations into a
provisioning package, and save it in the folder c:\Recovery\customizations.
This document uses the samples from USB-B\Recovery\RecoveryImage to
create the scanstate package.
Important: The ScanState package used by PBR must be a .ppkg file stored
in C:\Recovery\Customizations folder or PBR will not be able to restore the
package.
1. Create the recovery OEM folder and copy the contents of USB-
B\Recovery\RecoveryImage.
3.
```
Mkdir c:\recovery\customizations
```
```syntax
Mkdir c:\recovery\customizations
```
```syntax
```
```syntax
```
4. C:\Windows\System32\Sysprep\sysprep
/unattend:c:\recovery\oem\Unattend.xml /generalize /oobe /shutdown
DISM /Apply-CustomDataImage
/CustomDataImage:C:\Recovery\Customizations\apps.ppkg /ImagePath:C:\
/SingleInstance
Important: By default, non-major updates (e.g. ZDPs, KBs, LCUs) are not
restored. To ensure that updates preinstalled during manufacturing are not
discarded after recovery, they should be marked as permanent by using the
/Cleanup-Image command in DISM with the /StartComponentCleanup and
[/ResetBase [/Defer]] options. Updates marked as permanent are always
restored during recovery. Running this is a must to retain updates applied
during manufacturing in order for PBR to restore them in first 28 days.
MD c:\scratchdir
Dism /Cleanup-Image /Image:C:\ /StartComponentCleanup /resetbase
/scratchdir:c:\scratchdir
RD c:\scratchdir
MD c:\scratchdir
RD c:\scratchdir
E:\Deployment\walkthrough-deploy.cmd E:\Images\FinalImage.wim
Promoted Apps are installed right after OOBE on Windows 10 PCs. Two tiles
will be downloaded apps and three tiles will be deep links to the Store. This
mix can change over time. If the PC is not connected to the internet during
OOBE, placeholder tiles will be used until the PC is connected.
Verify recovery
1. Verify that your customizations are restored after recovery, and that
they continue to function by running the Refresh your
PC and Reset your PC features from the following entry points:
o Settings
1. From the Start Menu, click Settings.
2. In the Settings app, click Update & security, and then
click Recovery.
3. Click Get Started under Reset this PC and follow the
on-screen instructions.
o Windows RE
1. From the Choose an option screen in Windows RE,
click Troubleshoot.
2. Click Reset this PC and then follow the on-screen
instructions.
2. Verify that recovery media can be created, and verify its functionality
by running the bare metal recovery feature:
o Launch Create a recovery drive from Control Panel.
o Follow the on-screen instructions to create the USB recovery
drive.
o Boot the PC from the USB recovery drive.
o From the Choose an option screen, click Troubleshoot.
o Click Recover from a drive and then follow the on-screen
instructions.
Note: The Push-button reset UI has been redesigned in Windows 10.
The Keep my files option in the UI now corresponds to the Refresh your
PC feature, whereas the Remove everything option corresponds to
the Reset your PC feature. Verify recovery media can be created.
Final shipment
OEMs must power on the PC at least once, and allow the specialize
configuration pass of Windows Setup to complete, before shipping the PC to
customers.
3.
12.
For more information about creating a recovery image, see Bare metal
reset/recovery: create recovery media while deploying new devices.
2. md C:\my_distribution
3.
5.
6. md C:\mount\boot
7.
8. md C:\mount\windows
9.
6.
8.
10. For Japanese (ja-JP), Korean (ko-KR), and Chinese (zh-HK, zh-CN,
zh-TW), you must add additional font support to your image. For
example, to add Japanese font support, enter the following command.
For example:
14. Change the Windows Setup default language by using DISM. For
example:
16. Save your changes back into the image using the Dism
/UnmountImage /Commit command.
18. If you added font support for Japanese (ja-JP), Korean (ko-KR),
or Chinese (zh-HK, zh-CN, zh-TW) to the default boot.wim image, you
must also add font support to the first image (index 1) in the
Boot.wim file.
Use the Dism /Mount-Image command to mount the first image
(index 1) in the Boot.wim file to a local mount directory. For example:
Md C:\mount\boot1
19. Add the same font support you added to the boot.wim default
boot image in the previous step. For example, to add Japanese font
support, enter the following command:
21. Save your changes back into the image using the Dism
/Unmount-Image /Commit command:
4. Burn the .iso file to a new DVD. This DVD will be your recovery media.
5. This recovery media will boot to Windows setup to install Windows 10
in a regular fashion by deleting your files.