mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-16 02:43:43 +00:00
Metadata update deployment/usmt 21
This commit is contained in:
@ -308,7 +308,7 @@ The <condition> functions return a Boolean value. You can use these elemen
|
||||
|Setting|Required?|Value|
|
||||
|--- |--- |--- |
|
||||
|*EncodedFileLocation*|Yes|The [location pattern](#specifying-locations) for the file that will be checked. Environment variables are allowed.|
|
||||
|*VersionTag*|Yes|The [version tag](#allowed) value that will be checked.|
|
||||
|*VersionTag*|Yes|The [version tag](#valid-version-tags) value that will be checked.|
|
||||
|*VersionValue*|Yes|A string pattern. For example, "Microsoft*".|
|
||||
|
||||
For example:
|
||||
@ -326,7 +326,7 @@ The <condition> functions return a Boolean value. You can use these elemen
|
||||
|Setting|Required?|Value|
|
||||
|--- |--- |--- |
|
||||
|*EncodedFileLocation*|Yes|The [location pattern](#specifying-locations) for the file that will be checked. Environment variables are allowed.|
|
||||
|*VersionTag*|Yes|The [version tag](#allowed) value that will be checked.|
|
||||
|*VersionTag*|Yes|The [version tag](#valid-version-tags) value that will be checked.|
|
||||
|*VersionValue*|Yes|The value to compare to. You cannot specify a pattern.|
|
||||
|
||||
- **IsFileVersionBelow**
|
||||
@ -336,7 +336,7 @@ The <condition> functions return a Boolean value. You can use these elemen
|
||||
|Setting|Required?|Value|
|
||||
|--- |--- |--- |
|
||||
|*EncodedFileLocation*|Yes|The [location pattern](#specifying-locations) for the file that will be checked. Environment variables are allowed.|
|
||||
|*VersionTag*|Yes|The [version tag](#allowed) value that will be checked.|
|
||||
|*VersionTag*|Yes|The [version tag](#valid-version-tags) value that will be checked.|
|
||||
|*VersionValue*|Yes|The value to compare to. You cannot specify a pattern.|
|
||||
|
||||
- **IsSystemContext**
|
||||
@ -931,7 +931,7 @@ Second, you can also filter registry values that contain data that you need. The
|
||||
</environment>
|
||||
```
|
||||
|
||||
### Example scenario 2:
|
||||
### Example scenario 2
|
||||
|
||||
In this scenario, you want to migrate five files named File1.txt, File2.txt, and so on, from %SYSTEMDRIVE%\\data\\userdata\\dir1\\dir2\\. To do this you must have the following <include> rule in an .xml file:
|
||||
|
||||
@ -1450,9 +1450,9 @@ Syntax:
|
||||
|
||||
## <merge>
|
||||
|
||||
The <merge> element determines what will happen when a collision occurs. A collision is when an object that is migrated is already present on the destination computer. If you do not specify this element, the default behavior for the registry is for the source object to overwrite the destination object. The default behavior for files is for the source file to be renamed to "OriginalFileName(1).OriginalExtension". This element specifies only what should be done when a collision occurs. It does not include objects. Therefore, for your objects to migrate, you must specify <include> rules along with the <merge> element. When an object is processed and a collision is detected, USMT will select the most specific merge rule and apply it to resolve the conflict. For example, if you have a <merge> rule C:\\\* \[\*\] set to <sourcePriority> and a <merge> rule C:\\subfolder\\\* \[\*\] set to <destinationPriority>, then USMT would use the <destinationPriority> rule because it is the more specific.
|
||||
The <merge> element determines what will happen when a collision occurs. A collision is when an object that is migrated is already present on the destination computer. If you do not specify this element, the default behavior for the registry is for the source object to overwrite the destination object. The default behavior for files is for the source file to be renamed to "OriginalFileName(1).OriginalExtension". This element specifies only what should be done when a collision occurs. It does not include objects. Therefore, for your objects to migrate, you must specify <include> rules along with the <merge> element. When an object is processed and a collision is detected, USMT will select the most specific merge rule and apply it to resolve the conflict. For example, if you have a <merge> rule `C:\* [*]` set to <sourcePriority> and a <merge> rule `C:\subfolder\* [*]` set to <destinationPriority>, then USMT would use the <destinationPriority> rule because it is the more specific.
|
||||
|
||||
For an example of this element, see [Conflicts and Precedence](usmt-conflicts-and-precedence.md).
|
||||
For an example of this element, see [Conflicts and precedence](usmt-conflicts-and-precedence.md).
|
||||
|
||||
- **Number of occurrences:** Unlimited
|
||||
|
||||
@ -1747,7 +1747,7 @@ Syntax:
|
||||
|Setting|Required?|Value|
|
||||
|--- |--- |--- |
|
||||
| type | Yes | *typeID* can be Registry, File, or Ini. If *typeId* is Ini, then you cannot have a space between *Path* and *object*. For example, the following is correct when type="Ini": <br/>**<pattern type="Ini">%WinAmp5InstPath%\Winamp.ini|WinAmp[keeponscreen]</pattern>** |
|
||||
| *Path* [*object*] | Yes | A valid registry or file path pattern, followed by at least one space, followed by brackets [] that contain the object to be migrated. <ul><li>*Path* can contain the asterisk (*) wildcard character or can be an [Recognized Environment Variables](usmt-recognized-environment-variables.md). You cannot use the question mark as a wildcard character.You can use HKCU and HKLM to refer to HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE respectively.</li><li>*Object* can contain the asterisk () wildcard character. However, you cannot use the question mark as a wildcard character. For example: <br/> **`C:\Folder\ [*]`** enumerates all files in C:<em>Path* but no subfolders of C:\Folder. <br/> **`C:\Folder* [*]`** enumerates all files and subfolders of C:\Folder. <br/> **`C:\Folder\ [*.mp3]`** enumerates all .mp3 files in C:\Folder. <br/> **`C:\Folder\ [Sample.doc]`** enumerates only the Sample.doc file located in C:\Folder. <div class="alert">**Note**<br/>If you are migrating a file that has a square bracket character ([ or ]) in the file name, you must insert the carrot (^) character directly before the bracket for it to be valid. For example, if there is 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>`.</div></li></ul> |
|
||||
| *Path* [*object*] | Yes | A valid registry or file path pattern, followed by at least one space, followed by brackets [] that contain the object to be migrated. <ul><li>*Path* can contain the asterisk (`*`) wildcard character or can be an [Recognized Environment Variables](usmt-recognized-environment-variables.md). You cannot use the question mark as a wildcard character.You can use HKCU and HKLM to refer to HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE respectively.</li><li>*Object* can contain the asterisk () wildcard character. However, you cannot use the question mark as a wildcard character. For example: <br/> **`C:\Folder\ [*]`** enumerates all files in C:<em>Path* but no subfolders of C:\Folder. <br/> **`C:\Folder* [*]`** enumerates all files and subfolders of C:\Folder. <br/> **`C:\Folder\ [*.mp3]`** enumerates all .mp3 files in C:\Folder. <br/> **`C:\Folder\ [Sample.doc]`** enumerates only the Sample.doc file located in C:\Folder. <div class="alert">**Note**<br/>If you are migrating a file that has a square bracket character ([ or ]) in the file name, you must insert the carrot (^) character directly before the bracket for it to be valid. For example, if there is 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>`.</div></li></ul> |
|
||||
|
||||
For example:
|
||||
|
||||
@ -1970,9 +1970,9 @@ For more examples of how to use this element, see [Exclude Files and Settings](u
|
||||
|
||||
You can use the following functions with the <script> element
|
||||
|
||||
- [String and pattern generating functions](#stringgeneratingfunctions)
|
||||
- [String and pattern generating functions](#string-and-pattern-generating-functions)
|
||||
|
||||
- [Simple executing scripts](#simple)
|
||||
- [Simple executing scripts](#simple-executing-scripts)
|
||||
|
||||
### String and pattern generating functions
|
||||
|
||||
@ -2208,11 +2208,11 @@ The following .xml file excludes all .mp3 files from migration. For additional e
|
||||
|
||||
The <variable> element is required in an <environment> element. For each <variable> element there must be one <objectSet>, <script>, or <text> element. The content of the <variable> element assigns a text value to the environment variable. This element has the following three options:
|
||||
|
||||
1. If the <variable> element contains a <text> element, then the value of the variable element will be the value of the <text> element.
|
||||
1. If the <variable> element contains a <text> element, then the value of the variable element will be the value of the <text> element.
|
||||
|
||||
2. If the <variable> element contains a <script> element and the invocation of the script produces a non-null string, then the value of the <variable> element will be the result of the script invocation.
|
||||
2. If the <variable> element contains a <script> element and the invocation of the script produces a non-null string, then the value of the <variable> element will be the result of the script invocation.
|
||||
|
||||
3. If the <variable> element contains an <objectSet> element and the evaluation of the <objectSet> element produces at least one object pattern, then the value of the first object to match the resulting object pattern will be the value of the variable element.
|
||||
3. If the <variable> element contains an <objectSet> element and the evaluation of the <objectSet> element produces at least one object pattern, then the value of the first object to match the resulting object pattern will be the value of the variable element.
|
||||
|
||||
- **Number of occurrences:** Unlimited
|
||||
|
||||
|
Reference in New Issue
Block a user