--- title: Offline Migration Reference (Windows 10) description: Offline Migration Reference ms.assetid: f347547c-d601-4c3e-8f2d-0138edeacfda ms.reviewer: manager: laurawi ms.author: greglin ms.prod: w10 ms.mktglfcycl: deploy ms.sitesec: library audience: itpro author: greg-lindsay ms.date: 04/19/2017 ms.topic: article --- # Offline Migration Reference Offline migration enables the ScanState tool to run inside a different Windows® operating system than the Windows operating system from which ScanState is gathering files and settings. There are two primary offline scenarios: - **Windows PE.** The ScanState tool can be run from within Windows PE, gathering files and settings from the offline Windows operating system on that machine. - **Windows.old.** The ScanState tool can now gather files and settings from the Windows.old directory that is created during Windows installation on a partition that contains a previous installation of Windows. For example, the ScanState tool can run in Windows 10, gathering files from a previous Windows 7or Windows 8 installation contained in the Windows.old directory. When you use User State Migration Tool (USMT) 10.0 to gather and restore user state, offline migration reduces the cost of deployment by: - **Reducing complexity.** In computer-refresh scenarios, migrations from the Windows.old directory reduce complexity by eliminating the need for the ScanState tool to be run before the operating system is deployed. Also, migrations from the Windows.old directory enable ScanState and LoadState to be run successively. - **Improving performance.** When USMT runs in an offline Windows Preinstallation Environment (WinPE) environment, it has better access to the hardware resources. This may increase performance on older machines with limited hardware resources and numerous installed software applications. - **New recovery scenario.** In scenarios where a machine no longer restarts properly, it might be possible to gather user state with the ScanState tool from within WinPE. ## In This Topic - [What Will Migrate Offline?](#bkmk-whatwillmigrate) - [What Offline Environments are Supported?](#bkmk-offlineenvironments) - [User-Group Membership and Profile Control](#bkmk-usergroupmembership) - [Command-Line Options](#bkmk-commandlineoptions) - [Environment Variables](#bkmk-environmentvariables) - [Offline.xml Elements](#bkmk-offlinexml) ## What Will Migrate Offline? The following user data and settings migrate offline, similar to an online migration: - Data and registry keys specified in MigXML - User accounts - Application settings - Limited set of operating-system settings - EFS files - Internet Explorer® Favorites For exceptions to what you can migrate offline, see [What Does USMT Migrate?](usmt-what-does-usmt-migrate.md) ## What Offline Environments are Supported? The following table defines the supported combination of online and offline operating systems in USMT.
Running Operating System | Offline Operating System |
---|---|
WinPE 5.0 or greater, with the MSXML library |
Windows Vista, Windows 7, Windows 8, Windows 10 |
Windows 7, Windows 8, Windows 10 |
Windows.old directory |
Component | Option | Description |
---|---|---|
ScanState.exe |
/offline:<path to offline.xml> |
This command-line option enables the offline-migration mode and requires a path to an Offline.xml configuration file. |
ScanState.exe |
/offlineWinDir:<Windows directory> |
This command-line option enables the offline-migration mode and starts the migration from the location specified. It is only for use in WinPE offline scenarios where the migration is occurring from a Windows directory. |
ScanState.exe |
/OfflineWinOld:<Windows.old directory> |
This command-line option enables the offline migration mode and starts the migration from the location specified. It is only intended to be used in Windows.old migration scenarios, where the migration is occurring from a Windows.old directory. |
Variable | Value | Scenario |
---|---|---|
USMT_WORKING_DIR |
Full path to a working directory |
Required when USMT binaries are located on read-only media, which does not support the creation of log files or temporary storage. To set the system environment variable, at a command prompt type the following:
|
MIG_OFFLINE_PLATFORM_ARCH |
32 or 64 |
While operating offline, this environment variable defines the architecture of the offline system, if the system does not match the WinPE and Scanstate.exe architecture. This environment variable enables the 32-bit ScanState application to gather data from a computer with 64-bit architecture, or the 64-bit ScanState application to gather data from a computer with 32-bit architecture. This is required when auto-detection of the offline architecture doesn’t function properly, for example, when the source system is running a 64-bit version of Windows XP. For example, to set this system environment variable for a 32-bit architecture, at a command prompt type the following:
|