mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-19 12:23:37 +00:00
Update usmt-exclude-files-and-settings.md
adjusted the xml format, please merge if its correct
This commit is contained in:
@ -81,18 +81,18 @@ The following .xml file migrates all files and subfolders in `C:\Data`, except t
|
|||||||
<component type="Documents" context="System">
|
<component type="Documents" context="System">
|
||||||
<displayName _locID="miguser.sharedvideo">Test component</displayName>
|
<displayName _locID="miguser.sharedvideo">Test component</displayName>
|
||||||
<role role="Data">
|
<role role="Data">
|
||||||
<rules>
|
<rules>
|
||||||
<include>
|
<include>
|
||||||
<objectSet>
|
|
||||||
<pattern type="File">C:\Data\* [*]</pattern>
|
|
||||||
</objectSet>
|
|
||||||
</include>
|
|
||||||
<exclude>
|
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<pattern type="File"> C:\Data\temp\* [*]</pattern>
|
<pattern type="File">C:\Data\* [*]</pattern>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</exclude>
|
</include>
|
||||||
</rules>
|
<exclude>
|
||||||
|
<objectSet>
|
||||||
|
<pattern type="File"> C:\Data\temp\* [*]</pattern>
|
||||||
|
</objectSet>
|
||||||
|
</exclude>
|
||||||
|
</rules>
|
||||||
</role>
|
</role>
|
||||||
</component>
|
</component>
|
||||||
</migration>
|
</migration>
|
||||||
@ -110,14 +110,14 @@ The following .xml file migrates any subfolders in `C:\`EngineeringDrafts`, but
|
|||||||
<rules>
|
<rules>
|
||||||
<include>
|
<include>
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<pattern type="File"> C:\EngineeringDrafts\* [*]</pattern>
|
<pattern type="File"> C:\EngineeringDrafts\* [*]</pattern>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</include>
|
</include>
|
||||||
<exclude>
|
<exclude>
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<pattern type="File"> C:\EngineeringDrafts\ [*]</pattern>
|
<pattern type="File"> C:\EngineeringDrafts\ [*]</pattern>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</exclude>
|
</exclude>
|
||||||
</rules>
|
</rules>
|
||||||
</role>
|
</role>
|
||||||
</component>
|
</component>
|
||||||
@ -136,14 +136,14 @@ The following .xml file migrates all files and subfolders in `C:\EngineeringDraf
|
|||||||
<rules>
|
<rules>
|
||||||
<include>
|
<include>
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<pattern type="File"> C:\EngineeringDrafts\* [*]</pattern>
|
<pattern type="File"> C:\EngineeringDrafts\* [*]</pattern>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</include>
|
</include>
|
||||||
<exclude>
|
<exclude>
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<pattern type="File"> C:\EngineeringDrafts\ [Sample.doc]</pattern>
|
<pattern type="File"> C:\EngineeringDrafts\ [Sample.doc]</pattern>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</exclude>
|
</exclude>
|
||||||
</rules>
|
</rules>
|
||||||
</role>
|
</role>
|
||||||
</component>
|
</component>
|
||||||
@ -175,15 +175,15 @@ The following .xml file excludes all `.mp3` files from the migration:
|
|||||||
```xml
|
```xml
|
||||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/excludefiles">
|
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/excludefiles">
|
||||||
<component context="System" type="Documents">
|
<component context="System" type="Documents">
|
||||||
<displayName>Test</displayName>
|
<displayName>Test</displayName>
|
||||||
<role role="Data">
|
<role role="Data">
|
||||||
<rules>
|
<rules>
|
||||||
<unconditionalExclude>
|
<unconditionalExclude>
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
|
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</unconditionalExclude>
|
</unconditionalExclude>
|
||||||
</rules>
|
</rules>
|
||||||
</role>
|
</role>
|
||||||
</component>
|
</component>
|
||||||
</migration>
|
</migration>
|
||||||
@ -196,16 +196,16 @@ The following .xml file excludes only the files located on the C: drive.
|
|||||||
```xml
|
```xml
|
||||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/allfiles">
|
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/allfiles">
|
||||||
<component type="Documents" context="System">
|
<component type="Documents" context="System">
|
||||||
<displayName>Test</displayName>
|
<displayName>Test</displayName>
|
||||||
<role role="Data">
|
<role role="Data">
|
||||||
<rules>
|
<rules>
|
||||||
<unconditionalExclude>
|
<unconditionalExclude>
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<pattern type="File">c:\*[*]</pattern>
|
<pattern type="File">c:\*[*]</pattern>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</unconditionalExclude>
|
</unconditionalExclude>
|
||||||
</rules>
|
</rules>
|
||||||
</role>
|
</role>
|
||||||
</component>
|
</component>
|
||||||
</migration>
|
</migration>
|
||||||
```
|
```
|
||||||
@ -219,20 +219,20 @@ The following .xml file unconditionally excludes the `HKEY_CURRENT_USER` registr
|
|||||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/miguser">
|
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/miguser">
|
||||||
<component type="Documents" context="User">
|
<component type="Documents" context="User">
|
||||||
<displayName>Test</displayName>
|
<displayName>Test</displayName>
|
||||||
<role role="Data">
|
<role role="Data">
|
||||||
<rules>
|
<rules>
|
||||||
<include>
|
<include>
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<pattern type="Registry">HKCU\testReg[*]</pattern>
|
<pattern type="Registry">HKCU\testReg[*]</pattern>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</include>
|
</include>
|
||||||
<unconditionalExclude>
|
<unconditionalExclude>
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<pattern type="Registry">HKCU\*[*]</pattern>
|
<pattern type="Registry">HKCU\*[*]</pattern>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</unconditionalExclude>
|
</unconditionalExclude>
|
||||||
</rules>
|
</rules>
|
||||||
</role>
|
</role>
|
||||||
</component>
|
</component>
|
||||||
</migration>
|
</migration>
|
||||||
```
|
```
|
||||||
@ -246,23 +246,23 @@ The following .xml file unconditionally excludes the system folders of `C:\Windo
|
|||||||
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/miguser">
|
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/miguser">
|
||||||
<component type="Documents" context="System">
|
<component type="Documents" context="System">
|
||||||
<displayName>Test</displayName>
|
<displayName>Test</displayName>
|
||||||
<role role="Data">
|
<role role="Data">
|
||||||
<rules>
|
<rules>
|
||||||
<include>
|
<include>
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.doc]", "Fixed")</script>
|
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.doc]", "Fixed")</script>
|
||||||
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.xls]", "Fixed")</script>
|
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.xls]", "Fixed")</script>
|
||||||
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ppt]", "Fixed")</script>
|
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ppt]", "Fixed")</script>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</include>
|
</include>
|
||||||
<unconditionalExclude>
|
<unconditionalExclude>
|
||||||
<objectSet>
|
<objectSet>
|
||||||
<pattern type="File">C:\Program Files\* [*]</pattern>
|
<pattern type="File">C:\Program Files\* [*]</pattern>
|
||||||
<pattern type="File">C:\Windows\* [*]</pattern>
|
<pattern type="File">C:\Windows\* [*]</pattern>
|
||||||
</objectSet>
|
</objectSet>
|
||||||
</unconditionalExclude>
|
</unconditionalExclude>
|
||||||
</rules>
|
</rules>
|
||||||
</role>
|
</role>
|
||||||
</component>
|
</component>
|
||||||
</migration>
|
</migration>
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user