diff --git a/windows/deployment/usmt/usmt-custom-xml-examples.md b/windows/deployment/usmt/usmt-custom-xml-examples.md index f36bfa0d02..7d31c9bdbb 100644 --- a/windows/deployment/usmt/usmt-custom-xml-examples.md +++ b/windows/deployment/usmt/usmt-custom-xml-examples.md @@ -15,19 +15,6 @@ ms.topic: article # Custom XML Examples -**Note** -Because the tables in this topic are wide, you may need to adjust the width of its window. - -## In This Topic: - -- [Example 1: Migrating an Unsupported Application](#example) - -- [Example 2: Migrating the My Videos Folder](#example2) - -- [Example 3: Migrating Files and Registry Keys](#example3) - -- [Example 4: Migrating Specific Folders from Various Locations](#example4) - ## Example 1: Migrating an Unsupported Application The following is a template for the sections that you need to migrate your application. The template is not functional on its own, but you can use it to write your own .xml file. @@ -98,13 +85,23 @@ The following is a template for the sections that you need to migrate your appli ## Example 2: Migrating the My Videos Folder -The following is a custom .xml file named CustomFile.xml that migrates My Videos for all users, if the folder exists on the source computer. +The following sample is a custom .xml file named CustomFile.xml that migrates My Videos for all users, if the folder exists on the source computer. -| Code | Behavior | -|------|----------| -|
<condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_MYVIDEO%")</condition>
| Verifies that My Videos exists on the source computer. |
-| <include filter='MigXmlHelper.IgnoreIrrelevantLinks()'>
| 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. |
-| <pattern type="File">%CSIDL_MYVIDEO%* [*]</pattern>
| Migrates My Videos for all users. |
+- **Sample condition**: Verifies that My Videos exists on the source computer:
+
+ `<pattern type="File">%ProgramFiles%\USMTTestFolder* [USMTTestFile.txt]</pattern>
| Migrates all instances of the file Usmttestfile.txt from all sub-directories under %ProgramFiles%\USMTTestFolder. |
-| <pattern type="File">%ProgramFiles%\USMTDIRTestFolder* []</pattern>
| Migrates the whole directory under %ProgramFiles%\USMTDIRTestFolder. |
-| <pattern type="Registry">HKCU\Software\USMTTESTKEY* [MyKey]</pattern>
| Migrates all instances of MyKey under HKCU\Software\USMTTESTKEY. |
-| <pattern type="Registry">HKLM\Software\USMTTESTKEY* []</pattern>
| Migrates the entire registry hive under HKLM\Software\USMTTESTKEY. |
+- **Sample pattern**: Migrates all instances of the file Usmttestfile.txt from all sub-directories under `%ProgramFiles%\USMTTestFolder`:
+
+ `