mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-23 22:33:41 +00:00
Metadata update deployment/usmt 11
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Include Files and Settings (Windows 10)
|
||||
description: Specify the migration .xml files you want, then use the User State Migration Tool (USMT) 10.0 to migrate the settings and components specified.
|
||||
description: Specify the migration .xml files you want, then use the User State Migration Tool (USMT) 10.0 to migrate the settings and components specified.
|
||||
ms.reviewer:
|
||||
manager: aaroncz
|
||||
ms.author: frankroj
|
||||
@ -13,25 +13,9 @@ ms.technology: itpro-deploy
|
||||
|
||||
# Include Files and Settings
|
||||
|
||||
When you specify the migration .xml files, User State Migration Tool (USMT) 10.0 migrates the settings and components specified in [What does USMT migrate?](usmt-what-does-usmt-migrate.md). To include additional files and settings, we recommend that you create a custom .xml file, and then include this file when using both the `ScanState.exe` and `LoadState.exe` commands. By creating a custom .xml file, you can keep your changes separate from the default .xml files, which makes it easier to track your modifications.
|
||||
|
||||
When you specify the migration .xml files, User State Migration Tool (USMT) 10.0 migrates the settings and components specified in [What Does USMT Migrate?](usmt-what-does-usmt-migrate.md) To include additional files and settings, we recommend that you create a custom .xml file and then include this file when using both the ScanState and LoadState commands. By creating a custom .xml file, you can keep your changes separate from the default .xml files, which makes it easier to track your modifications.
|
||||
|
||||
In this topic:
|
||||
|
||||
[Migrate a Single Registry Key](#bkmk-migsingleregkey)
|
||||
|
||||
[Migrate a Specific Folder](#bkmk-migspecificfolder)
|
||||
|
||||
[Migrate a Folder from a Specific Drive](#bkmk-migfoldspecdrive)
|
||||
|
||||
[Migrate a Folder from Any Location](#bkmk-migfolderanyloc)
|
||||
|
||||
[Migrate a File Type Into a Specific Folder](#bkmk-migfiletypetospecificfolder)
|
||||
|
||||
[Migrate a Specific File](#bkmk-migspecificfile)
|
||||
|
||||
## <a href="" id="bkmk-migsingleregkey"></a> Migrate a Single Registry Key
|
||||
|
||||
## Migrate a single registry key
|
||||
|
||||
The following .xml file migrates a single registry key.
|
||||
|
||||
@ -52,54 +36,53 @@ The following .xml file migrates a single registry key.
|
||||
</migration>
|
||||
```
|
||||
|
||||
## <a href="" id="bkmk-migspecificfolder"></a>Migrate a Specific Folder
|
||||
|
||||
## Migrate a specific folder
|
||||
|
||||
The following examples show how to migrate a folder from a specific drive, and from any location on the computer.
|
||||
|
||||
### <a href="" id="bkmk-migfoldspecdrive"></a> Migrate a Folder from a Specific Drive
|
||||
### Migrate a folder from a specific drive
|
||||
|
||||
- **Including subfolders.** The following .xml file migrates all files and subfolders from C:\\EngineeringDrafts to the destination computer.
|
||||
- **Including subfolders.** The following .xml file migrates all files and subfolders from `C:\EngineeringDrafts` to the destination computer.
|
||||
|
||||
``` xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
|
||||
<component type="Documents" context="System">
|
||||
<displayName>Component to migrate all Engineering Drafts Documents including subfolders</displayName>
|
||||
<role role="Data">
|
||||
<rules>
|
||||
<include>
|
||||
<rules>
|
||||
<include>
|
||||
<objectSet>
|
||||
<pattern type="File">C:\EngineeringDrafts\* [*]</pattern>
|
||||
</objectSet>
|
||||
</include>
|
||||
</rules>
|
||||
</role>
|
||||
</rules>
|
||||
</role>
|
||||
</component>
|
||||
</migration>
|
||||
```
|
||||
|
||||
- **Excluding subfolders.** The following .xml file migrates all files from C:\\EngineeringDrafts, but it does not migrate any subfolders within C:\\EngineeringDrafts.
|
||||
- **Excluding subfolders.** The following .xml file migrates all files from `C:\EngineeringDrafts`, but it doesn't migrate any subfolders within `C:\EngineeringDrafts`.
|
||||
|
||||
``` xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
|
||||
<component type="Documents" context="System">
|
||||
<displayName>Component to migrate all Engineering Drafts Documents without subfolders</displayName>
|
||||
<role role="Data">
|
||||
<rules>
|
||||
<include>
|
||||
<rules>
|
||||
<include>
|
||||
<objectSet>
|
||||
<pattern type="File"> C:\EngineeringDrafts\ [*]</pattern>
|
||||
</objectSet>
|
||||
</include>
|
||||
</rules>
|
||||
</role>
|
||||
</rules>
|
||||
</role>
|
||||
</component>
|
||||
</migration>
|
||||
```
|
||||
|
||||
### <a href="" id="bkmk-migfolderanyloc"></a>Migrate a Folder from Any Location
|
||||
### Migrate a folder from any location
|
||||
|
||||
The following .xml file migrates all files and subfolders of the EngineeringDrafts folder from any drive on the computer. If multiple folders exist with the same name, then all files with this name are migrated.
|
||||
The following .xml file migrates all files and subfolders of the `EngineeringDrafts` folder from any drive on the computer. If multiple folders exist with the same name, then all files with this name are migrated.
|
||||
|
||||
``` xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
|
||||
@ -119,7 +102,7 @@ The following .xml file migrates all files and subfolders of the EngineeringDraf
|
||||
</migration>
|
||||
```
|
||||
|
||||
The following .xml file migrates all files and subfolders of the EngineeringDrafts folder from any location on the C:\\ drive. If multiple folders exist with the same name, they are all migrated.
|
||||
The following .xml file migrates all files and subfolders of the `EngineeringDrafts` folder from any location on the `C:\` drive. If multiple folders exist with the same name, they're all migrated.
|
||||
|
||||
``` xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
|
||||
@ -139,10 +122,9 @@ The following .xml file migrates all files and subfolders of the EngineeringDraf
|
||||
</migration>
|
||||
```
|
||||
|
||||
## <a href="" id="bkmk-migfiletypetospecificfolder"></a>Migrate a File Type Into a Specific Folder
|
||||
## Migrate a file type into a specific folder
|
||||
|
||||
|
||||
The following .xml file migrates .mp3 files located in the specified drives on the source computer into the C:\\Music folder on the destination computer.
|
||||
The following .xml file migrates `.mp3` files located in the specified drives on the source computer into the `C:\Music` folder on the destination computer.
|
||||
|
||||
``` xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
|
||||
@ -167,31 +149,30 @@ The following .xml file migrates .mp3 files located in the specified drives on t
|
||||
</migration>
|
||||
```
|
||||
|
||||
## <a href="" id="bkmk-migspecificfile"></a>Migrate a Specific File
|
||||
|
||||
## Migrate a specific file
|
||||
|
||||
The following examples show how to migrate a file from a specific folder, and how to migrate a file from any location.
|
||||
|
||||
- **To migrate a file from a folder.** The following .xml file migrates only the Sample.doc file from C:\\EngineeringDrafts on the source computer to the destination computer.
|
||||
- **To migrate a file from a folder.** The following .xml file migrates only the `Sample.doc` file from `C:\EngineeringDrafts` on the source computer to the destination computer.
|
||||
|
||||
``` xml
|
||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
|
||||
<component type="Documents" context="System">
|
||||
<displayName>Component to migrate all Engineering Drafts Documents</displayName>
|
||||
<role role="Data">
|
||||
<rules>
|
||||
<include>
|
||||
<rules>
|
||||
<include>
|
||||
<objectSet>
|
||||
<pattern type="File"> C:\EngineeringDrafts\ [Sample.doc]</pattern>
|
||||
</objectSet>
|
||||
</include>
|
||||
</rules>
|
||||
</role>
|
||||
</rules>
|
||||
</role>
|
||||
</component>
|
||||
</migration>
|
||||
```
|
||||
|
||||
- **To migrate a file from any location.** To migrate the Sample.doc file from any location on the C:\\ drive, use the <pattern> element, as the following example shows. If multiple files exist with the same name on the C:\\ drive, all of files with this name are migrated.
|
||||
- **To migrate a file from any location.** To migrate the `Sample.doc` file from any location on the `C:\` drive, use the **<pattern>** element, as the following example shows. If multiple files exist with the same name on the `C:\` drive, all of files with this name are migrated.
|
||||
|
||||
``` xml
|
||||
<pattern type="File"> C:\* [Sample.doc] </pattern>
|
||||
@ -203,22 +184,12 @@ The following examples show how to migrate a file from a specific folder, and ho
|
||||
<script>MigXmlHelper.GenerateDrivePatterns("* [sample.doc]", "Fixed")</script>
|
||||
```
|
||||
|
||||
## Related topics
|
||||
|
||||
|
||||
[Customize USMT XML Files](usmt-customize-xml-files.md)
|
||||
|
||||
[Custom XML Examples](usmt-custom-xml-examples.md)
|
||||
|
||||
[Conflicts and Precedence](usmt-conflicts-and-precedence.md)
|
||||
|
||||
[USMT XML Reference](usmt-xml-reference.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## Related articles
|
||||
|
||||
[Customize USMT XML files](usmt-customize-xml-files.md)
|
||||
|
||||
[Custom XML examples](usmt-custom-xml-examples.md)
|
||||
|
||||
[Conflicts and precedence](usmt-conflicts-and-precedence.md)
|
||||
|
||||
[USMT XML reference](usmt-xml-reference.md)
|
||||
|
Reference in New Issue
Block a user