Skip to content

USMT 4 custom xml migrate AutoCAD

Featured Replies

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.

  • Author

Problem solved: duplicate urlid (DOH!)

 

Changed the urlid and successfully migrated my Autodesk folders (but not the contents) to the appdata\local

 

One problem down and a new one to sort out.

  • Author

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 [*]

  • Author

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>

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.