USMT 4.0 - Want to store a specific folder, but it´s storing the whole drive.
Hi guys, Basically what I´m doing is edit the MigDocs.xml and add the following XML code at the end: ... </component> <component type="Documents" context="System"> <displayName>DocumentosEntel</displayName> <role role="Data"> <rules> <include> <objectSet> <pattern type="File">C:\User Data\* [*]</pattern> </objectSet> </include> </rules> </role> </component> </migration> So, what I´m expecting is just to store (besides user profile, which works perfect) the folder "C:\User Data", but USMT is storing the whole drive C:. Does anyone knows why is this happening? Thanks for any help! JP
November 15th, 2010 9:49pm

It looks like you have it correct per the documentation: http://technet.microsoft.com/en-us/library/dd560766(WS.10).aspx <component type="Documents" context="System"> <displayName>DocumentosEntel</displayName> <role role="Data"> <rules> <include> <objectSet> <pattern type="File"> C:\User Data\* [*]</pattern> </objectSet> </include> </rules> </role> </component> I'm curious, can you post the rest of your XML file, perhaps it is something else catching the entire C drive rather thatn the C:\User Data customization. Sean
Free Windows Admin Tool Kit Click here and download it now
November 16th, 2010 4:20pm

Hi seanka79, Thanks for your response. Actually I took the code from that link :) Here is the XML. (it´s the MigDocs.xml from USMT 4, plus the code I posted first) <?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> <!-- Example: <exclude> <objectSet> <pattern type="File">%CSIDL_COMMON_VIDEO%\* [*]</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> <!-- 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> <!-- 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> <component type="Documents" context="System"> <displayName>DocumentosEntel</displayName> <role role="Data"> <rules> <include> <objectSet> <pattern type="File">C:\User Data\* [*]</pattern> </objectSet> </include> </rules> </role> </component> </migration> Thanks again for your time!, best regards. JP
November 17th, 2010 8:29am

I also noticed that is taking a whole backup of all hard drives... more weird.
Free Windows Admin Tool Kit Click here and download it now
November 22nd, 2010 11:58am

I also noticed that is taking a whole backup of all hard drives... weirder.
November 22nd, 2010 7:58pm

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

Other recent topics Other recent topics