mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-16 19:03:46 +00:00
Freshness 04-12-2023 14
This commit is contained in:
@ -233,4 +233,4 @@ During LoadState, all the files will be restored, overwriting the existing files
|
||||
|
||||
## Related articles
|
||||
|
||||
[USMT XML reference](usmt-xml-reference.md)
|
||||
[USMT XML reference](usmt-xml-reference.md).
|
||||
|
@ -1,11 +1,11 @@
|
||||
---
|
||||
title: Estimate Migration Store Size (Windows 10)
|
||||
title: Estimate Migration Store Size
|
||||
description: Estimate the disk space requirement for a migration so that you can use User State Migration Tool (USMT).
|
||||
manager: aaroncz
|
||||
ms.author: frankroj
|
||||
ms.prod: windows-client
|
||||
author: frankroj
|
||||
ms.date: 11/01/2022
|
||||
ms.date: 12/19/2023
|
||||
ms.topic: article
|
||||
ms.technology: itpro-deploy
|
||||
---
|
||||
@ -16,49 +16,54 @@ The disk space requirements for a migration are dependent on the size of the mig
|
||||
|
||||
## Hard disk space requirements
|
||||
|
||||
- **Store**: For non-hard-link migrations, you should ensure that there's enough available disk space at the location where you'll save your store to contain the data being migrated. You can save your store to another partition, an external storage device such as a USB flash drive or a server. For more information, see [Choose a Migration Store Type](usmt-choose-migration-store-type.md).
|
||||
- **Store**: For non-hard-link migrations, ensure that there's enough available disk space at the location where the store is saved. The store contains the data being migrated. You can save your store to another partition, an external storage device such as a USB flash drive or a server. For more information, see [Choose a Migration Store Type](usmt-choose-migration-store-type.md).
|
||||
|
||||
- **Source Computer**: The source computer needs enough available space for the following items:
|
||||
|
||||
- **E250 megabytes (MB) minimum of hard disk space**: Space is needed to support the User State Migration Tool (USMT) 10.0 operations, for example, growth in the page file. If every volume involved in the migration is formatted as NTFS, 250 MB should be enough space to ensure success for almost every hard-link migration, regardless of the size of the migration. The USMT tools won't create the migration store if 250 MB of disk space isn't available.
|
||||
- **E250 megabytes (MB) minimum of hard disk space**: Space is needed to support the User State Migration Tool (USMT) operations, for example, growth in the page file. If every volume involved in the migration is formatted as NTFS, 250 MB should be enough space to ensure success for almost every hard-link migration, regardless of the size of the migration. The USMT tool that captures data (ScanState) doesn't create the migration store if 250 MB of disk space isn't available.
|
||||
|
||||
- **Temporary space for USMT to run**: Extra disk space for the USMT tools to operate is required. This disk space requirement doesn't include the minimum 250 MB needed to create the migration store. The amount of temporary space required can be calculated using the ScanState tool.
|
||||
- **Temporary space for USMT to run**: Extra disk space is required for the USMT tools to operate. This disk space requirement doesn't include the minimum 250 MB needed to create the migration store. The amount of temporary space required can be calculated using the ScanState tool.
|
||||
|
||||
- **Hard-link migration store**: It isn't necessary to estimate the size of a hard-link migration store. The only case where the hard-link store can be large is when non-NTFS file volumes exist on the system and those volumes contain data being migrated.
|
||||
|
||||
- **Destination computer**: The destination computer needs enough available space for the following components:
|
||||
|
||||
- **Operating system**
|
||||
- **Operating system**.
|
||||
|
||||
- **Applications**
|
||||
- **Applications**.
|
||||
|
||||
- **Data being migrated**: Data being migrated includes files and registry information.
|
||||
|
||||
- **Temporary space for USMT to run**: Extra disk space for the USMT tools to operate is required. The amount of temporary space required can be calculated using the ScanState tool.
|
||||
- **Temporary space for USMT to run**: Extra disk space is required for the USMT tools to operate. The amount of temporary space required can be calculated using the ScanState tool.
|
||||
|
||||
## Calculate disk space requirements using the ScanState tool
|
||||
|
||||
You can use the ScanState tool to calculate the disk space requirements for a particular compressed or uncompressed migration. It isn't necessary to estimate the migration store size for a hard-link migration since this method doesn't create a separate migration store. The ScanState tool provides disk space requirements for the state of the computer at the time the tool is run. The state of the computer may change during day-to-day use so it's recommended that you use the calculations as an estimate when planning your migration.
|
||||
You can use the ScanState tool to calculate the disk space requirements for a particular compressed or uncompressed migration. It isn't necessary to estimate the migration store size for a hard-link migration since this method doesn't create a separate migration store. The ScanState tool provides disk space requirements for the state of the computer at the time the tool is run. The state of the computer might change during day-to-day use. For this reason, use the calculations as an estimate when planning your migration.
|
||||
|
||||
To run the ScanState tool on the source computer with USMT installed:
|
||||
|
||||
1. Open a command prompt with administrator privileges.
|
||||
|
||||
2. Navigate to the USMT tools. For example, enter:
|
||||
1. Navigate to the USMT tools. For example, enter:
|
||||
|
||||
```cmd
|
||||
cd /d "C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\User State Migration Tool\<architecture>"
|
||||
cd /d "C:\Program Files (x86)\Windows Kits\10.0\Assessment and Deployment Kit\User State Migration Tool\<architecture>"
|
||||
```
|
||||
|
||||
where *<architecture>* is x86 or amd64.
|
||||
|
||||
3. Run the **ScanState** tool to generate an XML report of the space requirements. At the command prompt, enter:
|
||||
1. Run the **ScanState** tool to generate an XML report of the space requirements. At the command prompt, enter:
|
||||
|
||||
```cmd
|
||||
ScanState.exe <StorePath> /p:<path to a file>
|
||||
```
|
||||
|
||||
Where *<StorePath>* is a path to a directory where the migration store will be saved and *<path to a file>* is the path and filename where the XML report for space requirements will be saved. For example:
|
||||
Where:
|
||||
|
||||
- *<StorePath>* is a path to a directory where the migration store is saved.
|
||||
- *<path to a file>* is the path and filename where the XML report for space requirements is saved.
|
||||
|
||||
For example:
|
||||
|
||||
```cmd
|
||||
ScanState.exe c:\store /p:c:\spaceRequirements.xml
|
||||
@ -69,7 +74,8 @@ To run the ScanState tool on the source computer with USMT installed:
|
||||
The ScanState tool also allows you to estimate disk space requirements based on a customized migration. For example, you might not want to migrate the My Documents folder to the destination computer. You can specify this condition in a configuration file when you run the ScanState tool. For more information, see [Customize USMT XML files](usmt-customize-xml-files.md).
|
||||
|
||||
> [!NOTE]
|
||||
> To preserve the functionality of existing applications or scripts that require the previous behavior of USMT, the `/p` option is still available in USMT without having to specify the path to a file. See [Monitoring Options](usmt-scanstate-syntax.md#monitoring-options) for more information.
|
||||
>
|
||||
> To preserve the functionality of existing applications or scripts that require the previous behavior of USMT, the `/p` option is still available in USMT without having to specify the path to a file. For more information, see [Monitoring Options](usmt-scanstate-syntax.md#monitoring-options).
|
||||
|
||||
The space requirements report provides two elements, <**storeSize**> and <**temporarySpace**>. The <**temporarySpace**> value shows the disk space, in bytes, that USMT uses to operate during the migration but it doesn't include the minimum 250 MB needed to support USMT. The <**storeSize**> value shows the disk space, in bytes, required to host the migration store contents on both the source and destination computers. The following example shows a report generated using `/p:`*<path to a file>*.
|
||||
|
||||
@ -85,25 +91,26 @@ The space requirements report provides two elements, <**storeSize**> and &
|
||||
</PreMigration>
|
||||
```
|
||||
|
||||
Additionally, USMT performs a compliance check for a required minimum of 250 MB of available disk space and won't create a store if the compliance check fails.
|
||||
Additionally, USMT performs a compliance check for a required minimum of 250 MB of available disk space and doesn't create a store if the compliance check fails.
|
||||
|
||||
## Estimating migration store size
|
||||
|
||||
Determine how much space you'll need to store the migrated data. You should base your calculations on the volume of e-mail, personal documents, and system settings for each user. The best way to estimate the required space is to survey several computers to arrive at an average for the size of the store that you'll need.
|
||||
Determine how much space is needed to store the migrated data. Calculations should be based on the volume of e-mail, personal documents, and system settings for each user. The best way to estimate the required space is to survey several computers to arrive at an average for the size of the store that is needed.
|
||||
|
||||
The amount of space that is required in the store will vary, depending on the local storage strategies your organization uses. For example, one key element that determines the size of migration data sets is e-mail storage. If e-mail is stored centrally, data sets will be smaller. If e-mail is stored locally, such as offline-storage files, data sets will be larger. Mobile users will typically have larger data sets than workstation users. You should perform tests and inventory the network to determine the average data set size in your organization.
|
||||
The amount of space that is required in the store varies and depends on the local storage strategies the organization uses. For example, one key element that determines the size of migration data sets is e-mail storage. If e-mail is stored centrally, data sets are smaller. If e-mail is stored locally, such as offline-storage files, data sets are larger. Mobile users typically have larger data sets than workstation users. You should perform tests and inventory the network to determine the average data set size in your organization.
|
||||
|
||||
> [!NOTE]
|
||||
> You can create a space-estimate file (`Usmtsize.txt`) to estimate the size of the store by using the legacy `/p` command-line option .
|
||||
>
|
||||
> You can create a space-estimate file (`Usmtsize.txt`) to estimate the size of the store by using the legacy `/p` command-line option.
|
||||
|
||||
When trying to determine how much disk space you'll need, consider the following issues:
|
||||
When trying to determine how much disk space is needed, consider the following issues:
|
||||
|
||||
- **E-mail**: If users deal with a large volume of e-mail or keep e-mail on their local computers instead of on a mail server, the e-mail can take up as much disk space as all other user files combined. Prior to migrating user data, make sure that users who store e-mail locally synchronize their inboxes with their mail server.
|
||||
|
||||
- **User documents**: Frequently, all of a user's documents fit into less than 50 MB of space, depending on the types of files involved. This estimate assumes typical office work, such as word-processing documents and spreadsheets. This estimate can vary substantially based on the types of documents that your organization uses. For example, an architectural firm that predominantly uses computer-aided design (CAD) files needs much more space than a law firm that primarily uses word-processing documents. You don't need to migrate the documents that users store on file servers through mechanisms such as Folder Redirection, as long as users will have access to these locations after the migration.
|
||||
- **User documents**: Frequently, all of a user's documents fit into less than 50 MB of space, depending on the types of files involved. This estimate assumes typical office work, such as word-processing documents and spreadsheets. This estimate can vary substantially based on the types of documents that your organization uses. For example, an architectural firm that predominantly uses computer-aided design (CAD) files needs more space than a law firm that primarily uses word-processing documents. You don't need to migrate the documents that users store on file servers through mechanisms such as Folder Redirection, as long as users will have access to these locations after the migration.
|
||||
|
||||
- **User system settings**: Five megabytes is adequate space to save the registry settings. This requirement can fluctuate, however, based on the number of applications that have been installed. It's rare, however, for the user-specific portion of the registry to exceed 5 MB.
|
||||
- **User system settings**: Five megabytes is adequate space to save the registry settings. This requirement can fluctuate, however, based on the number of applications that are installed. It's rare, however, for the user-specific portion of the registry to exceed 5 MB.
|
||||
|
||||
## Related articles
|
||||
|
||||
[Common migration scenarios](usmt-common-migration-scenarios.md)
|
||||
- [Common migration scenarios](usmt-common-migration-scenarios.md).
|
||||
|
@ -1,18 +1,18 @@
|
||||
---
|
||||
title: Exclude Files and Settings (Windows 10)
|
||||
title: Exclude Files and Settings
|
||||
description: In this article, learn how to exclude files and settings when creating a custom .xml file and a Config.xml file.
|
||||
manager: aaroncz
|
||||
ms.author: frankroj
|
||||
ms.prod: windows-client
|
||||
author: frankroj
|
||||
ms.date: 09/18/2023
|
||||
ms.date: 12/20/2023
|
||||
ms.topic: article
|
||||
ms.technology: itpro-deploy
|
||||
---
|
||||
|
||||
# Exclude files and settings
|
||||
|
||||
When you specify the migration .xml files, `MigApp.xml`, `MigDocs.xml`, and `MigUser.xml`, the User State Migration Tool (USMT) 10.0 migrates the settings and components listed, as discussed in [What does USMT migrate?](usmt-what-does-usmt-migrate.md) You can create a custom .xml file to further specify what to include or exclude in the migration. In addition, you can create a `Config.xml` file to exclude an entire component from a migration. You can't, however, exclude users by using the migration .xml files or the `Config.xml` file. The only way to specify which users to include and exclude is by using the user options on the command line in the ScanState tool. For more information, see the [User options](usmt-scanstate-syntax.md#user-options) section of the [ScanState syntax](usmt-scanstate-syntax.md) article.
|
||||
When you specify the migration **.xml** files, `MigApp.xml`, `MigDocs.xml`, and `MigUser.xml`, the User State Migration Tool (USMT) migrates the settings and components listed, as discussed in [What does USMT migrate?](usmt-what-does-usmt-migrate.md) You can create a custom **.xml** file to further specify what to include or exclude in the migration. In addition, you can create a `Config.xml` file to exclude an entire component from a migration. You can't, however, exclude users by using the migration **.xml** files or the `Config.xml` file. The only way to specify which users to include and exclude is by using the user options on the command line in the ScanState tool. For more information, see the [User options](usmt-scanstate-syntax.md#user-options) section of the [ScanState syntax](usmt-scanstate-syntax.md) article.
|
||||
|
||||
Methods to customize the migration and include and exclude files and settings include:
|
||||
|
||||
@ -20,17 +20,17 @@ Methods to customize the migration and include and exclude files and settings in
|
||||
|
||||
- [Include and exclude](#include-and-exclude): You can use the **<include>** and **<exclude>** elements to exclude objects with conditions. For example, you can migrate all files located in the `C:\` drive, except any `.mp3` files. It's important to remember that [Conflicts and precedence](usmt-conflicts-and-precedence.md) apply to these elements.
|
||||
|
||||
- [unconditionalExclude](#example-1-how-to-migrate-all-files-from-c-except-mp3-files): You can use the **<unconditionalExclude>** element to globally exclude data. This element takes precedence over all other include and exclude rules in the .xml files. Therefore, this element excludes objects regardless of any other **<include>** rules that are in the .xml files. For example, you can exclude all .mp3 files on the computer, or you can exclude all files from C:\\UserData.
|
||||
- [unconditionalExclude](#example-1-how-to-migrate-all-files-from-c-except-mp3-files): You can use the **<unconditionalExclude>** element to globally exclude data. This element takes precedence over all other include and exclude rules in the **.xml** files. Therefore, this element excludes objects regardless of any other **<include>** rules that are in the **.xml** files. For example, you can exclude all .mp3 files on the computer, or you can exclude all files from C:\\UserData.
|
||||
|
||||
- [Create a Config.xml file](#create-a-config-xml-file): You can create and modify a `Config.xml` file to exclude an entire component from the migration. For example, you can use this file to exclude the settings for one of the default applications. In addition, creating and modifying a `Config.xml` file is the only way to exclude the operating-system settings that are migrated to computers running Windows. Excluding components using this file is easier than modifying the migration .xml files because you don't need to be familiar with the migration rules and syntax.
|
||||
- [Create a Config.xml file](#create-a-config-xml-file): You can create and modify a `Config.xml` file to exclude an entire component from the migration. For example, you can use this file to exclude the settings for one of the default applications. In addition, creating and modifying a `Config.xml` file is the only way to exclude the operating-system settings that are migrated to computers running Windows. Excluding components using this file is easier than modifying the migration **.xml** files because you don't need to be familiar with the migration rules and syntax.
|
||||
|
||||
## Create a custom .xml file
|
||||
|
||||
We recommend that you create a custom .xml file instead of modifying the default migration .xml files. When you use a custom .xml file, you can keep your changes separate from the default .xml file, which makes it easier to track your modifications.
|
||||
We recommend that you create a custom **.xml** file instead of modifying the default migration **.xml** files. When you use a custom **.xml** file, you can keep your changes separate from the default **.xml** file, which makes it easier to track your modifications.
|
||||
|
||||
### <include> and <exclude>
|
||||
|
||||
The migration .xml files, `MigApp.xml`, `MigDocs.xml`, and `MigUser.xml`, contain the **<component>** element, which typically represents a self-contained component or an application such as Microsoft® Office Outlook® and Word. To exclude the files and registry settings that are associated with these components, use the **<include>** and **<exclude>** elements. For example, you can use these elements to migrate all files and settings with pattern X except files and settings with pattern Y, where Y is more specific than X. For the syntax of these elements, see [USMT XML Reference](usmt-xml-reference.md).
|
||||
The migration **.xml** files, `MigApp.xml`, `MigDocs.xml`, and `MigUser.xml`, contain the **<component>** element, which typically represents a self-contained component or an application such as Microsoft® Office Outlook® and Word. To exclude the files and registry settings that are associated with these components, use the **<include>** and **<exclude>** elements. For example, you can use these elements to migrate all files and settings with pattern X except files and settings with pattern Y, where Y is more specific than X. For the syntax of these elements, see [USMT XML Reference](usmt-xml-reference.md).
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
@ -48,7 +48,7 @@ The migration .xml files, `MigApp.xml`, `MigDocs.xml`, and `MigUser.xml`, contai
|
||||
|
||||
### Example 1: How to migrate all files from `C:\` except `.mp3` files
|
||||
|
||||
The following .xml file migrates all files located on the C: drive, except any .mp3 files.
|
||||
The following **.xml** file migrates all files located on the C: drive, except any .mp3 files.
|
||||
|
||||
```xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/mp3files">
|
||||
@ -75,7 +75,7 @@ The following .xml file migrates all files located on the C: drive, except any .
|
||||
|
||||
### Example 2: How to migrate all files located in `C:\Data` except files in `C:\Data\tmp`
|
||||
|
||||
The following .xml file migrates all files and subfolders in `C:\Data`, except the files and subfolders in `C:\Data\tmp`.
|
||||
The following **.xml** file migrates all files and subfolders in `C:\Data`, except the files and subfolders in `C:\Data\tmp`.
|
||||
|
||||
```xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
|
||||
@ -101,7 +101,7 @@ The following .xml file migrates all files and subfolders in `C:\Data`, except t
|
||||
|
||||
### Example 3: How to exclude the files in a folder but include all subfolders
|
||||
|
||||
The following .xml file migrates any subfolders in `C:\`EngineeringDrafts`, but excludes all files that are in `C:\EngineeringDrafts`.
|
||||
The following .xml file migrates any subfolders in `C:\EngineeringDrafts`, but excludes all files that are in `C:\EngineeringDrafts`.
|
||||
|
||||
```xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
|
||||
@ -127,7 +127,7 @@ The following .xml file migrates any subfolders in `C:\`EngineeringDrafts`, but
|
||||
|
||||
### Example 4: How to exclude a file from a specific folder
|
||||
|
||||
The following .xml file migrates all files and subfolders in `C:\EngineeringDrafts`, except for the `Sample.doc` file in `C:\EngineeringDrafts`.
|
||||
The following **.xml** file migrates all files and subfolders in `C:\EngineeringDrafts`, except for the `Sample.doc` file in `C:\EngineeringDrafts`.
|
||||
|
||||
```xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
|
||||
@ -171,7 +171,7 @@ Here are some examples of how to use XML to exclude files, folders, and registry
|
||||
|
||||
##### Example 1: How to exclude all `.mp3` files
|
||||
|
||||
The following .xml file excludes all `.mp3` files from the migration:
|
||||
The following **.xml** file excludes all `.mp3` files from the migration:
|
||||
|
||||
```xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/excludefiles">
|
||||
@ -192,7 +192,7 @@ The following .xml file excludes all `.mp3` files from the migration:
|
||||
|
||||
##### Example 2: How to exclude all of the files on a specific drive
|
||||
|
||||
The following .xml file excludes only the files located on the C: drive.
|
||||
The following **.xml** file excludes only the files located on the C: drive.
|
||||
|
||||
```xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/allfiles">
|
||||
@ -213,7 +213,7 @@ The following .xml file excludes only the files located on the C: drive.
|
||||
|
||||
##### Example 3: How to exclude registry keys
|
||||
|
||||
The following .xml file unconditionally excludes the `HKEY_CURRENT_USER` registry key and all of its subkeys.
|
||||
The following **.xml** file unconditionally excludes the `HKEY_CURRENT_USER` registry key and all of its subkeys.
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
@ -240,7 +240,7 @@ The following .xml file unconditionally excludes the `HKEY_CURRENT_USER` registr
|
||||
|
||||
##### Example 4: How to Exclude `C:\Windows` and `C:\Program Files`
|
||||
|
||||
The following .xml file unconditionally excludes the system folders of `C:\Windows` and `C:\Program Files`. All `*.docx`, `*.xls` and `*.ppt` files aren't migrated because the **<unconditionalExclude>** element takes precedence over the **<include>** element.
|
||||
The following **.xml** file unconditionally excludes the system folders of `C:\Windows` and `C:\Program Files`. All `*.docx`, `*.xls` and `*.ppt` files aren't migrated because the **<unconditionalExclude>** element takes precedence over the **<include>** element.
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
@ -270,13 +270,13 @@ The following .xml file unconditionally excludes the system folders of `C:\Windo
|
||||
|
||||
## Create a Config XML File
|
||||
|
||||
You can create and modify a `Config.xml` file if you want to exclude components from the migration. Excluding components using this file is easier than modifying the migration .xml files because you don't need to be familiar with the migration rules and syntax. `Config.xml` is an optional file that you can create using the `/genconfig` command-line option with the ScanState tool. For example, you can use the `Config.xml` file to exclude the settings for one of the default applications. In addition, creating and modifying this file is the only way to exclude the operating-system settings that are migrated to computers running Windows.
|
||||
You can create and modify a `Config.xml` file if you want to exclude components from the migration. Excluding components using this file is easier than modifying the migration **.xml** files because you don't need to be familiar with the migration rules and syntax. `Config.xml` is an optional file that you can create using the `/genconfig` command-line option with the ScanState tool. For example, you can use the `Config.xml` file to exclude the settings for one of the default applications. In addition, creating and modifying this file is the only way to exclude the operating-system settings that are migrated to computers running Windows.
|
||||
|
||||
- **To exclude the settings for a default application:** Specify `migrate="no"` for the application under the **<Applications>** section of the `Config.xml` file.
|
||||
|
||||
- **To exclude an operating system setting:** Specify `migrate="no"` for the setting under the **<WindowsComponents>** section.
|
||||
|
||||
- **To exclude My Documents:** Specify `migrate="no"` for **My Documents** under the **<Documents>** section. Any **<include>** rules in the .xml files are still applied. For example, if you have a rule that includes all the .docx files in My Documents, then .docx files are still migrated. However, any additional files that aren't .docx aren't migrated.
|
||||
- **To exclude My Documents:** Specify `migrate="no"` for **My Documents** under the **<Documents>** section. Any **<include>** rules in the **.xml** files are still applied. For example, if you have a rule that includes all the .docx files in My Documents, then .docx files are still migrated. However, any additional files that aren't .docx aren't migrated.
|
||||
|
||||
For more information, see [Config.xml File](usmt-configxml-file.md).
|
||||
|
||||
@ -286,6 +286,5 @@ For more information, see [Config.xml File](usmt-configxml-file.md).
|
||||
|
||||
## Related articles
|
||||
|
||||
- [Customize USMT XML files](usmt-customize-xml-files.md)
|
||||
|
||||
- [USMT XML reference](usmt-xml-reference.md)
|
||||
- [Customize USMT XML files](usmt-customize-xml-files.md).
|
||||
- [USMT XML reference](usmt-xml-reference.md).
|
||||
|
@ -1,7 +1,7 @@
|
||||
### YamlMime:FAQ
|
||||
metadata:
|
||||
title: 'Frequently Asked Questions (Windows 10)'
|
||||
description: 'Learn about frequently asked questions and recommended solutions for migrations using User State Migration Tool (USMT) 10.0.'
|
||||
title: 'USMT Frequently Asked Questions'
|
||||
description: 'Learn about frequently asked questions and recommended solutions for migrations using User State Migration Tool (USMT).'
|
||||
ms.assetid: 813c13a7-6818-4e6e-9284-7ee49493241b
|
||||
ms.prod: windows-client
|
||||
ms.technology: itpro-deploy
|
||||
@ -11,11 +11,11 @@ metadata:
|
||||
ms.mktglfcycl: deploy
|
||||
ms.sitesec: library
|
||||
audience: itpro
|
||||
ms.date: 11/01/2022
|
||||
ms.date: 12/20/2023
|
||||
ms.topic: faq
|
||||
title: Frequently Asked Questions
|
||||
summary: |
|
||||
The following sections provide frequently asked questions and recommended solutions for migrations using User State Migration Tool (USMT) 10.0.
|
||||
The following sections provide frequently asked questions and recommended solutions for migrations using User State Migration Tool (USMT).
|
||||
|
||||
|
||||
sections:
|
||||
@ -35,13 +35,19 @@ sections:
|
||||
- question: |
|
||||
Can I store the files and settings directly on the destination computer or do I need a server?
|
||||
answer: |
|
||||
You don't need to save the files to a server. If you're moving the user state to a new computer, you can create the store on a shared folder, on media that you can remove, such as a USB flash drive (UFD), or you can store it directly on the destination computer, as in the following steps:
|
||||
You don't need to save the files to a server. If you're moving the user state to a new computer, you can create the store on:
|
||||
|
||||
- A shared folder.
|
||||
- On media that you can remove, such as a USB flash drive (UFD).
|
||||
- Directly on the destination computer.
|
||||
|
||||
To store it directly on the destination computer:
|
||||
|
||||
1. Create and share the directory `C:\store` on the destination computer.
|
||||
|
||||
2. Run the **ScanState** tool on the source computer and save the files and settings to `\\<DestinationComputerName>\store`
|
||||
1. Run the **ScanState** tool on the source computer and save the files and settings to `\\<DestinationComputerName>\store`
|
||||
|
||||
3. Run the **LoadState** tool on the destination computer and specify `C:\store` as the store location.
|
||||
1. Run the **LoadState** tool on the destination computer and specify `C:\store` as the store location.
|
||||
|
||||
- question: |
|
||||
Can I migrate data between operating systems with different languages?
|
||||
@ -61,26 +67,32 @@ sections:
|
||||
- question: |
|
||||
How do I uninstall USMT?
|
||||
answer: |
|
||||
If you've installed the Windows ADK on the computer, uninstalling Windows ADK will uninstall USMT. For client computers that don't have the Windows ADK installed, you can delete the USMT directory to uninstall USMT.
|
||||
For computers that have the Windows ADK installed, uninstalling the Windows ADK from the computer uninstalls USMT. For client computers that don't have the Windows ADK installed, you can delete the USMT directory to uninstall USMT.
|
||||
|
||||
- name: Files and Settings
|
||||
questions:
|
||||
- question: |
|
||||
How can I exclude a folder or a certain type of file from the migration?
|
||||
answer: |
|
||||
You can use the **<unconditionalExclude>** element to globally exclude data from the migration. For example, you can use this element to exclude all MP3 files on the computer or to exclude all files from `C:\UserData`. This element excludes objects regardless of any other **<include>** rules that are in the .xml files. For an example, see **<unconditionalExclude>** in the [Exclude files and settings](usmt-exclude-files-and-settings.md) article. For the syntax of this element, see [XML elements library](usmt-xml-elements-library.md).
|
||||
You can use the **<unconditionalExclude>** element to globally exclude data from the migration. For example, you can use this element to exclude all MP3 files on the computer or to exclude all files from `C:\UserData`. This element excludes objects regardless of any other **<include>** rules that are in the **.xml** files. For an example, see **<unconditionalExclude>** in the [Exclude files and settings](usmt-exclude-files-and-settings.md) article. For the syntax of this element, see [XML elements library](usmt-xml-elements-library.md).
|
||||
|
||||
- question: |
|
||||
What happens to files that were located on a drive that don't exist on the destination computer?
|
||||
answer: |
|
||||
USMT migrates the files to the `%SystemDrive%` while maintaining the correct folder hierarchy. For example, if `E:\data\File.pst` is on the source computer, but the destination computer doesn't have an E:\\ drive, the file will be migrated to `C:\data\File.pst`, if C:\\ is the system drive. This behavior holds true even when **<locationModify>** rules attempt to move data to a drive that doesn't exist on the destination computer.
|
||||
USMT migrates the files to the `%SystemDrive%` while maintaining the correct folder hierarchy. For example:
|
||||
|
||||
- `E:\data\File.pst` is on the source computer.
|
||||
- Destination computer doesn't have an E:\\ drive.
|
||||
- C:\\ is the system drive on the destination computer.
|
||||
|
||||
the file is migrated to `C:\data\File.pst`. This behavior holds true even when **<locationModify>** rules attempt to move data to a drive that doesn't exist on the destination computer.
|
||||
|
||||
- name: USMT .xml Files
|
||||
questions:
|
||||
- question: |
|
||||
Where can I get examples of USMT .xml files?
|
||||
Where can I get examples of USMT **.xml** files?
|
||||
answer: |
|
||||
The following articles include examples of USMT .xml files:
|
||||
The following articles include examples of USMT **.xml** files:
|
||||
|
||||
- [Exclude files and settings](usmt-exclude-files-and-settings.md)
|
||||
|
||||
@ -91,29 +103,29 @@ sections:
|
||||
- [Custom XML examples](usmt-custom-xml-examples.md)
|
||||
|
||||
- question: |
|
||||
Can I use custom .xml files that were written for USMT 5.0?
|
||||
Can I use custom **.xml** files that were written for USMT 5.0?
|
||||
answer: |
|
||||
Yes. You can use custom .xml files that were written for USMT 5.0 with USMT for Windows 10. However, in order to use new USMT functionality, you must revisit your custom USMT files and refresh them to include the new command-line options and XML elements.
|
||||
Yes. You can use custom **.xml** files that were written for USMT 5.0 with newer versions of USMT. However, in order to use new USMT functionality, you must revisit your custom USMT files and refresh them to include the new command-line options and XML elements.
|
||||
|
||||
- question: |
|
||||
How can I validate the .xml files?
|
||||
How can I validate the **.xml** files?
|
||||
answer: |
|
||||
You can use the USMT XML Schema (`MigXML.xsd`) to write and validate migration .xml files.
|
||||
You can use the USMT XML Schema (`MigXML.xsd`) to write and validate migration **.xml** files.
|
||||
|
||||
- question: |
|
||||
Why must I list the .xml files with both the `ScanState.exe` and `LoadState.exe` commands?
|
||||
Why must I list the **.xml** files with both the `ScanState.exe` and `LoadState.exe` commands?
|
||||
answer: |
|
||||
The .xml files aren't copied to the store as in previous versions of USMT. Because the **ScanState** and **LoadState** tools need the .xml files to control the migration, you must specify the same set of .xml files for the `ScanState.exe` and `LoadState.exe` commands. If you used a particular set of mig\*.xml files in the **ScanState** tool, either called through the `/auto` option, or individually through the `/i` option, then you should use same option to call the exact same mig\*.xml files in the **LoadState** tool. However, you don't have to specify the `Config.xml` file, unless you want to exclude some of the files and settings that you migrated to the store. For example, you might want to migrate the **My Documents** folder to the store, but not to the destination computer. To do this type of migration, modify the `Config.xml` file and specify the updated file with the `LoadState.exe` command. **LoadState** will migrate only the files and settings that you want to migrate.
|
||||
The **.xml** files aren't copied to the store as in previous versions of USMT. Because the **ScanState** and **LoadState** tools need the **.xml** files to control the migration, you must specify the same set of **.xml** files for the `ScanState.exe` and `LoadState.exe` commands. If you used a particular set of mig\*.xml files in the **ScanState** tool, either called through the `/auto` option, or individually through the `/i` option, then you should use same option to call the exact same mig\*.xml files in the **LoadState** tool. However, the `Config.xml` file doesn't need to be specified, unless files and settings that were migrated to the store need to be excluded. For example, you might want to migrate the **My Documents** folder to the store, but not to the destination computer. To do this type of migration, modify the `Config.xml` file and specify the updated file with the `LoadState.exe` command. **LoadState** migrates only the files and settings that you want to migrate.
|
||||
|
||||
If you exclude an .xml file from the `LoadState.exe` command, then all of the data that is in the store that was migrated with the missing .xml files will be migrated. However, the migration rules that were specified for the `ScanState.exe` command won't apply. For example, if you exclude a `MigApp.xml` file that has a rerouting rule such as `MigsysHelperFunction.RelativeMove("c:\data", "%CSIDL_PERSONAL%")`, USMT won't reroute the files. Instead, it will migrate them to `C:\data`.
|
||||
If you exclude an **.xml** file from the `LoadState.exe` command, then all of the data that is in the store that was migrated with the missing **.xml** files are migrated. However, the migration rules that were specified for the `ScanState.exe` command don't apply. For example, if you exclude a `MigApp.xml` file that has a rerouting rule such as `MigsysHelperFunction.RelativeMove("c:\data", "%CSIDL_PERSONAL%")`, USMT doesn't reroute the files. Instead, it migrates them to `C:\data`.
|
||||
|
||||
- question: |
|
||||
Which files can I modify and specify on the command line?
|
||||
answer: |
|
||||
You can specify the `MigUser.xml` and `MigApp.xml` files on the command line. You can modify each of these files. The migration of operating system settings is controlled by the manifests, which you can't modify. If you want to exclude certain operating-system settings or any other components, create and modify the `Config.xml` file.
|
||||
You can specify the `MigUser.xml` and `MigApp.xml` files on the command line. You can modify each of these files. Manifests control the migration of operating system settings. Manifests can't be modified. If you want to exclude certain operating-system settings or any other components, create and modify the `Config.xml` file.
|
||||
|
||||
- question: |
|
||||
What happens if I don't specify the .xml files on the command line?
|
||||
What happens if I don't specify the **.xml** files on the command line?
|
||||
answer: |
|
||||
- **ScanState**
|
||||
|
||||
@ -121,7 +133,7 @@ sections:
|
||||
|
||||
- **LoadState**
|
||||
|
||||
If you don't specify any files with the `LoadState.exe` command, all data that is in the store is migrated. However, any target-specific migration rules that were specified in .xml files with the `ScanState.exe` command won't apply. For example, if you exclude a `MigApp.xml` file that has a rerouting rule such as `MigsysHelperFunction.RelativeMove("c:\data", "%CSIDL_PERSONAL%")`, USMT won't reroute the files. Instead, it will migrate them to `C:\data`.
|
||||
If you don't specify any files with the `LoadState.exe` command, all data that is in the store is migrated. However, any target-specific migration rules that were specified in **.xml** files with the `ScanState.exe` command doesn't apply. For example, if you exclude a `MigApp.xml` file that has a rerouting rule such as `MigsysHelperFunction.RelativeMove("c:\data", "%CSIDL_PERSONAL%")`, USMT doesn't reroute the files. Instead, it migrates them to `C:\data`.
|
||||
|
||||
- name: Conflicts and Precedence
|
||||
questions:
|
||||
|
@ -1,56 +1,56 @@
|
||||
---
|
||||
title: General Conventions (Windows 10)
|
||||
title: General Conventions
|
||||
description: Learn about general XML guidelines and how to use XML helper functions in the XML Elements library to change migration behavior.
|
||||
manager: aaroncz
|
||||
ms.author: frankroj
|
||||
ms.prod: windows-client
|
||||
author: frankroj
|
||||
ms.date: 11/01/2022
|
||||
ms.date: 12/20/2023
|
||||
ms.topic: article
|
||||
ms.technology: itpro-deploy
|
||||
---
|
||||
|
||||
# General conventions
|
||||
|
||||
This topic describes the XML helper functions.
|
||||
This article describes the XML helper functions.
|
||||
|
||||
## General XML guidelines
|
||||
|
||||
Before you modify the .xml files, become familiar with the following guidelines:
|
||||
Before you modify the **.xml** files, become familiar with the following guidelines:
|
||||
|
||||
- **XML schema**
|
||||
- **XML schema**.
|
||||
|
||||
You can use the User State Migration Tool (USMT) 10.0 XML schema, MigXML.xsd, to write and validate migration .xml files.
|
||||
You can use the User State Migration Tool (USMT) XML schema, MigXML.xsd, to write and validate migration **.xml** files.
|
||||
|
||||
- **Conflicts**
|
||||
- **Conflicts**.
|
||||
|
||||
In general, when there are conflicts within the XML schema, the most specific pattern takes precedence. For more information, see [Conflicts and precedence](usmt-conflicts-and-precedence.md).
|
||||
|
||||
- **Required elements**
|
||||
- **Required elements**.
|
||||
|
||||
The required elements for a migration .xml file are **<migration>**, **<component>**, **<role>**, and **<rules>**.
|
||||
The required elements for a migration **.xml** file are **<migration>**, **<component>**, **<role>**, and **<rules>**.
|
||||
|
||||
- **Required child elements**
|
||||
- **Required child elements**.
|
||||
|
||||
- USMT doesn't fail with an error if you don't specify the required child elements. However, you must specify the required child elements for the parent element to affect the migration.
|
||||
|
||||
- The required child elements apply only to the first definition of the element. If these elements are defined and then referred to using their name, the required child elements don't apply. For example, if you define `<detects name="Example">` in **<namedElements>**, and you specify `<detects name="Example"/>` in **<component>** to refer to this element, the definition inside **<namedElements>** must have the required child elements, but the **<component>** element doesn't need to have the required child elements.
|
||||
|
||||
- **File names with brackets**
|
||||
- **File names with brackets**.
|
||||
|
||||
If you're migrating a file that has a bracket character (\[ or \]) in the file name, you must insert a carat (^) character directly before the bracket for the bracket character to be valid. For example, if there's a file named **file].txt**, you must specify `<pattern type="File">c:\documents\mydocs [file^].txt]</pattern>` instead of `<pattern type="File">c:\documents\mydocs [file].txt]</pattern>`.
|
||||
If you're migrating a file that has a bracket character (\[ or \]) in the file name, you must insert a carat (^) character. The carat (^) character must be directly before the bracket for the bracket character to be valid. For example, if there's a file named **file].txt**, you must specify `<pattern type="File">c:\documents\mydocs [file^].txt]</pattern>` instead of `<pattern type="File">c:\documents\mydocs [file].txt]</pattern>`.
|
||||
|
||||
- **Using quotation marks**
|
||||
- **Using quotation marks**.
|
||||
|
||||
When you surround code in quotation marks, you can use either double ("") or single (') quotation marks.
|
||||
|
||||
## Helper functions
|
||||
|
||||
You can use the XML helper functions in the [XML elements library](usmt-xml-elements-library.md) to change migration behavior. Before you use these functions in an .xml file, note the following items:
|
||||
You can use the XML helper functions in the [XML elements library](usmt-xml-elements-library.md) to change migration behavior. Before you use these functions in an **.xml** file, note the following items:
|
||||
|
||||
- **All of the parameters are strings**
|
||||
- **All of the parameters are strings**.
|
||||
|
||||
- **You can leave NULL parameters blank**
|
||||
- **You can leave NULL parameters blank**.
|
||||
|
||||
As with parameters with a default value convention, if you have a NULL parameter at the end of a list, you can leave it out. For example, the following function:
|
||||
|
||||
@ -64,20 +64,36 @@ You can use the XML helper functions in the [XML elements library](usmt-xml-elem
|
||||
SomeFunction("My String argument")
|
||||
```
|
||||
|
||||
- **The encoded location used in all the helper functions is an unambiguous string representation for the name of an object**
|
||||
- **The encoded location used in all the helper functions is an unambiguous string representation for the name of an object**.
|
||||
|
||||
It's composed of the node part, optionally followed by the leaf enclosed in square brackets. This format makes a clear distinction between nodes and leaves.
|
||||
The encoded location is composed of the node part, optionally followed by the leaf enclosed in square brackets. This format makes a clear distinction between nodes and leaves.
|
||||
|
||||
For example, specify the file `C:\Windows\Notepad.exe`: **c:\\Windows\[Notepad.exe\]**. Similarly, specify the directory `C:\Windows\System32` like this: **c:\\Windows\\System32**; note the absence of the **\[\]** characters.
|
||||
For example, specify the file
|
||||
|
||||
`C:\Windows\Notepad.exe`
|
||||
|
||||
as
|
||||
|
||||
**c:\\Windows\[Notepad.exe\]**
|
||||
|
||||
Similarly, specify the directory
|
||||
|
||||
`C:\Windows\System32`
|
||||
|
||||
as
|
||||
|
||||
**c:\\Windows\\System32**
|
||||
|
||||
Note the absence of the **\[\]** characters in second example.
|
||||
|
||||
The registry is represented in a similar way. The default value of a registry key is represented as an empty **\[\]** construct. For example, the default value for the `HKLM\SOFTWARE\MyKey` registry key is **HKLM\\SOFTWARE\\MyKey\[\]**.
|
||||
|
||||
- **You specify a location pattern in a way that is similar to how you specify an actual location**
|
||||
- **You specify a location pattern in a way that is similar to how you specify an actual location**.
|
||||
|
||||
The exception is that both the node and leaf part accept patterns. However, a pattern from the node doesn't extend to the leaf.
|
||||
|
||||
For example, the pattern **c:\\Windows\\\\\*** will match the `\Windows` directory and all subdirectories, but it will not match any of the files in those directories. To match the files as well, you must specify **c:\\Windows\\\*\[\*\]**.
|
||||
For example, the pattern **c:\\Windows\\\\\*** matches the `\Windows` directory and all subdirectories, but it doesn't match any of the files in those directories. To match the files as well, you must specify **c:\\Windows\\\*\[\*\]**.
|
||||
|
||||
## Related articles
|
||||
|
||||
[USMT XML reference](usmt-xml-reference.md)
|
||||
- [USMT XML reference](usmt-xml-reference.md).
|
||||
|
@ -1,18 +1,18 @@
|
||||
---
|
||||
title: User State Migration Tool (USMT) How-to articles (Windows 10)
|
||||
description: Reference the articles in this article to learn how to use User State Migration Tool (USMT) 10.0 to perform specific tasks.
|
||||
title: User State Migration Tool (USMT) How-to articles
|
||||
description: Reference the articles in this article to learn how to use User State Migration Tool (USMT) to perform specific tasks.
|
||||
manager: aaroncz
|
||||
ms.author: frankroj
|
||||
ms.prod: windows-client
|
||||
author: frankroj
|
||||
ms.date: 11/01/2022
|
||||
ms.date: 12/20/2023
|
||||
ms.topic: article
|
||||
ms.technology: itpro-deploy
|
||||
---
|
||||
|
||||
# User State Migration Tool (USMT) how-to articles
|
||||
|
||||
The following table lists articles that describe how to use User State Migration Tool (USMT) 10.0 to perform specific tasks.
|
||||
The following table lists articles that describe how to use User State Migration Tool (USMT) to perform specific tasks.
|
||||
|
||||
## In this section
|
||||
|
||||
@ -29,6 +29,6 @@ The following table lists articles that describe how to use User State Migration
|
||||
|
||||
## Related articles
|
||||
|
||||
- [User State Migration Tool (USMT) overview topics](usmt-topics.md)
|
||||
- [User State Migration Tool (USMT) troubleshooting](usmt-troubleshooting.md)
|
||||
- [User State Migration Toolkit (USMT) reference](usmt-reference.md)
|
||||
- [User State Migration Tool (USMT) overview topics](usmt-topics.md).
|
||||
- [User State Migration Tool (USMT) troubleshooting](usmt-troubleshooting.md).
|
||||
- [User State Migration Toolkit (USMT) reference](usmt-reference.md).
|
||||
|
@ -87,6 +87,6 @@ Links to detailed explanations of commands are available in the [Related article
|
||||
|
||||
## Related articles
|
||||
|
||||
- [Identify users](usmt-identify-users.md)
|
||||
- [ScanState syntax](usmt-scanstate-syntax.md)
|
||||
- [LoadState syntax](usmt-loadstate-syntax.md)
|
||||
- [Identify users](usmt-identify-users.md).
|
||||
- [ScanState syntax](usmt-scanstate-syntax.md).
|
||||
- [LoadState syntax](usmt-loadstate-syntax.md).
|
||||
|
Reference in New Issue
Block a user