mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-23 06:13:41 +00:00
USMT Refresh 11
This commit is contained in:
@ -26,11 +26,11 @@ For more information about using the `Config.xml` file with other migration file
|
||||
|
||||
## Migration Policies
|
||||
|
||||
In USMT, there are migration policies that can be configured in the `Config.xml` file. For example, you can configure **<ErrorControl>**, **<ProfileControl>**, and **<HardLinkStoreControl>** options. The following elements and parameters are for use in the `Config.xml` file only.
|
||||
In USMT, there are migration policies that can be configured in the `Config.xml` file. For example, you can configure **\<ErrorControl\>**, **\<ProfileControl\>**, and **\<HardLinkStoreControl\>** options. The following elements and parameters are for use in the `Config.xml` file only.
|
||||
|
||||
### <Policies>
|
||||
### \<Policies\>
|
||||
|
||||
The **<Policies>** element contains elements that describe the policies that USMT follows while creating a migration store. Valid children of the **<Policies>** element are **<ErrorControl>** and **<HardLinkStoreControl>**. The **<Policies>** element is a child of **<Configuration>**.
|
||||
The **\<Policies\>** element contains elements that describe the policies that USMT follows while creating a migration store. Valid children of the **\<Policies\>** element are **\<ErrorControl\>** and **\<HardLinkStoreControl\>**. The **\<Policies\>** element is a child of **\<Configuration\>**.
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -38,15 +38,15 @@ Syntax:
|
||||
<Policies> </Policies>
|
||||
```
|
||||
|
||||
### <ErrorControl>
|
||||
### \<ErrorControl\>
|
||||
|
||||
The **<ErrorControl>** element is an optional element you can configure in the `Config.xml` file. The configurable **<ErrorControl>** rules support only the environment variables for the operating system that is running and the currently logged-on user. As a workaround, you can specify a path using the (\*) wildcard character.
|
||||
The **\<ErrorControl\>** element is an optional element you can configure in the `Config.xml` file. The configurable **\<ErrorControl\>** rules support only the environment variables for the operating system that is running and the currently logged-on user. As a workaround, you can specify a path using the (\*) wildcard character.
|
||||
|
||||
- **Number of occurrences**: Once for each component
|
||||
|
||||
- **Parent elements**: The **<Policies>** element
|
||||
- **Parent elements**: The **\<Policies\>** element
|
||||
|
||||
- **Child elements**: The **<fileError>** and **<registryError>** element
|
||||
- **Child elements**: The **\<fileError\>** and **\<registryError\>** element
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -54,9 +54,9 @@ Syntax:
|
||||
<ErrorControl> </ErrorControl>
|
||||
```
|
||||
|
||||
The following example specifies that all locked files, regardless of their location (including files in C:\\Users), should be ignored. However, the migration fails if any file in C:\\Users can't be accessed because of any other reason. In the following example, the **<ErrorControl>** element ignores any problems in migrating registry keys that match the supplied pattern, and it resolves them to an **Access denied** error.
|
||||
The following example specifies that all locked files, regardless of their location (including files in C:\\Users), should be ignored. However, the migration fails if any file in C:\\Users can't be accessed because of any other reason. In the following example, the **\<ErrorControl\>** element ignores any problems in migrating registry keys that match the supplied pattern, and it resolves them to an **Access denied** error.
|
||||
|
||||
Additionally, the order in the **<ErrorControl>** section implies priority. In this example, the first **<nonFatal>** tag takes precedence over the second **<fatal>** tag. This precedence is applied, regardless of how many tags are listed.
|
||||
Additionally, the order in the **\<ErrorControl\>** section implies priority. In this example, the first **\<nonFatal\>** tag takes precedence over the second **\<fatal\>** tag. This precedence is applied, regardless of how many tags are listed.
|
||||
|
||||
```xml
|
||||
<ErrorControl>
|
||||
@ -72,15 +72,15 @@ Additionally, the order in the **<ErrorControl>** section implies priority
|
||||
|
||||
> [!IMPORTANT]
|
||||
>
|
||||
> The configurable **<ErrorControl>** rules support only the environment variables for the operating system that is running and the currently logged-on user. As a workaround, you can specify a path using the (\*) wildcard character.
|
||||
> The configurable **\<ErrorControl\>** rules support only the environment variables for the operating system that is running and the currently logged-on user. As a workaround, you can specify a path using the (\*) wildcard character.
|
||||
|
||||
### <fatal>
|
||||
### \<fatal\>
|
||||
|
||||
The **<fatal>** element isn't required.
|
||||
The **\<fatal\>** element isn't required.
|
||||
|
||||
- **Number of occurrences**: Once for each component
|
||||
|
||||
- **Parent elements**: **<fileError>** and **<registryError>**
|
||||
- **Parent elements**: **\<fileError\>** and **\<registryError\>**
|
||||
|
||||
- **Child elements**: None.
|
||||
|
||||
@ -94,17 +94,17 @@ Syntax:
|
||||
|--- |--- |--- |
|
||||
|errorCode|No|"any" or "*specify system error message here*"|
|
||||
|
||||
You use the **<fatal>** element to specify that errors matching a specific pattern should cause USMT to halt the migration.
|
||||
You use the **\<fatal\>** element to specify that errors matching a specific pattern should cause USMT to halt the migration.
|
||||
|
||||
### <fileError>
|
||||
### \<fileError\>
|
||||
|
||||
The **<fileError>** element isn't required.
|
||||
The **\<fileError\>** element isn't required.
|
||||
|
||||
- **Number of occurrences**: Once for each component
|
||||
|
||||
- **Parent elements**: **<ErrorControl>**
|
||||
- **Parent elements**: **\<ErrorControl\>**
|
||||
|
||||
- **Child elements**: **<nonFatal>** and **<fatal>**
|
||||
- **Child elements**: **\<nonFatal\>** and **\<fatal\>**
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -112,15 +112,15 @@ Syntax:
|
||||
<fileError> </fileError>
|
||||
```
|
||||
|
||||
You use the **<fileError>** element to represent the behavior associated with file errors.
|
||||
You use the **\<fileError\>** element to represent the behavior associated with file errors.
|
||||
|
||||
### <nonFatal>
|
||||
### \<nonFatal\>
|
||||
|
||||
The **<nonFatal>** element isn't required.
|
||||
The **\<nonFatal\>** element isn't required.
|
||||
|
||||
- **Number of occurrences**: Once for each component
|
||||
|
||||
- **Parent elements**: The **<fileError>** and **<registryError>** elements.
|
||||
- **Parent elements**: The **\<fileError\>** and **\<registryError\>** elements.
|
||||
|
||||
- **Child elements**: None.
|
||||
|
||||
@ -132,19 +132,19 @@ Syntax:
|
||||
|
||||
|Parameter|Required|Value|
|
||||
|--- |--- |--- |
|
||||
|**<errorCode>**|No|"any" or "*specify system error message*". If system error messages aren't specified, the default behavior applies the parameter to all system error messages.|
|
||||
|**\<errorCode\>**|No|"any" or "*specify system error message*". If system error messages aren't specified, the default behavior applies the parameter to all system error messages.|
|
||||
|
||||
You use the **<nonFatal>** element to specify that errors matching a specific pattern shouldn't cause USMT to halt the migration.
|
||||
You use the **\<nonFatal\>** element to specify that errors matching a specific pattern shouldn't cause USMT to halt the migration.
|
||||
|
||||
### <registryError>
|
||||
### \<registryError\>
|
||||
|
||||
The **<registryError>** element isn't required.
|
||||
The **\<registryError\>** element isn't required.
|
||||
|
||||
- **Number of occurrences**: Once for each component
|
||||
|
||||
- **Parent elements**: **<ErrorControl>**
|
||||
- **Parent elements**: **\<ErrorControl\>**
|
||||
|
||||
- **Child elements**: **<nonfatal>** and **<fatal>**
|
||||
- **Child elements**: **\<nonfatal\>** and **\<fatal\>**
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -154,13 +154,13 @@ Syntax:
|
||||
|
||||
|Parameter|Required|Value|
|
||||
|--- |--- |--- |
|
||||
|**<errorCode>**|No|"any" or "*specify system error message here*". If system error messages aren't specified, the default behavior applies the parameter to all system error messages.|
|
||||
|**\<errorCode\>**|No|"any" or "*specify system error message here*". If system error messages aren't specified, the default behavior applies the parameter to all system error messages.|
|
||||
|
||||
You use the **<registryError>** element to specify that errors matching a specific pattern shouldn't cause USMT to halt the migration.
|
||||
You use the **\<registryError\>** element to specify that errors matching a specific pattern shouldn't cause USMT to halt the migration.
|
||||
|
||||
### <HardLinkStoreControl>
|
||||
### \<HardLinkStoreControl\>
|
||||
|
||||
The **<HardLinkStoreControl>** element contains elements that describe how to handle files during the creation of a hard-link migration store. Its only valid child is **<fileLocked>**.
|
||||
The **\<HardLinkStoreControl\>** element contains elements that describe how to handle files during the creation of a hard-link migration store. Its only valid child is **\<fileLocked\>**.
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -170,9 +170,9 @@ Syntax:
|
||||
|
||||
- **Number of occurrences**: Once for each component
|
||||
|
||||
- **Parent elements**: **<Policies>**
|
||||
- **Parent elements**: **\<Policies\>**
|
||||
|
||||
- **Child elements**: **<fileLocked>**
|
||||
- **Child elements**: **\<fileLocked\>**
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -180,11 +180,11 @@ Syntax:
|
||||
<HardLinkStoreControl> </HardLinkStoreControl>
|
||||
```
|
||||
|
||||
The following **<HardLinkStoreControl>** sample code specifies that hard links can be created to locked files only if the locked file resides somewhere under C:\\Users\\. Otherwise, a file-access error occurs when a locked file is encountered that can't be copied, even though is technically possible for the link to be created.
|
||||
The following **\<HardLinkStoreControl\>** sample code specifies that hard links can be created to locked files only if the locked file resides somewhere under C:\\Users\\. Otherwise, a file-access error occurs when a locked file is encountered that can't be copied, even though is technically possible for the link to be created.
|
||||
|
||||
> [!IMPORTANT]
|
||||
>
|
||||
> The **<ErrorControl>** section can be configured to conditionally ignore file access errors, based on the file's location.
|
||||
> The **\<ErrorControl\>** section can be configured to conditionally ignore file access errors, based on the file's location.
|
||||
|
||||
```xml
|
||||
<Policy>
|
||||
@ -200,9 +200,9 @@ The following **<HardLinkStoreControl>** sample code specifies that hard l
|
||||
</Policy>
|
||||
```
|
||||
|
||||
### <fileLocked>
|
||||
### \<fileLocked\>
|
||||
|
||||
The **<fileLocked>** element contains elements that describe how to handle files that are locked for editing. The rules defined by the **<fileLocked>** element are processed in the order in which they appear in the XML file.
|
||||
The **\<fileLocked\>** element contains elements that describe how to handle files that are locked for editing. The rules defined by the **\<fileLocked\>** element are processed in the order in which they appear in the XML file.
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -210,9 +210,9 @@ Syntax:
|
||||
<fileLocked> </fileLocked>
|
||||
```
|
||||
|
||||
### <createHardLink>
|
||||
### \<createHardLink\>
|
||||
|
||||
The **<createHardLink>** element defines a standard MigXML pattern that describes file paths where hard links should be created, even if the file is locked for editing by another application.
|
||||
The **\<createHardLink\>** element defines a standard MigXML pattern that describes file paths where hard links should be created, even if the file is locked for editing by another application.
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -220,9 +220,9 @@ Syntax:
|
||||
<createHardLink> <specify pattern here> </createHardLink>
|
||||
```
|
||||
|
||||
### <errorHardLink>
|
||||
### \<errorHardLink\>
|
||||
|
||||
The **<errorHardLink>** element defines a standard MigXML pattern that describes file paths where hard links shouldn't be created if the file is locked for editing by another application. USMT attempts to copy files under these paths into the migration store. However, if that isn't possible, **Error\_Locked** is thrown. This error is a standard Windows application programming interface (API) error that can be captured by the **<ErrorControl>** section to either cause USMT to skip the file or abort the migration.
|
||||
The **\<errorHardLink\>** element defines a standard MigXML pattern that describes file paths where hard links shouldn't be created if the file is locked for editing by another application. USMT attempts to copy files under these paths into the migration store. However, if that isn't possible, **Error\_Locked** is thrown. This error is a standard Windows application programming interface (API) error that can be captured by the **\<ErrorControl\>** section to either cause USMT to skip the file or abort the migration.
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -230,9 +230,9 @@ Syntax:
|
||||
<errorHardLink> <specify pattern here> </errorHardLink>
|
||||
```
|
||||
|
||||
### <ProfileControl>
|
||||
### \<ProfileControl\>
|
||||
|
||||
This element is used to contain other elements that establish rules for migrating profiles, users, and policies around local group membership during the migration. **<ProfileMigration>** is a child of **<Configuration>**.
|
||||
This element is used to contain other elements that establish rules for migrating profiles, users, and policies around local group membership during the migration. **\<ProfileMigration\>** is a child of **\<Configuration\>**.
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -240,9 +240,9 @@ Syntax:
|
||||
<ProfileControl> </ProfileControl>
|
||||
```
|
||||
|
||||
### <localGroups>
|
||||
### \<localGroups\>
|
||||
|
||||
This element is used to contain other elements that establish rules for how to migrate local groups. **<localGroups>** is a child of **<ProfileControl>**.
|
||||
This element is used to contain other elements that establish rules for how to migrate local groups. **\<localGroups\>** is a child of **\<ProfileControl\>**.
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -250,7 +250,7 @@ Syntax:
|
||||
<localGroups> </localGroups>
|
||||
```
|
||||
|
||||
### <mappings>
|
||||
### \<mappings\>
|
||||
|
||||
This element is used to contain other elements that establish mappings between groups.
|
||||
|
||||
@ -260,9 +260,9 @@ Syntax:
|
||||
<mappings> </mappings>
|
||||
```
|
||||
|
||||
### <changeGroup>
|
||||
### \<changeGroup\>
|
||||
|
||||
This element describes the source and destination groups for a local group membership change during the migration. It's a child of **<localGroups>**. The following parameters are defined:
|
||||
This element describes the source and destination groups for a local group membership change during the migration. It's a child of **\<localGroups\>**. The following parameters are defined:
|
||||
|
||||
|Parameter|Required|Value|
|
||||
|--- |--- |--- |
|
||||
@ -270,7 +270,7 @@ This element describes the source and destination groups for a local group membe
|
||||
|To|Yes|A local group that the users are to be moved to during the migration.|
|
||||
|appliesTo|Yes|nonmigratedUsers, migratedUsers, AllUsers. This value defines which users the change group operation should apply to.|
|
||||
|
||||
The valid and required children of **<changeGroup>** are **<include>** and **<exclude>**. Although both can be children at the same time, only one is required.
|
||||
The valid and required children of **\<changeGroup\>** are **\<include\>** and **\<exclude\>**. Although both can be children at the same time, only one is required.
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -278,9 +278,9 @@ Syntax:
|
||||
<changeGroup From="Group1" To= "Group2"> </changeGroup>
|
||||
```
|
||||
|
||||
### <include>
|
||||
### \<include\>
|
||||
|
||||
This element specifies that its required child, *<pattern>*, should be included in the migration.
|
||||
This element specifies that its required child, *\<pattern\>*, should be included in the migration.
|
||||
|
||||
Syntax:
|
||||
|
||||
@ -288,9 +288,9 @@ Syntax:
|
||||
<include> </include>
|
||||
```
|
||||
|
||||
### <exclude>
|
||||
### \<exclude\>
|
||||
|
||||
This element specifies that its required child, *<pattern>*, should be excluded from the migration.
|
||||
This element specifies that its required child, *\<pattern\>*, should be excluded from the migration.
|
||||
|
||||
Syntax:
|
||||
|
||||
|
Reference in New Issue
Block a user