question

RgisFSchmidt-4809 avatar image
0 Votes"
RgisFSchmidt-4809 asked HanyunZhu-MSFT commented

XML for backup profiles data in Task sequence - SCCM

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.

mem-mdt
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ColinFord-6663 avatar image
0 Votes"
ColinFord-6663 answered HanyunZhu-MSFT commented

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>


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yeap.
I am using USMT.
I will do this test in the laboratory, working I will give you the return.
really the desktop is the only folder that matters, for my needs at the moment.

Thanks a lot for the help

0 Votes 0 ·

Hi, just check if there is any update. Have you finished the test? Does the methods that provided by Colin worked?
If it worked, could you share the result of your test? It may help others who have the similar issue.
If you need any further assistance, feel free to let us know.

Have a nice day!

0 Votes 0 ·