Share via

XML for backup profiles data in Task sequence - SCCM

Régis F. Schmidt 21 Reputation points
2021-07-08T21:15:07.913+00:00

Hey guys.

Someone who uses task sequence - TS in SCCM that captures files from the desktop of all users?

it is an edited xml, which saves to a network drive. I ran a test with one I created, but I was unsuccessful.

Does anyone have a model that does this? you can share?

My TS will deploy OS and first I want to backup this data. Because the full profile doesn't help me.

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments

1 answer

Sort by: Most helpful
  1. Colin Ford 1,036 Reputation points
    2021-07-08T22:12:25.883+00:00

    I assume you are using USMT. Add this to the top of the XML after the <migration> tag

      <library prefix="MigSysHelper">MigSys.dll</library>
    

    Then here is a rule that will capture the whole desktop folder

      <component type="Documents" context="User">
        <displayName>Desktop Backup and Restore</displayName>
        <role role="Data">
    
          <detects>
            <!-- Only process if Desktop exists -->
            <detect>
              <condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_DESKTOP%")</condition>
            </detect>        
          </detects>     
    
          <rules>
    
            <!-- Anything already on destination at restore time does not get overwritten -->
            <merge script="MigXmlHelper.DestinationPriority()">
              <objectSet>
                <pattern type="File">%CSIDL_DESKTOP%\* [*]</pattern>
              </objectSet>
            </merge>
    
            <!-- Backup and restore entire folder contents (except exclusions) -->
            <include>
              <objectSet>
                <pattern type="File">%CSIDL_DESKTOP%\* [*]</pattern>
              </objectSet>
            </include>
    
            <!-- Excludes -->
            <exclude>
              <objectSet>
                <pattern type="File">%CSIDL_DESKTOP%\* [desktop.ini]</pattern>
              </objectSet>
            </exclude>
    
          </rules>
        </role>
      </component>
    

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.