Jump to content


  • 0
dylan_s

USMT 4 custom xml migrate AutoCAD

Question

I have a hardlink USMT task sequence running successfully with my OSD from SCCM. We have a couple dozen AutoCAD users and I would like to add a custom XML to migrate their custom settings from C:\documents and settings\username\autodesk\* to C:\user\username\app data\local

 

My custom xml causes the restore task to fail:

 

<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/custom">
<component type="System" context="User">
<displayName _locID="miguser.Autodesk">Autodesk</displayName>
<role role="Settings">
<detects>
<detect>
<condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_APPDATA%\Autodesk")</condition>
</detect>
</detects>
<rules>
<include filter="MigXmlHelper.IgnoreIrrelevantLinks()">
<objectSet>
<pattern type="File">%CSIDL_APPDATA%\Autodesk\* </pattern>
</objectSet>
</include>
<locationModify script="MigXmlHelper.RelativeMove('%CSIDL_APPDATA%','%CSIDL_LOCAL_APPDATA%')">
<objectSet>
<pattern type="File">%CSIDL_APPDATA%\Autodesk\* [*]</pattern>
</objectSet>
</locationModify>
</rules>
</role>
</component>
</migration>

 

Any feedback would be appreciated.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I think this:

 

<include filter="MigXmlHelper.IgnoreIrrelevantLinks()">  
<objectSet>  
<pattern type="File">%CSIDL_APPDATA%\Autodesk\* </pattern>  
</objectSet>  
</include>

 

Should be:

<include filter="MigXmlHelper.IgnoreIrrelevantLinks()">
  	<objectSet>
   	<pattern type="File">%CSIDL_APPDATA%\Autodesk\* [*]</pattern>
  	</objectSet>
 	</include>

....missing [*]

Share this post


Link to post
Share on other sites

  • 0

Just to follow up and post the full file that successfully migrates the folders & files as intended in case anyone is looking to do something similar.

 

<?xml version="1.0" encoding="UTF-8"?>
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/migautodesk">
<component type="System" context="User">
<displayName _locID="miguser.Autodesk">Autodesk</displayName>
 <role role="Settings">
<detects>
<detect>
 	<condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_APPDATA%\Autodesk")</condition>
</detect>
</detects>
<rules>
 	<include filter="MigXmlHelper.IgnoreIrrelevantLinks()">
  	<objectSet>
   	<pattern type="File">%CSIDL_APPDATA%\Autodesk\* [*]</pattern>
  	</objectSet>
 	</include>
<locationModify script="MigXmlHelper.RelativeMove('%CSIDL_APPDATA%','%CSIDL_LOCAL_APPDATA%')">
 	<objectSet>
  	<pattern type="File">%CSIDL_APPDATA%\Autodesk\* [*]</pattern>
 	</objectSet>
</locationModify>
</rules>
  </role>
</component>
</migration>

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.