diff --git a/windows/deployment/usmt/offline-migration-reference.md b/windows/deployment/usmt/offline-migration-reference.md index 3406fdc071..25d44a98a8 100644 --- a/windows/deployment/usmt/offline-migration-reference.md +++ b/windows/deployment/usmt/offline-migration-reference.md @@ -16,7 +16,6 @@ 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. @@ -33,7 +32,6 @@ When you use User State Migration Tool (USMT) 10.0 to gather and restore user s ## In This topic - - [What Will Migrate Offline?](#bkmk-whatwillmigrate) - [What Offline Environments are Supported?](#bkmk-offlineenvironments) @@ -48,7 +46,6 @@ When you use User State Migration Tool (USMT) 10.0 to gather and restore user s ## What Will Migrate Offline? - The following user data and settings migrate offline, similar to an online migration: - Data and registry keys specified in MigXML @@ -67,42 +64,18 @@ For exceptions to what you can migrate offline, see [What Does USMT Migrate?](us ## 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: -
|
-
Set USMT_WORKING_DIR=[path to working directory]
|
+|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: Set MIG_OFFLINE_PLATFORM_ARCH=32
|
## Offline.xml Elements
-
Use an offline.xml file when running the ScanState tool on a computer that has multiple Windows directories. The offline.xml file specifies which directories to scan for windows files. An offline.xml file can be used with the /offline option as an alternative to specifying a single Windows directory path with the /offlineDir option.
### <offline>
@@ -256,8 +172,4 @@ The following XML example illustrates some of the elements discussed earlier in
## Related topics
-
[Plan Your Migration](usmt-plan-your-migration.md)
-
-
-
diff --git a/windows/deployment/usmt/understanding-migration-xml-files.md b/windows/deployment/usmt/understanding-migration-xml-files.md
index e59e727ee5..f6a8ab4221 100644
--- a/windows/deployment/usmt/understanding-migration-xml-files.md
+++ b/windows/deployment/usmt/understanding-migration-xml-files.md
@@ -16,14 +16,12 @@ ms.topic: article
# Understanding Migration XML Files
-
-You can modify the behavior of a basic User State Migration Tool (USMT)10.0 migration by using XML files; these files provide instructions on where and how the USMT tools should gather and apply files and settings. USMT includes three XML files that you can use to customize a basic migration: the MigDocs.xml and MigUser.xml files, which modify how files are discovered on the source computer, and the MigApps.xml file, which is required in order to migrate supported application settings. You can also create and edit custom XML files and a Config.xml file to further customize your migration.
+You can modify the behavior of a basic User State Migration Tool (USMT) 10.0 migration by using XML files; these files provide instructions on where and how the USMT tools should gather and apply files and settings. USMT includes three XML files that you can use to customize a basic migration: the MigDocs.xml and MigUser.xml files, which modify how files are discovered on the source computer, and the MigApps.xml file, which is required in order to migrate supported application settings. You can also create and edit custom XML files and a Config.xml file to further customize your migration.
This topic provides an overview of the default and custom migration XML files and includes guidelines for creating and editing a customized version of the MigDocs.xml file. The MigDocs.xml file uses the new **GenerateDocPatterns** function available in USMT to automatically find user documents on a source computer.
## In This topic
-
[Overview of the Config.xml file](#bkmk-config)
[Overview of the MigApp.xml file](#bkmk-migapp)
@@ -50,27 +48,20 @@ This topic provides an overview of the default and custom migration XML files an
## Overview of the Config.xml file
+The Config.xml file is the configuration file created by the `/genconfig` option of the ScanState tool; it can be used to modify which operating-system components are migrated by USMT. The Config.xml file can be used with other XML files, such as in the following example: `scanstate /i:migapps.xml /i:migdocs.xml /genconfig:c:\myFolder\config.xml`. When used this way, the Config.xml file tightly controls aspects of the migration, including user profiles, data, and settings, without modifying or creating other XML files. For more information about the Config.xml file, see [Customize USMT XML Files](usmt-customize-xml-files.md) and [Config.xml File](usmt-configxml-file.md).
-The Config.xml file is the configuration file created by the `/genconfig` option of the ScanState tool; it can be used to modify which operating-system components are migrated by USMT. The Config.xml file can be used in conjunction with other XML files, such as in the following example: `scanstate /i:migapps.xml /i:migdocs.xml /genconfig:c:\myFolder\config.xml`. When used this way, the Config.xml file tightly controls aspects of the migration, including user profiles, data, and settings, without modifying or creating other XML files. For more information about the Config.xml file, see [Customize USMT XML Files](usmt-customize-xml-files.md) and [Config.xml File](usmt-configxml-file.md).
-
-**Note**
-When modifying the XML elements in the Config.xml file, you should edit an element and set the **migrate** property to **no**, rather than deleting the element from the file. If you delete the element instead of setting the property, the component may still be migrated by rules in other XML files.
-
-
+> [!NOTE]
+> When modifying the XML elements in the Config.xml file, you should edit an element and set the **migrate** property to **no**, rather than deleting the element from the file. If you delete the element instead of setting the property, the component may still be migrated by rules in other XML files.
## Overview of the MigApp.xml file
-
The MigApp.xml file installed with USMT includes instructions to migrate the settings for the applications listed in [What Does USMT Migrate?](usmt-what-does-usmt-migrate.md). You must include the MigApp.xml file when using the ScanState and LoadState tools, by using the `/i` option in order to migrate application settings. The MigDocs.xml and MigUser.xml files do not migrate application settings. You can create a custom XML file to include additional applications. For more information, see [Customize USMT XML Files](usmt-customize-xml-files.md).
-**Important**
-The MigApps.xml file will only detect and migrate .pst files that are linked to Microsoft Office Outlook. See the [Sample migration rules for customized versions of XML files](#bkmk-samples) section of this document for more information about migrating .pst files that are not linked to Outlook.
-
-
+> [!Important]
+> The MigApps.xml file will only detect and migrate .pst files that are linked to Microsoft Office Outlook. For more information about migrating .pst files that are not linked to Outlook, see the [Sample migration rules for customized versions of XML files](#bkmk-samples).
## Overview of the MigDocs.xml file
-
The MigDocs.xml file uses the new **GenerateDocPatterns** helper function to create instructions for USMT to migrate files from the source computer, based on the location of the files. You can use the MigDocs.xml file with the ScanState and LoadState tools to perform a more targeted migration than using USMT without XML instructions.
The default MigDocs.xml file migrates the following:
@@ -141,12 +132,11 @@ You can also use the **/genmigxml** option with the ScanState tool to review and
## Overview of the MigUser.xml file
-
-The MigUser.xml file includes instructions for USMT to migrate user files based on file name extensions. You can use the MigUser.xml file with the ScanState and LoadState tools to perform a more targeted migration than using USMT without XML instructions. The MigUser.xml file will gather all files from the standard user-profile folders, as well as any files on the computer with the specified file name extensions.
+The MigUser.xml file includes instructions for USMT to migrate user files based on file name extensions. You can use the MigUser.xml file with the ScanState and LoadState tools to perform a more targeted migration than using USMT without XML instructions. The MigUser.xml file will gather all files from the standard user-profile folders, and any files on the computer with the specified file name extensions.
The default MigUser.xml file migrates the following:
-- All files from the standard user-profile folders which are described as:
+- All files from the standard user-profile folders, which are described as:
- CSIDL\_MYVIDEO
@@ -166,7 +156,7 @@ The default MigUser.xml file migrates the following:
- Files with the following extensions:
- .qdf, .qsd, .qel, .qph, .doc\*, .dot\*, .rtf, .mcw, .wps, .scd, .wri, .wpd, .xl\*, .csv, .iqy, .dqy, .oqy, .rqy, .wk\*, .wq1, .slk, .dif, .ppt\*, .pps\*, .pot\*, .sh3, .ch3, .pre, .ppa, .txt, .pst, .one\*, .vl\*, .vsd, .mpp, .or6, .accdb, .mdb, .pub
+ `.qdf`, `.qsd`, `.qel`, `.qph`, `.doc\*`, `.dot\*`, `.rtf`, `.mcw`, `.wps`, `.scd`, `.wri`, `.wpd`, `.xl\*`, `.csv`, `.iqy`, `.dqy`, `.oqy`, `.rqy`, `.wk\*`, `.wq1`, `.slk`, `.dif`, `.ppt\*`, `.pps\*`, `.pot\*`, `.sh3`, `.ch3`, `.pre`, `.ppa`, `.txt`, `.pst`, `.one\*`, `.vl\*`, `.vsd`, `.mpp`, `.or6`, `.accdb`, `.mdb`, `.pub`
The default MigUser.xml file does not migrate the following:
@@ -180,62 +170,30 @@ The default MigUser.xml file does not migrate the following:
You can make a copy of the MigUser.xml file and modify it to include or exclude standard user-profile folders and file name extensions. If you know all of the extensions for the files you want to migrate from the source computer, use the MigUser.xml file to move all of your relevant data, regardless of the location of the files. However, this may result in a migration that contains more files than intended. For example, if you choose to migrate all .jpg files, you may migrate image files such as thumbnails and logos from legacy applications that are installed on the source computer.
-**Note**
-Each file name extension you include in the rules within the MigUser.xml file increases the amount of time needed for the ScanState tool to gather the files for the migration. If you are migrating more than three hundred file types, you may experience a slow migration. For more information about other ways to organize the migration of your data, see the [Using multiple XML files](#bkmk-multiple) section of this document.
-
-
+> [!NOTE]
+> Each file name extension you include in the rules within the MigUser.xml file increases the amount of time needed for the ScanState tool to gather the files for the migration. If you are migrating more than 300 file types, you may experience a slow migration. For more information about other ways to organize the migration of your data, see the [Using multiple XML files](#bkmk-multiple) section of this document.
## Using multiple XML files
-
You can use multiple XML files with the ScanState and LoadState tools. Each of the default XML files included with or generated by USMT is configured for a specific component of the migration. You can also use custom XML files to supplement these default files with additional migration rules.
-XML migration file | -Modifies the following components: | -
---|---|
Config.xml file |
-Operating-system components such as desktop wallpaper and background theme. -You can also overload config.xml to include some application and document settings by generating the config.xml file with the other default XML files. For more information, see Customize USMT XML Files and Config.xml File. |
-
MigApps.xml file |
-Applications settings. |
-
MigUser.xml or MigDocs.xml files |
-User files and profile settings. |
-
Custom XML files |
-Application settings, user profile settings, or user files, beyond the rules contained in the other XML files. |
-
Setting | -Value | -Default Value | -
---|---|---|
ScanProgramFiles |
-The ScanProgramFiles argument is valid only when the GenerateDocPatterns function is called in a system context. This argument determines whether or not to scan the Program Files directory to gather registered file name extensions for known applications. -For example, when set to TRUE, the function discovers and migrates .doc files under the Microsoft Office directory, because .doc is a file name extension registered to a Microsoft Office application. The GenerateDocPatterns function generates this inclusion pattern for .doc files: -
-If a child folder of an included folder contains an installed application, ScanProgramFiles will also create an exclusion rule for the child folder. All folders under the application folder will be scanned recursively for registered file name extensions. |
-False |
-
IncludePatterns |
-The IncludePatterns argument determines whether to generate exclude or include patterns in the XML. When this argument is set to TRUE, the GenerateDocPatterns function generates include patterns and the function must be added under the <include> element. Changing this argument to FALSE generates exclude patterns and the function must be added under the <exclude> element. |
-True |
-
SystemDrive |
-The SystemDrive argument determines whether to generate patterns for all fixed drives or only for the system drive. Changing this argument to TRUE restricts all patterns to the system drive. |
-False |
-
Rule 1 |
-
|
-
Rule 2 |
-
|
-
- | Choose the migration store type that works best for your needs and migration scenario. |
-
- | Estimate the amount of disk space needed for computers in your organization based on information about your organization's infrastructure. |
-
- | Learn about hard-link migration stores and the scenarios in which they are used. |
-
- | Learn about the using migration store encryption to protect user data integrity during a migration. |
-
- | Lists the command-line options for using the ScanState tool. |
-
- | Lists the command-line options for using the LoadState tool. |
-
- | Lists the command-line options for using the UsmtUtils tool. |
-
Parameter | -Required | -Value | -
---|---|---|
errorCode |
-No |
-"any" or "specify system error message here" |
-
Parameter | -Required | -Value | -
---|---|---|
<errorCode> |
-No |
-"any" or "specify system error message here". If system error messages are not specified, the default behavior applies the parameter to all system error messages. |
-
Parameter | -Required | -Value | -
---|---|---|
<errorCode> |
-No |
-"any" or "specify system error message here". If system error messages are not specified, the default behavior applies the parameter to all system error messages. |
-
Parameter | -Required | -Value | -
---|---|---|
From |
-Yes |
-A valid local group on the source machine that contains users selected for migration on the command line. |
-
To |
-Yes |
-A local group that the users are to be moved to during the migration. |
-
appliesTo |
-Yes |
-nonmigratedUsers, migratedUsers, AllUsers. This value defines which users the change group operation should apply to. |
-
If you have the following code in the same component | -Resulting behavior | -Explanation | -
---|---|---|
|
-Migrates all files and subfolders in Dir1 (including all .txt files in C:). |
-The <exclude> rule does not affect the migration because the <include> rule is more specific. |
-
|
-Migrates all files and subfolders in C:\Dir1, except the .txt files in C:\Dir1\Dir2 and its subfolders. |
-Both rules are processed as intended. |
-
|
-Migrates all files and subfolders in C:\Dir1, except the .txt files in C:\Dir1 and its subfolders. |
-Both rules are processed as intended. |
-
|
-Nothing will be migrated. |
-The rules are equally specific, so the <exclude> rule takes precedence over the <include> rule. |
-
|
-Migrates the .txt files in Dir1 and the .txt files from subfolders other than Dir2. -No files are migrated from Dir2 or its subfolders. |
-Both rules are processed as intended. |
-
|
-Migrates all files and subfolders of Dir2, except the .txt files from Dir1 and any subfolders of Dir1 (including Dir2). |
-Both rules are processed as intended. |
-
If you have the following code in different components | -Resulting behavior | -Explanation | -
---|---|---|
Component 1: -
Component 2: -
|
-Migrates all files and subfolders of C:\Dir1\ (including C:\Dir1\Dir2). |
-Rules that are in different components do not affect each other, except for the <unconditionalExclude> rule. Therefore, in this example, although some .txt files were excluded when Component 1 was processed, they were included when Component 2 was processed. |
-
Component 1: -
Component 2: -
|
-Migrates all files and subfolders from Dir2 except the .txt files in C:\Dir1 and its subfolders. |
-Both rules are processed as intended. |
-
Component 1: -
Component 2: -
|
-Migrates all .txt files in Dir1 and any subfolders. |
-Component 1 does not contain an <include> rule, so the <exclude> rule is not processed. |
-
If you have the following code in the same component | -Resulting behavior | -Explanation | -
---|---|---|
|
-Migrates all keys in HKLM\Software\Microsoft\Command Processor except DefaultColor. |
-Both rules are processed as intended. |
-
|
-Migrates only DefaultColor in HKLM\Software\Microsoft\Command Processor. |
-DefaultColor is migrated because the <include> rule is more specific than the <exclude> rule. |
-
|
-Does not migrate DefaultColor. |
-The rules are equally specific, so the <exclude> rule takes precedence over the <include> rule. |
-
If you have the following code in different components | -Resulting behavior | -Explanation | -
---|---|---|
Component 1: -
Component 2: -
|
-Migrates all the keys/values under HKLM\Software\Microsoft\Command Processor. |
-Rules that are in different components do not affect each other, except for the <unconditionalExclude> rule. Therefore, in this example, the objects that were excluded when Component 1 was processed were included when Component 2 was processed. |
-
If you specify the following code | -Resulting behavior | -
---|---|
|
-During ScanState, all the files will be added to the store. -During LoadState, only C:\Data\SampleA.txt will be restored. |
-
|
-During ScanState, all the files will be added to the store. -During LoadState, all the files will be restored, overwriting the existing files on the destination computer. |
-
|
-During ScanState, all the files will be added to the store. -During LoadState, the following will occur: -
|
-
Code | -Behavior | -
---|---|
|
-Verifies that My Videos exists on the source computer. |
-
|
-Filters out the shortcuts in My Videos that do not resolve on the destination computer. This has no effect on files that are not shortcuts. For example, if there is a shortcut in My Videos on the source computer that points to C:\Folder1, that shortcut will be migrated only if C:\Folder1 exists on the destination computer. However, all other files, such as .mp3 files, migrate without any filtering. |
-
|
-Migrates My Videos for all users. |
-
Code | -Behavior | -
---|---|
|
-Migrates all instances of the file Usmttestfile.txt from all sub-directories under %ProgramFiles%\USMTTestFolder. |
-
|
-Migrates the whole directory under %ProgramFiles%\USMTDIRTestFolder. |
-
|
-Migrates all instances of MyKey under HKCU\Software\USMTTESTKEY. |
-
|
-Migrates the entire registry hive under HKLM\Software\USMTTESTKEY. |
-
- | Use command-line options to specify which users to migrate and how they should be migrated. |
-
- | Determine which applications you want to migrate and prepare a list of application settings to be migrated. |
-
- | Use migration to create a new standard environment on each of the destination computers. |
-
- | Determine and locate the standard, company-specified, and non-standard locations of the file types, files, folders, and settings that you want to migrate. |
-
<Policies> |
-This element contains elements that describe the policies that USMT follows while creating a migration store. |
-
<HardLinkStoreControl> |
-This element contains elements that describe how to handle files during the creation of a hard link migration store. |
-
<fileLocked> |
-This element contains elements that describe how to handle files that are locked for editing. |
-
<createHardLink> |
-This element defines a standard MigXML pattern that describes file paths where hard links should be created, even if the file is locked for editing by another application. -Syntax: <createHardLink> [pattern] </createHardLink> |
-
<errorHardLink> |
-This element defines a standard MigXML pattern that describes file paths where hard links should not be created, if the file is locked for editing by another application. -<errorHardLink> [pattern] </errorHardLink> |
-
Command-Line Option | -Description | -
---|---|
StorePath |
-Indicates the folder where the files and settings data are stored. You must specify StorePath when using the LoadState command. You cannot specify more than one StorePath. |
-
/decrypt /key:KeyString -or -/decrypt /key:"Key String" -or -/decrypt /keyfile:[Path</em>]FileName |
-Decrypts the store with the specified key. With this option, you will need to specify the encryption key in one of the following ways: -
KeyString cannot exceed 256 characters. -The /key and /keyfile options cannot be used on the same command line. -The /decrypt and /nocompress options cannot be used on the same command line. -
-Important
-Use caution with this option, because anyone who has access to the LoadState command-line script will also have access to the encryption key. -
-
-
-For example: -
|
-
/decrypt:"encryption strength" |
-The /decrypt option accepts a command-line parameter to define the encryption strength specified for the migration store encryption. For more information about supported encryption algorithms, see Migration Store Encryption. |
-
/hardlink |
-Enables user-state data to be restored from a hard-link migration store. The /nocompress parameter must be specified with /hardlink option. |
-
/nocompress |
-Specifies that the store is not compressed. You should only use this option in testing environments. We recommend that you use a compressed store during your actual migration. This option cannot be used with the /decrypt option. -For example: -
|
-
Command-Line Option | -Description | -
---|---|
/i:[Path]FileName |
-(include) -Specifies an .xml file that contains rules that define what state to migrate. You can specify this option multiple times to include all of your .xml files (MigApp.xml, MigSys.xml, MigDocs.xml and any custom .xml files that you create). Path can be either a relative or full path. If you do not specify the Path variable, then FileName must be located in the current directory. -For more information about which files to specify, see the "XML files" section of the Frequently Asked Questions topic. |
-
/config:[Path]FileName |
-Specifies the Config.xml file that the LoadState command should use. You cannot specify this option more than once on the command line. Path can be either a relative or full path. If you do not specify the Path variable, then the FileName must be located in the current directory. -This example migrates the files and settings based on the rules in the Config.xml, MigDocs.xml, and MigApp.xml files: -
|
-
/auto:"path to script files" |
-This option enables you to specify the location of the default .xml files and then launch your migration. If no path is specified, USMT will use the directory where the USMT binaries are located. The /auto option has the same effect as using the following options: /i:MigDocs.xml /i:MigApp.xml /v:5. |
-
Command-Line Option | -Description | -||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/l:[Path]FileName |
-Specifies the location and name of the LoadState log. You cannot store any of the log files in StorePath. Path can be either a relative or full path. If you do not specify the Path variable, then the log will be created in the current directory. You can specify the /v option to adjust the amount of output. -If you run the LoadState command from a shared network resource, you must specify this option or USMT will fail with the error: "USMT was unable to create the log file(s)". To fix this issue, use the /l:load.log option. |
-||||||||||||||||||
/v:<VerbosityLevel> |
-(Verbosity) -Enables verbose output in the LoadState log file. The default value is 0. -You can set the VerbosityLevel to one of the following levels: -
- For example: -
|
-||||||||||||||||||
/progress:[Path</em>]FileName |
-Creates the optional progress log. You cannot store any of the log files in StorePath. Path can be either a relative or full path. If you do not specify the Path variable, then FileName will be created in the current directory. -For example: -
|
-||||||||||||||||||
/c |
-When this option is specified, the LoadState command will continue to run, even if non-fatal errors occur. Any files or settings that cause an error are logged in the progress log. For example, if there is a large file that will not fit on the computer, the LoadState command will log an error and continue with the migration. Without the /c option, the LoadState command will exit on the first error. You can use the new <ErrorControl> section in the Config.xml file to specify which file or registry read/write errors can be safely ignored and which might cause the migration to fail. This enables the /c command-line option to safely skip all input/output (I/O) errors in your environment. In addition, the /genconfig option now generates a sample <ErrorControl> section that is enabled by specifying error messages and desired behaviors in the Config.xml file. |
-||||||||||||||||||
/r:<TimesToRetry> |
-(Retry) -Specifies the number of times to retry when an error occurs while migrating the user state from a server. The default is three times. This option is useful in environments where network connectivity is not reliable. -While restoring the user state, the /r option will not recover data that is lost due to a network-hardware failure, such as a faulty or disconnected network cable, or when a virtual private network (VPN) connection fails. The retry option is intended for large, busy networks where connectivity is satisfactory, but communication latency is a problem. |
-||||||||||||||||||
/w:<SecondsBeforeRetry> |
-(Wait) -Specifies the time to wait, in seconds, before retrying a network file operation. The default is 1 second. |
-||||||||||||||||||
/? or /help |
-Displays Help on the command line. |
-
Command-Line Option | -Description | -
---|---|
/all |
-Migrates all of the users on the computer. -USMT migrates all user accounts on the computer, unless you specifically exclude an account with the /ue or /uel options. For this reason, you do not need to specify this option on the command line. However, if you choose to use the /all option, you cannot also use the /ui, /ue or /uel options. |
-
/ui:DomainName<em>UserName -or -/ui:"DomainName<em>User Name" -or -/ui:ComputerName<em>LocalUserName |
-(User include) -Migrates the specified user. By default, all users are included in the migration. Therefore, this option is helpful only when used with the /ue option. You can specify multiple /ui options, but you cannot use the /ui option with the /all option. DomainName and UserName can contain the asterisk () wildcard character. When you specify a user name that contains spaces, you will need to surround it with quotations marks. -For example: -
-Note
-If a user is specified for inclusion with the /ui option, and also is specified to be excluded with either the /ue or /uel options, the user will be included in the migration. -
-
-
-For more examples, see the descriptions of the /uel, /ue, and /ui options in this table. |
-
/uel:<NumberOfDays> -or -/uel:<YYYY/MM/DD> -or -/uel:0 |
-(User exclude based on last logon) -Migrates only the users that logged onto the source computer within the specified time period, based on the Last Modified date of the Ntuser.dat file on the source computer. The /uel option acts as an include rule. For example, the /uel:30 option migrates users who logged on, or whose user account was modified, within the last 30 days from the date when the ScanState command is run. You can specify a number of days or you can specify a date. You cannot use this option with the /all option. USMT retrieves the last logon information from the local computer, so the computer does not need to be connected to the network when you run this option. In addition, if a domain user has logged onto another computer, that logon instance is not considered by USMT. -
-Note
-The /uel option is not valid in offline migrations. -
-
-
-Examples: -
For example: -
|
-
/ue:DomainName<em>UserName -or -/ue:"DomainName<em>User Name" -or -/ue:ComputerName<em>LocalUserName |
-(User exclude) -Excludes the specified users from the migration. You can specify multiple /ue options but you cannot use the /ue option with the /all option. DomainName and UserName can contain the asterisk () wildcard character. When you specify a user name that contains spaces, you will need to surround it with quotation marks. -For example: -
For more examples, see the descriptions of the /uel, /ue, and /ui options in this table. |
-
/md:OldDomain:NewDomain -or -/md:LocalComputerName:NewDomain |
-(move domain) -Specifies a new domain for the user. Use this option to change the domain for users on a computer or to migrate a local user to a domain account. OldDomain may contain the asterisk () wildcard character. -You can specify this option more than once. You may want to specify multiple /md options if you are consolidating users across multiple domains to a single domain. For example, you could specify the following to consolidate the users from the Corporate and FarNorth domains into the Fabrikam domain: If there are conflicts between two /md commands, the first rule that you specify is applied. For example, if you specify the
-Note
-If you specify an OldDomain that did not exist on the source computer, the LoadState command will appear to complete successfully, without an error or warning. However, in this case, users will not be moved to NewDomain but will remain in their original domain. For example, if you misspell "contoso" and you specify "/md:contso:fabrikam", the users will remain in contoso on the destination computer. -
-
-
-For example: -
|
-
/mu:OldDomain<em>OldUserName:[NewDomain]NewUserName -or -/mu:OldLocalUserName:NewDomain<em>NewUserName |
-Specifies a new user name for the specified user. If the store contains more than one user, you can specify multiple /mu options. You cannot use wildcard characters with this option. -For example: -
|
-
/lac:[Password] |
-(local account create) -Specifies that if a user account is a local (non-domain) account, and it does not exist on the destination computer, USMT will create the account on the destination computer but it will be disabled. To enable the account, you must also use the /lae option. -If the /lac option is not specified, any local user accounts that do not already exist on the destination computer will not be migrated. -Password is the password for the newly created account. An empty password is used by default. -
-Caution
-Use the Password variable with caution because it is provided in plain text and can be obtained by anyone with access to the computer that is running the LoadState command. -Also, if the computer has multiple users, all migrated users will have the same password. -
-
-
-For example: -
For instructions, see Migrate User Accounts. |
-
/lae |
-(local account enable) -Enables the account that was created with the /lac option. You must specify the /lac option with this option. -For example: -
For instructions, see Migrate User Accounts. |
-
Behavior | -Command | -
---|---|
Exclude the user named User One in the Corporate domain. |
-
|
-
Exclude the user named User1 in the Corporate domain. |
-
|
-
Exclude the local user named User1. |
-
|
-
Exclude all domain users. |
-
|
-
Exclude all local users. |
-
|
-
Exclude users in all domains named User1, User2, and so on. |
-
|
-
Behavior | -Command | -
---|---|
Include only User2 from the Fabrikam domain and exclude all other users. |
-
|
-
Include only the local user named User1 and exclude all other users. |
-
|
-
Include only the domain users from Contoso, except Contoso\User1. |
-This behavior cannot be completed using a single command. Instead, to migrate this set of users, you will need to specify the following: -
|
-
Include only local (non-domain) users. |
-
|
-
Command-Line Option | -/keyfile | -/nocompress | -/genconfig | -/all | -
---|---|---|---|---|
/i |
-- | - | - | - |
/v |
-- | - | - | - |
/nocompress |
-- | N/A |
-X |
-- |
/key |
-X |
-- | X |
-- |
/decrypt |
-Required* |
-X |
-X |
-- |
/keyfile |
-N/A |
-- | X |
-- |
/l |
-- | - | - | - |
/progress |
-- | - | X |
-- |
/r |
-- | - | X |
-- |
/w |
-- | - | X |
-- |
/c |
-- | - | X |
-- |
/p |
-- | - | X |
-N/A |
-
/all |
-- | - | X |
-- |
/ui |
-- | - | X |
-X |
-
/ue |
-- | - | X |
-X |
-
/uel |
-- | - | X |
-X |
-
/genconfig |
-- | - | N/A |
-- |
/config |
-- | - | X |
-- |
StorePath |
-- | - | - | - |
/md |
-- | - | - | - |
/mu |
-- | - | - | - |
/lae |
-- | - | - | - |
/lac |
-- | - | - | - |
Command line Option | -File Name | -Description | -
---|---|---|
/l[Path]FileName |
-Scanstate.log or LoadState.log |
-Specifies the path and file name of the ScanState.log or LoadState log. |
-
/progress[Path]FileName |
-Specifies the path and file name of the Progress log. |
-Provides information about the status of the migration, by percentage complete. |
-
/v[VerbosityLevel] |
-Not applicable |
-See the "Monitoring Options" section in ScanState Syntax. |
-
/listfiles[Path]FileName |
-Specifies the path and file name of the Listfiles log. |
-Provides a list of the files that were migrated. |
-
Set the environment variable MIG_ENABLE_DIAG to a path to an XML file. |
-USMTDiag.xml |
-The diagnostic log contains detailed system environment information, user environment information, and information about the migration units (migunits) being gathered and their contents. |
-
Key | -Value | -
---|---|
program |
-ScanState.exe or LoadState.exe. |
-
productVersion |
-The full product version number of USMT. |
-
computerName |
-The name of the source or destination computer on which USMT was run. |
-
commandLine |
-The full command used to run USMT. |
-
PHASE |
-Reports that a new phase in the migration is starting. This can be one of the following: -
|
-
detectedUser |
-
|
-
includedInMigration |
-Defines whether the user profile/component is included for migration. Valid values are Yes or No. |
-
forUser |
-Specifies either of the following: -
|
-
detectedComponent |
-Specifies a component detected by USMT. -
|
-
totalSizeInMBToTransfer |
-Total size of the files and settings to migrate in megabytes (MB). |
-
totalPercentageCompleted |
-Total percentage of the migration that has been completed by either ScanState or LoadState. |
-
collectingUser |
-Specifies which user ScanState is collecting files and settings for. |
-
totalMinutesRemaining |
-Time estimate, in minutes, for the migration to complete. |
-
error |
-Type of non-fatal error that occurred. This can be one of the following: -
|
-
objectName |
-The name of the file or setting that caused the non-fatal error. |
-
action |
-Action taken by USMT for the non-fatal error. The values are: -
|
-
errorCode |
-The errorCode or return value. |
-
numberOfIgnoredErrors |
-The total number of non-fatal errors that USMT ignored. |
-
message |
-The message corresponding to the errorCode. |
-
Component | -Option | -Description | -
---|---|---|
ScanState |
-/encrypt<AES, AES_128, AES_192, AES_256, 3DES, 3DES_112> |
-This option and argument specify that the migration store is encrypted and which algorithm to use. When the algorithm argument is not provided, the ScanState tool employs the 3DES algorithm. |
-
LoadState |
-/decrypt<AES, AES_128, AES_192, AES_256, 3DES, 3DES_112> |
-This option and argument specify that the store must be decrypted and which algorithm to use. When the algorithm argument is not provided, the LoadState tool employs the 3DES algorithm. |
-
- | Determine whether you will perform a refresh migration or a replace migration. |
-
- | Learn which applications, user data, and operating system components USMT migrates. |
-
- | Choose an uncompressed, compressed, or hard-link migration store. |
-
- | Identify user accounts, application settings, operating system settings, and files that you want to migrate inside your organization. |
-
- | Test your migration before you deploy Windows to all users. |
-
Variable | -Explanation | -
---|---|
ALLUSERSAPPDATA |
-Same as CSIDL_COMMON_APPDATA. |
-
ALLUSERSPROFILE |
-Refers to %PROFILESFOLDER%\Public or %PROFILESFOLDER%\all users. |
-
COMMONPROGRAMFILES |
-Same as CSIDL_PROGRAM_FILES_COMMON. |
-
COMMONPROGRAMFILES(X86) |
-Refers to the C:\Program Files (x86)\Common Files folder on 64-bit systems. |
-
CSIDL_COMMON_ADMINTOOLS |
-Version 10.0. The file-system directory that contains administrative tools for all users of the computer. |
-
CSIDL_COMMON_ALTSTARTUP |
-The file-system directory that corresponds to the non-localized Startup program group for all users. |
-
CSIDL_COMMON_APPDATA |
-The file-system directory that contains application data for all users. A typical path Windows is C:\ProgramData. |
-
CSIDL_COMMON_DESKTOPDIRECTORY |
-The file-system directory that contains files and folders that appear on the desktop for all users. A typical Windows® XP path is C:\Documents and Settings\All Users\Desktop. A typical path is C:\Users\Public\Desktop. |
-
CSIDL_COMMON_DOCUMENTS |
-The file-system directory that contains documents that are common to all users. A typical path in Windows XP is C:\Documents and Settings\All Users\Documents. A typical path is C:\Users\Public\Documents. |
-
CSIDL_COMMON_FAVORITES |
-The file-system directory that serves as a common repository for favorites common to all users. A typical path is C:\Users\Public\Favorites. |
-
CSIDL_COMMON_MUSIC |
-The file-system directory that serves as a repository for music files common to all users. A typical path is C:\Users\Public\Music. |
-
CSIDL_COMMON_PICTURES |
-The file-system directory that serves as a repository for image files common to all users. A typical path is C:\Users\Public\Pictures. |
-
CSIDL_COMMON_PROGRAMS |
-The file-system directory that contains the directories for the common program groups that appear on the Start menu for all users. A typical path is C:\ProgramData\Microsoft\Windows\Start Menu\Programs. |
-
CSIDL_COMMON_STARTMENU |
-The file-system directory that contains the programs and folders which appear on the Start menu for all users. A typical path in Windows is C:\ProgramData\Microsoft\Windows\Start Menu. |
-
CSIDL_COMMON_STARTUP |
-The file-system directory that contains the programs that appear in the Startup folder for all users. A typical path in Windows XP is C:\Documents and Settings\All Users\Start Menu\Programs\Startup. A typical path is C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup. |
-
CSIDL_COMMON_TEMPLATES |
-The file-system directory that contains the templates that are available to all users. A typical path is C:\ProgramData\Microsoft\Windows\Templates. |
-
CSIDL_COMMON_VIDEO |
-The file-system directory that serves as a repository for video files common to all users. A typical path is C:\Users\Public\Videos. |
-
CSIDL_DEFAULT_APPDATA |
-Refers to the Appdata folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_LOCAL_APPDATA |
-Refers to the local Appdata folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_COOKIES |
-Refers to the Cookies folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_CONTACTS |
-Refers to the Contacts folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_DESKTOP |
-Refers to the Desktop folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_DOWNLOADS |
-Refers to the Downloads folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_FAVORITES |
-Refers to the Favorites folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_HISTORY |
-Refers to the History folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_INTERNET_CACHE |
-Refers to the Internet Cache folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_PERSONAL |
-Refers to the Personal folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_MYDOCUMENTS |
-Refers to the My Documents folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_MYPICTURES |
-Refers to the My Pictures folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_MYMUSIC |
-Refers to the My Music folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_MYVIDEO |
-Refers to the My Videos folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_RECENT |
-Refers to the Recent folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_SENDTO |
-Refers to the Send To folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_STARTMENU |
-Refers to the Start Menu folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_PROGRAMS |
-Refers to the Programs folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_STARTUP |
-Refers to the Startup folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_TEMPLATES |
-Refers to the Templates folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_DEFAULT_QUICKLAUNCH |
-Refers to the Quick Launch folder inside %DEFAULTUSERPROFILE%. |
-
CSIDL_FONTS |
-A virtual folder containing fonts. A typical path is C:\Windows\Fonts. |
-
CSIDL_PROGRAM_FILESX86 |
-The Program Files folder on 64-bit systems. A typical path is C:\Program Files(86). |
-
CSIDL_PROGRAM_FILES_COMMONX86 |
-A folder for components that are shared across applications on 64-bit systems. A typical path is C:\Program Files(86)\Common. |
-
CSIDL_PROGRAM_FILES |
-The Program Files folder. A typical path is C:\Program Files. |
-
CSIDL_PROGRAM_FILES_COMMON |
-A folder for components that are shared across applications. A typical path is C:\Program Files\Common. |
-
CSIDL_RESOURCES |
-The file-system directory that contains resource data. A typical path is C:\Windows\Resources. |
-
CSIDL_SYSTEM |
-The Windows System folder. A typical path is C:\Windows\System32. |
-
CSIDL_WINDOWS |
-The Windows directory or system root. This corresponds to the %WINDIR% or %SYSTEMROOT% environment variables. A typical path is C:\Windows. |
-
DEFAULTUSERPROFILE |
-Refers to the value in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList [DefaultUserProfile]. |
-
PROFILESFOLDER |
-Refers to the value in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList [ProfilesDirectory]. |
-
PROGRAMFILES |
-Same as CSIDL_PROGRAM_FILES. |
-
PROGRAMFILES(X86) |
-Refers to the C:\Program Files (x86) folder on 64-bit systems. |
-
SYSTEM |
-Refers to %WINDIR%\system32. |
-
SYSTEM16 |
-Refers to %WINDIR%\system. |
-
SYSTEM32 |
-Refers to %WINDIR%\system32. |
-
SYSTEMPROFILE |
-Refers to the value in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-18 [ProfileImagePath]. |
-
SYSTEMROOT |
-Refers to the root of the system drive. |
-
WINDIR |
-Refers to the Windows folder located on the system drive. |
-
Variable | -Explanation | -
---|---|
APPDATA |
-Same as CSIDL_APPDATA. |
-
CSIDL_ADMINTOOLS |
-The file-system directory that is used to store administrative tools for an individual user. The Microsoft® Management Console (MMC) saves customized consoles to this directory, which roams with the user profile. |
-
CSIDL_ALTSTARTUP |
-The file-system directory that corresponds to the user's non-localized Startup program group. |
-
CSIDL_APPDATA |
-The file-system directory that serves as a common repository for application-specific data. A typical path is C:\Documents and Settings\username\Application Data or C:\Users\username\AppData\Roaming. |
-
CSIDL_BITBUCKET |
-The virtual folder that contains the objects in the user's Recycle Bin. |
-
CSIDL_CDBURN_AREA |
-The file-system directory acting as a staging area for files waiting to be written to CD. A typical path is C:\Users\username\AppData\Local\Microsoft\Windows\MasteredBurning\Disc Burning. |
-
CSIDL_CONNECTIONS |
-The virtual folder representing Network Connections that contains network and dial-up connections. |
-
CSIDL_CONTACTS |
-This refers to the Contacts folder in %CSIDL_PROFILE%. |
-
CSIDL_CONTROLS |
-The virtual folder that contains icons for the Control Panel items. |
-
CSIDL_COOKIES |
-The file-system directory that serves as a common repository for Internet cookies. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Cookies. |
-
CSIDL_DESKTOP |
-The virtual folder representing the Windows desktop. |
-
CSIDL_DESKTOPDIRECTORY |
-The file-system directory used to physically store file objects on the desktop, which should not be confused with the desktop folder itself. A typical path is C:\Users\username\Desktop. |
-
CSIDL_DRIVES |
-The virtual folder representing My Computer that contains everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives. |
-
CSIDL_FAVORITES |
-The file-system directory that serves as a common repository for the user's favorites. A typical path is C:\Users\Username\Favorites. |
-
CSIDL_HISTORY |
-The file-system directory that serves as a common repository for Internet history items. |
-
CSIDL_INTERNET |
-A virtual folder for Internet Explorer. |
-
CSIDL_INTERNET_CACHE |
-The file-system directory that serves as a common repository for temporary Internet files. A typical path is C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files |
-
CSIDL_LOCAL_APPDATA |
-The file-system directory that serves as a data repository for local, non-roaming applications. A typical path is C:\Users\username\AppData\Local. |
-
CSIDL_MYDOCUMENTS |
-The virtual folder representing My Documents.A typical path is C:\Users\Username\Documents. |
-
CSIDL_MYMUSIC |
-The file-system directory that serves as a common repository for music files. A typical path is C:\Users\Username\Music. |
-
CSIDL_MYPICTURES |
-The file-system directory that serves as a common repository for image files. A typical path is C:\Users\Username\Pictures. |
-
CSIDL_MYVIDEO |
-The file-system directory that serves as a common repository for video files. A typical path is C:\Users\Username\Videos. |
-
CSIDL_NETHOOD |
-A file-system directory that contains the link objects that may exist in the My Network Places virtual folder. It is not the same as CSIDL_NETWORK, which represents the network namespace root. A typical path is C:\Users\Username\AppData\Roaming\Microsoft\Windows\Network Shortcuts. |
-
CSIDL_NETWORK |
-A virtual folder representing My Network Places, the root of the network namespace hierarchy. |
-
CSIDL_PERSONAL |
-The virtual folder representing the My Documents desktop item. This is equivalent to CSIDL_MYDOCUMENTS. -A typical path is C:\Documents and Settings\username\My Documents. |
-
CSIDL_PLAYLISTS |
-The virtual folder used to store play albums, typically C:\Users\username\My Music\Playlists. |
-
CSIDL_PRINTERS |
-The virtual folder that contains installed printers. |
-
CSIDL_PRINTHOOD |
-The file-system directory that contains the link objects that can exist in the Printers virtual folder. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Printer Shortcuts. |
-
CSIDL_PROFILE |
-The user's profile folder. A typical path is C:\Users\Username. |
-
CSIDL_PROGRAMS |
-The file-system directory that contains the user's program groups, which are themselves file-system directories. A typical path is C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs. |
-
CSIDL_RECENT |
-The file-system directory that contains shortcuts to the user's most recently used documents. A typical path is C:\Users\Username\AppData\Roaming\Microsoft\Windows\Recent. |
-
CSIDL_SENDTO |
-The file-system directory that contains Send To menu items. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\SendTo. |
-
CSIDL_STARTMENU |
-The file-system directory that contains Start menu items. A typical path in Windows XP is C:\Documents and Settings\username\Start Menu. A typical path in Windows Vista, Windows 7, or Windows 8 is C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu. |
-
CSIDL_STARTUP |
-The file-system directory that corresponds to the user's Startup program group. A typical path is C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. |
-
CSIDL_TEMPLATES |
-The file-system directory that serves as a common repository for document templates. A typical path is C:\Users\username\AppData\Roaming\Microsoft\Windows\Templates. |
-
HOMEPATH |
-Same as the standard environment variable. |
-
TEMP |
-The temporary folder on the computer. A typical path is %USERPROFILE%\AppData\Local\Temp. |
-
TMP |
-The temporary folder on the computer. A typical path is %USERPROFILE%\AppData\Local\Temp. |
-
USERPROFILE |
-Same as CSIDL_PROFILE. |
-
USERSID |
-Represents the current user-account security identifier (SID). For example, -S-1-5-21-1714567821-1326601894-715345443-1026. |
-
- | Describes operating system, hardware, and software requirements, and user prerequisites. |
-
- | Discusses general and security-related best practices when using USMT. |
-
- | Learn about the processes behind the ScanState and LoadState tools. |
-
- | Choose what to migrate and the best migration scenario for your enterprise. |
-
- | Explore command-line options for the ScanState, LoadState, and UsmtUtils tools. |
-
- | Learn about customizing a migration with XML files. |
-
- | Find requirements, best practices, and other considerations for performing a migration offline. |
-