Jump to content


Question

Hello Gents!

 

I am hoping someone can help me out with USMT. I am attempting to edit my MigUser.xml file and have been running into issues.

 

I am migrating Windows XP to Windows 7. My goal is:

 

I want to migrate all files on the D: drive (windows xp system) and relocate the files to C:\test directory (windows 7 system).

 

now the C:\test directory doesnt exsist on the newly imaged Widnows 7 system so USMT will need to create the file during the migration. From what i can tell ScanSTATE and LOADSTATE completes with no errors but the "c:\test" directory has not been created. i have attached the second of the loadstate.log that displays D: drive info.

 

What am i doing wrong here?

 

All help is appricated.

 

Thanks!

 

 

 

Here is my code. Does this look corrrect? Can someone provide me with a template to try?

 

<component type="Documents" context="User">
<displayName>D: drive file migration to C: folder</displayName>
<role role="Data">
<rules>
<!-- Migrates data on D: drive to C: drive folder -->
<include>
<objectSet>
<pattern type="File">D:\* [*]</pattern>
</objectSet>
</include>
<!-- This migrates all files from D: to C: drive -->
<locationModify script="MigXmlHelper.RelativeMove('D:\*','C:\test')">
<objectSet>
<pattern type="File">D:\* [*]</pattern>
</objectSet>
</locationModify>
</rules>
</role>
</component>

 

 

 

 

 

post-22978-0-71437900-1386872471_thumb.png

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I know this may be too late but try this file:

<?xml version="1.0" encoding="UTF-8"?>
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/migdocs">
	<component type="Documents" context="UserAndSystem">
		<displayName>MigDocUser</displayName>
		<role role="Data">
			<rules context="User">
				<include>
					<objectSet>
						<pattern type="File">D:\ [*]</pattern>
					</objectSet>
				</include>
				<locationModify script="MigXmlHelper.RelativeMove('D:\', 'C:\test')">
					<objectSet>
						<pattern type="File">D:\ [*]</pattern>
					</objectSet>
				</locationModify>
			</rules>
		</role>
	</component>
</migration>

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.