locked
Windows XP to Windows 7 USMT 4 customizations RRS feed

  • Question

  • 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>
    ----------------

    Monday, October 18, 2010 1:01 PM

All replies

  •  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.

     

    Tuesday, October 19, 2010 11:54 AM
  • 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

    Tuesday, October 19, 2010 3:11 PM
  • I can't seem to get this working and could really use some help :-(

     

     

    Wednesday, October 20, 2010 2:42 PM
  • Yes, I know it is an old post, I'm cleaning them up.

    Did you figure this out yet, what was the solution?


    Garth Jones

    Blog: http://www.enhansoft.com/blog Old Blog: http://smsug.ca/blogs/garth_jones/default.aspx

    Twitter: @GarthMJ Book: System Center Configuration Manager Reporting Unleased

    Saturday, August 26, 2017 3:47 PM