Windows XP to Windows 7 USMT 4 customizations
So I’ve been able to modify some setting in USMT like excluding certain files type as well as not capturing the old Windows XP theme. I've come across an issue with migrating users "My Documents" and offline file redirection. At first i was capturing all My Documents and restoring them but with My Documents redirected it is set to MOVE the data to the redirected folder. What ends up happing is that the user experiences a very long logon delay the first time they logon as the local my documents is moved to the redirected folder. Also it caused and issue with Sync center where it basically had conflicts with all the files in my documents. We cleaned it up but I wanted to change USMT to do the following and I just can't seem to get it to work. I want USMT to first capture My Documents but NOT restore them during loadstate. This way the My Documents data is saved in the TEMP locations as a backup. I made a copy of MIgDocs.xml to MigDocs2.xml and change some of the settings, updating the DP and I call the MigDocs2.xml during the "Restore User State" in the TS. My MigDocs2.xml looks like this any insight into this is GREATLY appreciated: --------------------- ?xml version="1.0" encoding="UTF-8"?> <migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/migdocs"> <!-- This component migrates data in system context --> <component type="Documents" context="System"> <displayName>MigDocSystem</displayName> <role role="Data"> <rules> <!-- GenerateDocPatterns takes 3 arguments 1. generate patterns for scattered files inside %ProgramFiles% 2. generate include patterns (FALSE generates exclude patterns) 3. generate patterns for system drive only --> <include filter='MigXmlHelper.IgnoreIrrelevantLinks()'> <objectSet> <script>MigXmlHelper.GenerateDocPatterns ("FALSE","TRUE","FALSE")</script> </objectSet> </include> <exclude filter='MigXmlHelper.IgnoreIrrelevantLinks()'> <objectSet> <script>MigXmlHelper.GenerateDocPatterns ("FALSE","FALSE","FALSE")</script> </objectSet> </exclude> <exclude> <objectSet> <pattern type="File">%CSIDL_COMMON_DESKTOPDIRECTORY%\* [*]</pattern> <pattern type="File">%CSIDL_MYDOCUMENTS%\*[*]</pattern> </objectSet> </exclude> <unconditionalExclude> <objectSet> <script>MigXmlHelper.GenerateDrivePatterns ("*[*.ISO]", "Fixed")</script> <script>MigXmlHelper.GenerateDrivePatterns ("*[*.MP3]", "Fixed")</script> <script>MigXmlHelper.GenerateDrivePatterns ("*[*.MSI]", "Fixed")</script> </objectSet> </unconditionalExclude> <contentModify script="MigXmlHelper.MergeShellLibraries('TRUE','TRUE')"> <objectSet> <pattern type="File">*[*.library-ms]</pattern> </objectSet> </contentModify> <merge script="MigXmlHelper.SourcePriority()"> <objectSet> <pattern type="File">*[*.library-ms]</pattern> </objectSet> </merge> </rules> </role> </component> <!-- This component migrates data in user context --> <component type="Documents" context="User"> <displayName>MigDocUser</displayName> <role role="Data"> <rules> <include filter='MigXmlHelper.IgnoreIrrelevantLinks()'> <objectSet> <script>MigXmlHelper.GenerateDocPatterns ("FALSE","TRUE","FALSE")</script> </objectSet> </include> <exclude filter='MigXmlHelper.IgnoreIrrelevantLinks()'> <objectSet> <script>MigXmlHelper.GenerateDocPatterns ("FALSE","FALSE","FALSE")</script> </objectSet> </exclude> <exclude> <objectSet> <pattern type="File">%CSIDL_COMMON_DESKTOPDIRECTORY%\* [*]</pattern> <pattern type="File">%CSIDL_MYDOCUMENTS%\*[*]</pattern> </objectSet> </exclude> <unconditionalExclude> <objectSet> <script>MigXmlHelper.GenerateDrivePatterns ("*[*.ISO]", "Fixed")</script> <script>MigXmlHelper.GenerateDrivePatterns ("*[*.MP3]", "Fixed")</script> <script>MigXmlHelper.GenerateDrivePatterns ("*[*.MSI]", "Fixed")</script> </objectSet> </unconditionalExclude> <!-- Example: <exclude> <objectSet> <pattern type="File">%CSIDL_MYVIDEO%\* [*]</pattern> </objectSet> </exclude> --> <contentModify script="MigXmlHelper.MergeShellLibraries('TRUE','TRUE')"> <objectSet> <pattern type="File">*[*.library-ms]</pattern> </objectSet> </contentModify> <merge script="MigXmlHelper.SourcePriority()"> <objectSet> <pattern type="File">*[*.library-ms]</pattern> </objectSet> </merge> </rules> </role> </component> </migration> ----------------
October 18th, 2010 4:01pm

While I continue to work at finding out how to exclude the My Documents from being restored I thought I would mention the reason why I'm doing this with hopes that someone has a solution. The problem I'm having is that our XP machines use a third party tool for syncing the users LOCAL My Documents folder to their network home drive. USMT is capturing the local My Documents Data on the laptops and restoring it. With Windows 7 we are using folder redirection as well as offline files and the first time the users logon they experience a long wait up to 45 minutes while the local My Documents data(18 GB) is Moved to the redirected network drive. So what I want to do is run USMT just to backup their local My Documents Data but NOT restore it. If I find a solution I will post it.
Free Windows Admin Tool Kit Click here and download it now
October 19th, 2010 2:54pm

Looks like this is exactly what I'm looking for so I'm going to test and post my results. http://technet.microsoft.com/en-us/library/cc766203(WS.10).aspx
October 19th, 2010 6:11pm

I can't seem to get this working and could really use some help :-(
Free Windows Admin Tool Kit Click here and download it now
October 20th, 2010 5:42pm

Hello Did you find any solution ? I need to backup all data from all partitions on XP Computer but On the Windows7 I need to restore all files exept some extension like .avi .mp3 and I need to reroute folder. Rerouting Work great but usmt always restore all file with excluded extensions ....
February 19th, 2012 6:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics