USMT 4.0 - XP to Windows 7 - Rerouting My Documents
Hi, During an XP to Windows 7 migration i would like to re route all data contained in c:\documents and settings\username\My documents into a local folder stored within the users profile c:\users\username\My Local Data. I am currently using a quite standard version of migdocs.xml which is migrating data into the same location once OSD has occurred but have not been able to modify this to reroute data to the local location. I have also attempted to utilise the first sample xml provided here http://technet.microsoft.com/en-us/library/cc749369(WS.10).aspx and have modified the locations to what i believe should work. I am utilising hardlinks, USMT is initiated as part of a SCCM task Sequence but i have also tested running the commands manually without success. <migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test"> <component type="Documents" context="User"> <displayName>Engineering Drafts Documents to Personal Folder</displayName> <role role="Data"> <rules> <!-- Migrate all directories and files present in personal folder folder --> <include> <objectSet> <pattern type="File">%CSIDL_PERSONAL%\* [*]</pattern> </objectSet> </include> <!-- This migrates all files and directories from %CSIDL_PERSONAL% to the users my local data folder.--> <locationModify script="MigXmlHelper.RelativeMove('%CSIDL_PERSONAL%\*',%CSIDL_PERSONAL%\My Local Data'')"> <objectSet> <pattern type="File">%CSIDL_PERSONAL%\* [*]</pattern> </objectSet> </locationModify> </rules> </role> </component> </migration> The above xml does not work at all for me. Can anyone assist? Thanks
August 8th, 2011 10:27pm

Here is a sample which we used to move the DESKTOP data to a different temporary location: <!-- This component migrates Desktop files --> <component type="Documents" context="User"> <displayName _locID="miguser.desktop">Desktop</displayName> <paths> <path type="File">%CSIDL_DESKTOP%</path> </paths> <role role="Settings"> <detects> <detect> <condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_DESKTOP%")</condition> </detect> </detects> <rules> <include filter='MigXmlHelper.IgnoreIrrelevantLinks()'> <objectSet> <pattern type="File">%CSIDL_DESKTOP%\* [*]</pattern> </objectSet> </include> <locationModify script="MigXmlHelper.RelativeMove('%CSIDL_DESKTOP%\', 'C:\Temp\Desktop')"> <objectSet> <pattern type="File">%CSIDL_DESKTOP%\* [*]</pattern> </objectSet> </locationModify> </rules> </role> </component> Just keep in mind that it needs to be specified during capture and restore. My Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude
Free Windows Admin Tool Kit Click here and download it now
August 9th, 2011 2:25am

I see. For anyone else interested, this is what i will be using and it seems to work fine. Thanks again Peter. <migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/rerouteprofile"> <component type="Documents" context="User"> <displayName _locID="miguser.desktop">Desktop</displayName> <paths> <path type="File">%CSIDL_PROFILE%</path> </paths> <role role="Settings"> <detects> <detect> <condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_PROFILE%")</condition> </detect> </detects> <rules> <include filter='MigXmlHelper.IgnoreIrrelevantLinks()'> <objectSet> <pattern type="File">%CSIDL_MYDOCUMENTS%\* [*]</pattern> <pattern type="File">%CSIDL_DESKTOP%\* [*]</pattern> <pattern type="File">%CSIDL_FAVORITES%\* [*]</pattern> <pattern type="File">%CSIDL_RECENT%\* [*]</pattern> </objectSet> </include> <exclude> <objectSet> <pattern type="File">%CSIDL_MYDOCUMENTS%\_gsdata_\* [*]</pattern> <pattern type="File">%CSIDL_LOCAL_APPDATA%\* [*]</pattern> </objectSet> </exclude> <locationModify script="MigXmlHelper.RelativeMove('%CSIDL_PROFILE%\', 'C:\users\%username%\my local data')"> <objectSet> <pattern type="File">%CSIDL_MYDOCUMENTS%\* [*]</pattern> <pattern type="File">%CSIDL_DESKTOP%\* [*]</pattern> <pattern type="File">%CSIDL_FAVORITES%\* [*]</pattern> <pattern type="File">%CSIDL_RECENT%\* [*]</pattern> </objectSet> </locationModify> </rules> </role> </component> </migration>
August 13th, 2011 12:35am

Thanks Peter that really got me on the right track. The file you provided seems to work fine when I execute USMT manually. Im now testing via the task sequence. Just out of interest why is this line set to "settings" rather than "data"? im not sure if it makes a difference....<role role="Settings">
Free Windows Admin Tool Kit Click here and download it now
August 13th, 2011 1:15am

"Role role" is a required component element in a custom XML, but it's only purpose is to categorize the settings. See also: http://technet.microsoft.com/en-us/library/dd560769(WS.10).aspx#roleMy Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude
August 13th, 2011 2:03am

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

Other recent topics Other recent topics