--- title: Include Files and Settings (Windows 10) description: Include Files and Settings ms.assetid: 9009c6a5-0612-4478-8742-abe5eb6cbac8 ms.prod: w10 ms.mktglfcycl: deploy ms.sitesec: library author: greg-lindsay --- # 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 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) ## Migrate a Single Registry Key The following .xml file migrates a single registry key. ``` syntax Component to migrate only registry value string HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache [Persistent] ``` ## Migrate a Specific Folder The following examples show how to migrate a folder from a specific drive, and from any location on the computer. ### 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. ``` syntax Component to migrate all Engineering Drafts Documents including subfolders          C:\EngineeringDrafts\* [*]        ``` - **Excluding subfolders.** The following .xml file migrates all files from C:\\EngineeringDrafts, but it does not migrate any subfolders within C:\\EngineeringDrafts. ``` syntax Component to migrate all Engineering Drafts Documents without subfolders          C:\EngineeringDrafts\ [*]        ``` ### 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. ``` syntax Component to migrate all Engineering Drafts Documents folder on any drive on the computer ``` 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. ``` syntax Component to migrate all Engineering Drafts Documents EngineeringDrafts folder from where ever it exists on the C: drive C:\*\EngineeringDrafts\* [*] C:\EngineeringDrafts\* [*] ``` ## 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. ``` syntax All .mp3 files to My Documents ``` ## 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. ``` syntax Component to migrate all Engineering Drafts Documents          C:\EngineeringDrafts\ [Sample.doc]        ``` - **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. ``` syntax C:\* [Sample.doc] ``` To migrate the Sample.doc file from any drive on the computer, use <script> as the following example shows. If multiple files exist with the same name, all files with this name are migrated. ``` syntax ``` ## 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)