Push-button reset features by default restore only drivers (installed through INF packages) and preinstalled Windows apps. To configure the features to restore other customizations such as settings and Windows desktop applications, you will need to prepare one or more customization packages which contain the customizations. These customizations packages are in the form of provisioning packages (.ppkg).
Push-button reset looks for, and automatically restores provisioning packages which are located in the folder C:\Recovery\Customizations. New in Windows 10, version 1809: Windows will also look for and restore certain customizations in the C:\Recovery\AutoApply folder. If customizations are in this folder and extensibility points aren't configured, the customizations in this folder will be restored.
To protect the packages from tampering or accidental deletion, the Write/Modify permissions of C:\Recovery\Customizations should be restricted to the local Administrators user group.
Some settings and customizations cannot be included in provisioning packages. Instead, you can restore them using an unattend file applied using the Push-button reset extensibility points. For settings which are supported by both provisioning packages and unattend, it is recommended that you specify them using only one of the mechanisms, not both. To learn more, see How push-button reset features work.
New in Windows 10, version 1809 Auto-apply folders make Push-button reset customizations easier to configure for the reset experience. This new method copies and applies the most common Windows customization files after the device is reset. This can help simplify the configuration process and eliminate commonly-made mistakes that result in a misconfigured device.
Auto-apply folders can't be used in conjunction with extensibility points.
If both extensibility points are configured and Auto-apply folders are present in C:\Recovery, the Auto-apply folders will be ignored.
The following customizations are supported by Auto-apply folders:
- Any required asset files
To use Auto-apply folders, you have to copy configuration files and any related asset files C:\Recovery\AutoApply. Related asset files are files that the configuration files rely on, like an graphic that unattend will set as a wallpaper or .lnk files that are used by TaskbarLayoutModification.xml.
During a recovery, files in this AutoApply folder will get copied to the correct folders in the restored image. For example, when you place unattend.xml in the AutoApply folder, it will be copied to the C:\Windows\Panther folder during the recovery process.
The following table shows the available customizations and where to copy the configuration and related asset files so that PBR can restore them to the restored OS:
|Customization||Copy configuration to:||Copy related assets to:|
|OOBE.xml||Copy %windir%\System32\OOBE\info and all it's contents to C:\Recovery\AutoApply\OOBE||N/A - The copied OOBE\Info folder should include all the files to support OOBE|
Capturing Windows desktop applications using Windows User State Migration Tool (USMT)'s ScanState tool
The Windows User State Migration Tool (USMT) ScanState.exe has been updated in Windows 10 to support capturing Windows desktop applications applications. This functionality can be activated by specifying the
/apps is specified, ScanState uses a set of application discovery rules to determine what should be captured, and stores the output as a reference device data image inside a provisioning package. In general, the reference device data includes the following:
- Windows desktop applications installed using either Microsoft Windows Installer or other installers
- All files and folders outside of the Windows namespace (in other words, outside of \Windows, \Program Files, \Program Files (x86), \ProgramData, and \Users). This applies only to the volume on which Windows is installed.
- Not captured: Windows apps.
- Not captured: User state/data.
You can also specify additional rules to include or exclude specific files, folders, and registry settings. For example, if you are using ScanState during factory deployment, you might need to exclude manufacturing-specific tools so that they will not be restored when end users use Push-button reset features. To specify additional rules, you will need to author a migration XML and specify the
/i option when using ScanState.exe.
ScanState’s /apps option also supports the following optional parameters:
||Specifies whether applications, files, and folders outside of the Windows namespace should be captured.
||Specifies whether the OEM-specific help and support info should be captured.
Although push-button reset features can restore multiple provisioning packages, only one of the packages can contain reference device data image captured using ScanState.
ScanState should be used only after all customizations have been applied to the PC. It does not support appending additional changes to an existing reference device data image.
When you prepare ScanState for capturing customizations, you should exclude Windows Defender settings to prevent possible failures during recovery that can be caused by file conflicts. For more information, see Step 1 in Deploy push-button reset features.
If you're booting the reference device into Audit Mode using an unattend.xml, do not specify the
AutoLogonunattend setting. Doing so would result in the autologon state being captured into the customization package. Using such a package during push-button reset operations causes problems in the Out-Of-Box Experience (OOBE). By default, Audit Mode signs in automatically using the built-in Administrator account.
Restoring settings using unattend.xml and extensibility points
New in Windows 10, version 1809 You can use Auto-apply folders to automatically restore unattend.xml, layoutmodification.xml, and oobe.xml. If using Auto-apply folders, you don't have to configure extensibilty scripts as outlined below.
Most settings which are configured using unattend.xml and other configuration files (e.g. oobe.xml, LayoutModification.xml) cannot be restored using provisioning packages. Instead, you will need to use the Push-button reset extensibility points in order to restore them during recovery. These extensibility points allow you run scripts which can:
- Inject an unattend.xml into the recovered OS
- Copy other configuration files and assets into the recovered OS
- You should not use unattend.xml (or other mechanisms) to boot the recovered OS into Audit Mode. The recovered OS must remain configured to boot to OOBE.
- A copy of the configuration files and assets which need to be restored must be placed under C:\Recovery\OEM. Contents in this folder are not modified by push-button reset features and are automatically backed up to recovery media created using the Create a recovery drive utility. To protect the unattend.xml and configuration files/assets from tampering or accidental deletion, Write/Modify permissions of C:\Recovery\OEM should be restricted to the local Administrators user group.
To learn how to author scripts to be run using extensibility points, see Add extensibility scripts to push-button reset.
To learn how to use ScanState to capture and store the resulting PPKG under C:\Recovery\Customizations, which is restored automatically during PBR, see Deploy push-button reset features using ScanState.
Recovery strategies for common customizations
The following table outlines the recovery strategy for common customizations which are described in the User Experience Windows Engineering Guide (UX WEG) as well as those covered in the OEM Policy Document (OPD). For up-to-date details on these customizations, refer to the latest version of the UX WEG and OPD.
|Customization||How it is configured||How it can be restored during PBR|
|OOBE – HID pairing||Settings in the
|OOBE – OEM EULA||
|OOBE – Preconfigured language and time zone||Settings in the
|OOBE – Hide mobile broadband page||Microsoft-Windows-WwanUI | NotInOOBE setting in unattend.xml||
|OOBE – OEM Registration page||Settings in the <registration> section of OOBE.xml and HTML files for in-place links||
|Start – Pinned tiles and groups||LayoutModification.xml stored under %SYSTEMDRIVE%\Users\Default\AppData\Local\Microsoft\Windows\Shell or settings under Microsoft-Windows-Shell-Setup | StartTiles in unattend.xml||
|Start – Prepopulated MFU list||LayoutModification.xml stored under %SYSTEMDRIVE%\Users\Default\AppData\Local\Microsoft\Windows\Shell||
|Continuum – Form factor||Settings in unattend.xml:
|Continuum – Default mode||Microsoft-Windows-Shell-Setup | SignInMode setting in unattend.xml||
|Desktop – Default and additional accent colors||RunSynchronous command in unattend.xml which adds the AGRB hex color values to the registry under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Accents||
|Desktop – Background image||Microsoft-Windows-Shell-Setup | Themes | DesktopBackground setting in unattend.xml and image (e.g. .jpg/.png/.bmp file)||
|Desktop – Pinned taskbar items||Settings under Microsoft-Windows-Shell-Setup | TaskbarLinks in unattend.xml and shortcut (.lnk) files stored in a folder under %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\||
|Desktop – Systray icons||Settings under Microsoft-Windows-Shell-Setup | NotificationArea in unattend.xml||
|Mobile broadband – Rename "WiFi" to "WLAN" in network list||Microsoft-Windows-SystemSettings | WiFiToWlan setting in unattend.xml||
|Mobile broadband – Enable Network Selection control in Settings||Microsoft-Windows-SystemSettings | DisplayNetworkSelection setting in unattend.xml||
|PC Settings – Preinstalled settings apps||Settings apps are preinstalled in the same way as any other app, and automatically appear in Settings. Capability declared in the app manifest determines whether it is a settings app or not.||Restored automatically along with other preinstalled apps|
|Default browser and handlers of protocols||Default application association settings XML file imported using the /Import-DefaultAppAssociations command in DISM||
|Support information in Contact Support app||Settings under Microsoft-Windows-Shell-Setup | OEMInformation in unattend.xml and logo.bmp file||
|Store content modifier||Microsoft-Windows-Store-Client-UI | StoreContentModifier setting in unattend.xml||
|Windows desktop applications (including driver applets installed via setup.exe)||MSI or custom installers||Use ScanState to capture and store the resulting PPKG under C:\Recovery\Customizations, which is restored automatically during PBR.|
|RDX contents||See UX WEG for details||Should not be restored during PBR|