User State Migration Relocation Pattern

I am using USMT 4.0 to capture data from a Windows XP SP3 system with an additional D: (DATA) drive. I can accomplish this using the generatedrivepatterns option or specifying a file pattern of "D:\* [*]". In my local, uncompressed store I can
see that I have this structure;
C:\StateStore\USMT\File\C$\
  \Demo Data
  \Documents and Settings\
  \Documents and Settings\UserA
C:\StateS\tore\USMT\File\D$
  \Demo Data
  \More Demo Data
I am then using USMT 6.3 (8.1 ADK) to restore this data to a single partition layout Windows 8 System, however I am absolutely unable, despite several hours of experimenting with mig files, to get the content captured from D:\ into a subfolder on C:\. 
I would like to achieve this;
C:\RestoredData\C$\
C:\RestoredData\D$\
I can successfully relocate the data from C: where I need it to be, however the data from D: just ends up on the root of the C: drive.  I am even simplifying the task by using USMT with just a single custom MigData.xml which only concerns
itself with the capture and relocation of data from D:, as below;
<?xml version="1.0" encoding="UTF-8"?>
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/migdata">
<component type="Documents" context="System">
<displayName>More Data</displayName>
<role role="Data">
<rules context="System">
<include>
<objectSet>
<pattern type="File">D:\* [*]</pattern>
</objectSet>
</include>
<locationModify script="MigXmlHelper.RelativeMove('D:\','C:\RestoredData')">
<objectSet>
<pattern type="File">D:\* [*]</pattern>
</objectSet>
</locationModify>
</rules>
</role>
</component>
</migration>
This should be so simple, however this just does not seem to work and in the loadstate.log I see an entry;
Relocation pattern skipped because enumeration root is not present: D:\* [*]
Well, yes, of course D: doesn't exist and THAT is why I want USMT to relocate the data!
Am I expecting too much or attempting the impossible??
My Personal Blog: http://madluka.wordpress.com

Hi,
How about creating D: with a little space, then relocate the data to C:? I guess it need D: exists before relocate the data.
Best Regards,
Joyce Li
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • Dynamic computers collection based on User State Migration associations

    At our company, we have a group of computers with the follwoing situation:
    User works on machine with WindowsXP, there is already prepared new machine, with Windows 7 installed, and delivered to user. I have prepared 2 task sequences - "State Capture" and "State Restore", both deployed to separate device collections.
    Now, what I do is create old/new computer association in the User State Migration tab, add old computer to Capture collection, let the TS complete, add new computer to Restore collection, and let the TS complete. After all these steps user can begin to work
    on the new machine with his/her profile and data migrated.
    But I would like to speed things a little bit, and allow my
    colleagues to perform such "migration" by simply adding computers association. To achieve that, I need to create a query, that would assign computers to collections, based on the existing associations in the User State Migration tab. The problem is,
    I fail to find appropriate rule in query wizard. Is it possible at all?
    I need computer to be added to Capture collection upon detection of it being source computer in the USM tab, and removed from collection upon finished TS, with the target computer added to Restore collection at the same moment and removed from the collection
    upon finished restore TS.
    I would greatly appreciate any help or pointing into right direction.

    Hi,
    There is a blog about removing computer from collection after SCCM task sequence. But it is for SCCM 2007. You could have a look on this blog to see if the script can be edited to meet your requirements.
    Remove computer association from collection
    after SCCM task sequence
    Note: Microsoft provides third-party contact information to help you find technical support. This
    contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • User State Migration using SMP with config manager 2012 R2

    Hi , 
    I have SMP at primary site and need to migrate XP and 7 machines using this SMP (using USMT), 
    what are the steps do i need to define in TS so that usmt can use State migration point for user setting\data backup?
    Another challenge i see it with XP since we are deciding to take 2 phase approach, that means we will backup data using 1 TS (3 step TS) and then restore data as part of another TS that will install windows 8.1 also with user state restore. 
    Any pointers if we need to define anything special in TS (migration store etc.) or since its SMP, TS should able to take care of finding it automatically and backup\restore user state? 
    We have MDT based TS, just wondering if we need to define anything inside CS.ini file related to SMP? 
    Any pointers will be appreciated. Thanks
    Regards,

    Hi,
    Please refer to the link below:
    How to migrate user data from Windows XP to Windows 8.1 with System Center 2012 R2 Configuration Manager
    http://blogs.technet.com/b/configmgrteam/archive/2013/09/12/how-to-migrate-user-data-from-win-xp-to-win-8-1-with-system-center-2012-r2-configmgr.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • MDT 2012 - Failure 9701: Unable to find any version of USMT, unable to perform user state migration. Failed to run the action Restore User State. DNS Record does not exist. (Error: 000025E5; Source: Windows)

    I am having trouble trying to capture a new Windows 8 image with WDT 2012.
    My Setup - 
    Server 2012
    WDS
    MDT 2012
    Windows 8 ADK
    Hyper-V
    I have created a new task and I can get the image to successfully deploy the image to a VM but it seems to fail at the Restore User State task.
    Once the install Applications task has finished I added a Suspend task so I could customize the image a little. Upon resuming the task sequence is where the above failure message appears. I can see it gets to the next step (which is 'Restore User State')
    but that seems to be where is crashes.
    Does anyone have any advice on what I might be doing wrong or what I can do to resolve the above issue?

    WAIK being installed was probably your issue so I wouldn't bother disabling the restore task. It is used to migrate user data, docs, and settings on refreshes, not new builds. It doesn't affect CopyProfile, just note that data will be migrated on refreshes so
    some aspects may change, ie wallpaper, shortcuts, etc but what gets migrated with USMT can also be configured.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • User state migration "Windows XP to Windows 7"

    Hello , 
    I want to migrate the XP computers to Windows 7 without losing data.
    I tried using the migration user state of SCCM 2012 SP 1   but  the sequence task failed in the step of "applying operating system" with the error "0x80070002" !!!!!!!
    Thank you.
    prince

    Hi,
    Here is a video for your reference.
    Migrating from Windows XP to Windows 7
    http://technet.microsoft.com/en-us/windows/migrating-from-windows-xp-to-windows-7.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • User State Migration Tool - unknown folders from %userprofile%

    Hey,
    I try to configure USMT currently.
    It works really fine. Unfortunately only for specific folders & files.
    I got it working to define USMT to backup files just for "My Documents", "My Pictures" etc. in MigUser but I have problem that users created custom folders like e.g. %USERPROFILE"\MyCustomFolder. Unfortunately I do not
    know name of these folders.
    How can I define USMT to migrate files/folders in %USERPROFILE% I do not know name from, but not migrate folder e.g. "My Music" and %AppData% etc.?
    Thank you for help.
    Kind Regards
    mk-maddin

    Hey Torsten,
    Thank you for help - I think we are talking about different topics :)
    I know I can specifiy another XML in tasksequence.
    My problem is the XML-file itself.
    In MigUser are entries like:
    <!-- This component migrates My Documents files -->
    <component type="Documents" context="User">
    <displayName _locID="miguser.mydocs">My Documents</displayName>
    <paths>
    <path type="File">%CSIDL_PERSONAL%</path>
    </paths>
    <role role="Data">
    <detects>
    <detect>
    <condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_PERSONAL%")</condition>
    </detect>
    </detects>
    <rules>
    <exclude>
    <objectSet>
    <pattern type="File">%CSIDL_MYMUSIC%\* [*]</pattern>
    <pattern type="File">%CSIDL_MYPICTURES%\* [*]</pattern>
    <pattern type="File">%CSIDL_MYVIDEO%\* [*]</pattern>
    </objectSet>
    </exclude>
    <include filter='MigXmlHelper.IgnoreIrrelevantLinks()'>
    <objectSet>
    <pattern type="File">%CSIDL_PERSONAL%\* [*]</pattern>
    </objectSet>
    </include>
    <merge script="MigXmlHelper.DestinationPriority()">
    <objectSet>
    <pattern type="File">%CSIDL_PERSONAL% [desktop.ini]</pattern>
    </objectSet>
    </merge>
    </rules>
    </role>
    </component>
    All these entries are using %CSIDL_XXX% like defined in following Microsoft article:
    http://technet.microsoft.com/en-us/library/ff383238(v=WS.10).aspx#BKMK_MigUser
    But there is no value for %USERPROFILE% to be able to specifiy %USERPROFILE%\*.
    Thank you for help.

  • SCCM 2012 R2 User State Migration Win XP to Win 8.1 does not migrate Domain User Files

    Hi @ all
    i'm trying migrate Win XP Sp3 to Win 8.1 using SCCM 2012 R2. So i followed the how to from the SCCM Team.
    https://blogs.technet.com/b/configmgrteam/archive/2013/09/12/how-to-migrate-user-data-from-win-xp-to-win-8-1-with-system-center-2012-r2-configmgr.aspx
    All things worked fine, but the user files from my test Domain user are not restored.
    Here some extracts of the loadstate log.
    2014-01-07 15:49:16, Info                  [0x000000] User SCCM\test.user maps to S-1-5-21-2486663232-1734351201-1738771205-1113
    2014-01-07 15:49:16, Info                  [0x000000] User TEST-COMPUTER\Administrator maps to TEST-COMPUTER\Administrator
    2014-01-07 15:49:16, Error                 [0x000000] The account TEST-COMPUTER\User is chosen for migration, but the target does not have account TEST-COMPUTER\User. See documentation
    on /lac, /lae, /ui, /ue and /uel options.
    2014-01-07 15:49:16, Info                  [0x000000] Failed.[gle=0x00000006]
    2014-01-07 15:49:16, Info                  [0x000000]   Unable to create a local account because /lac was not specified[gle=0x00000006]
    2014-01-07 15:49:16, Info                  [0x000000] Entering MigCloseCurrentStore method
    2014-01-07 15:49:16, Info                  [0x0801dc] Closing catalog file
    2014-01-07 15:49:16, Info                  [0x0801dd] Deleting catalog file at C:\Windows\Temp\tmpF6E7.tmp\Temp\tmp9F3.tmp
    2014-01-07 15:49:16, Info                  [0x000000] Leaving MigCloseCurrentStore method
    2014-01-07 15:49:16, Info                  [0x000000] USMT Completed at 2014/01/07:15:49:16.078[gle=0x00000057]
    The user sccm\test.user is my test user but, i cannot see any error in relation to that user.
    Has some some an idea?
    Thank you
    Adrian

    Hi,
    I found a similar article for your reference.
    http://blogs.technet.com/b/sudheesn/archive/2009/12/28/in-place-upgrade-from-windows-xp-to-windows-7.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • User State Migration Data Capture Failure MDT 2012 Update 1

    Hello All
    Trying to capture data on a Win7 x64 machine so that I can keep the data and restore once the computer is done re-imaging.  This is an offline MDT deployment on the same computer.  See the error below:
    CNAME loop detected. (Error: 000025EB; Source: Windows) 
    Using MDT 2012 Update 1

    Lots of good information out there.  Even stuff that says it's for MDT 2010 also applies to MDT 2012 Update 1 for the most part.  Here's a few to get you started:
    http://deployment.xtremeconsulting.com/2009/11/20/understanding-usmt-with-mdt-2010/
    http://technet.microsoft.com/en-us/magazine/jj127984.aspx
    http://blogs.technet.com/b/mniehaus/archive/2009/07/01/mdt-2010-new-feature-12-usmt-4-0-hardlink-support.aspx
    http://www.windows-noob.com/forums/index.php?/topic/3758-usmt-mdt/
    http://channel9.msdn.com/Events/MMS/2013/DC-B301 (great video with Johan presenting, focused on USMT 5.0)
    You should create a default Standard Client Task Sequence and look at the State Capture and State Restore groups to see what MDT sets up for you by default that you may have removed from your current Task Sequence.  But the direct answer to your question,
    is that ScanState (part of USMT) is the part that creates a backup.  LoadState is the piece that restores it to a machine.
    David Coulter | http://DCtheGeek.blogspot.com |
    @DCtheGeek

  • How to manually recover user state data saved to a State Migration Point

    Hi,
    In SCCM 2012, how would you recover the User State saved to the State Migration Point manually?
    In SCCM 2007 you could do what was outlined here:
    http://social.technet.microsoft.com/Forums/en-US/configmgrosd/thread/159affd3-1726-4829-a0f4-0c875481fc11
    However this does not work for SCCM 2012 because the User State Recovery key so long that it cannot be used with a loadstate command (Loadstate commands cannot be longer than 256 characters)
    Previously you could also have just opened the User.mig file using Windows Easy Transfer and entered the User State Recovery key stored in SCCM - however in SCCM 2012 this does not work either!
    I really need to recover the contents for a user who got a new computer (old one stolen) and requires data from a previous user state capture on the State Migration Point.

    Hi,
    It seems something changed in SCCM 2012.
    I've got the same problem and after couple hours of research I found MS article that only helped me -
    http://technet.microsoft.com/en-us/library/hh824962.aspx
    In SCCM server I run this command:
    C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\User State Migration Tool\amd64>usmtutils.exe /extract C:\tmp\_MIG\USMT.MIG C:\tmp\_MIG\Extract /decrypt /keyfile:C:\tmp\_MIG\Key.txt
    and received necessary data.

  • USMT 4.0 - Issues with Migrating User States

    I setup a task sequence to capture user state, apply OS, and release user state but I am running into some errors...
    These are the main errors I am getting if you don't want to look at the smsts.log:
     The previous step (either capture or restore user state) has failed, so marking the current action as failed too OSDSMPClient 1/8/2014 3:06:51 PM 5948 (0x173C)
    Failed to run the action: Release User State Storage. Unknown error (Error: 00004005; Source: Unknown) TSManager 1/8/2014 3:06:51 PM 2280 (0x08E8)
     The execution of the group (Capture Files and Settings) has failed and the execution has been aborted. An action failed.Operation aborted (Error: 80004004; Source: Windows) TSManager 1/8/2014 3:06:51 PM 2280 (0x08E8)
    Failed to run the last action: Release User State Storage. Execution of task sequence failed. Unknown error (Error: 00004005; Source: Unknown) TSManager 1/8/2014 3:06:51 PM 2280 (0x08E8)
    Any help would be greatly appreciated.

    Hi,
    Also, I recommend you check the log file loadstate.log on the client.
    It records details about the User State Migration Tool (USMT) and restoring user state data.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Request User State Store Fails with error code 0x00004005

    I am trying to get a machine refresh working in SCCM and am running into a road block with the user state migration. The Task sequence hits Request user state store and then fails. In the logs on the machine it shows it downloads the cert from the SMP but it fails to verify the cert. The thing is that this was working and then stopped for no apparent reason. I have added a second SMP and it has the same issue so its got to be something environmental causing this. I have found no references to the errors I am recieving that relate to the issue so I am stumped. We have a SCCM 2007 site in mixed mode. The error log is:
    The task sequence execution engine failed executing the action (Request User State Storage) in the group (Capture User Files and Settings) with the error code 16389 Action output: ployment\osdsmpclient\smpclient.cpp,1743) Request to SMP 'ATXFREPSMS01.NA.atxglobal.com' failed with error (Code 0x80090006). Trying next SMP. FALSE, HRESULT=80004005 (e:\nts_sms_fre\sms\client\osdeployment\osdsmpclient\smpclient.cpp,1698) pClientRequestToSMP->Execute(migInfoFromMP.saSMPs), HRESULT=80004005 (e:\nts_sms_fre\sms\client\osdeployment\osdsmpclient\smpclient.cpp,2713) ExecuteCaptureRequestToSMP(migInfoFromMP), HRESULT=80004005 (e:\nts_sms_fre\sms\client\osdeployment\osdsmpclient\smpclient.cpp,2755) ExecuteCaptureRequest(), HRESULT=80004005 (e:\nts_sms_fre\sms\client\osdeployment\osdsmpclient\main.cpp,72) OSDSMPClient finished: 0x00004005 Failed to verify certificate signature for 'ATXFREPSMS01.NA.atxglobal.com' (0x80090006) ClientKeyRequestToSMP failed (0x80090006). ClientRequestToSMP:oRequest failed. error = (0x80090006). Failed to find an SMP that can serve request after trying 4 attempts. ExecuteCaptureRequestSMP failed (0x80004005). ExecuteCaptureRequest failed (0x80004005).. The operating system reported error 16389:

    Hi
    I am getting the same issue.
    More info:
    The same task works ok for one client - an xp machine that was upgraded to vista sp1 using sccm but without usmt.
    If I send this machine a task which includes usmt and os deploy it works.
    On 2 other machines ( so far) , the request store fails with the same error  - 0x80090006. (one of them existing vista and the other xp)
    I have tried removing and adding the client from the domain but it did not help.
    Any idea?
    David

  • SCCM 2012 Recover "User State Recovery Key" after Deletion Policy has removed the key

    I have a computer that was upgraded from Windows XP to 7 using SCCM 2012.  The user's info was captured and restored, but found out a month later that some Outlook Archives are corrupt. 
    I had this happen before on a different user, but found out right away and was able to recover the User State Recovery Key and restore the files. 
    I have looked under Assets and Compliance, User State Migration, but the computer is not listed anymore.
    I have done a file restore of the USMT.MIG file from three weeks ago, but can not extract the users files without the User State Recovery Key.
    I have looked through the SQL tables and have only found the StateEncryptDecryptKey in the StateMigration table which will not work. 
    Environment:
    Windows 2008 R2 SP1 SCCM 2012 Server
    Windows 2008 R2 SP1 SQL 2012 Server
    Any help would be appreciated.
    Thanks,
    Wendell

    It worked! Thank you Jason!
    I restored the server's Storage Folder from "State Migration Point" (USMT Folder) from the same date as the SQL database was restored from.  Shut the SCCM server down while doing the SQL restore.  Turned on the Server and was able
    to pull out the User State Recovery Key. 
    Then reverted back by shutting down the SCCM server and restoring SQL database back to previous backup taken before starting.
    Only issue I'm getting now is that SMS_EN_ADSERVICE_MONITOR has a warning
    8400 Enrollment Point AD Service Control failed to read and configure the registry keys necessary for this component.
    With checking everything out to make sure no issues have arised. I looked through the log adctrl.log and found some more errors about Failed to create instance of ADService Managed Component. error = -2147024809
    Any help would be appreciated.
    Thanks,
    Wendell

  • R2 XP to Windows 7 Migrations - User State Data Restore Fails

    The client I am at is trying to migrate about 800 XP clients to Windows 7 before the April deadline.  They have ConfigMgr R2 and are aware of the limitations with ADK 8.1 for Windows XP.  We are following the following ConfigMgr Blog: 
    https://blogs.technet.com/b/configmgrteam/archive/2013/09/12/how-to-migrate-user-data-from-win-xp-to-win-8-1-with-system-center-2012-r2-configmgr.aspx 
    We have created the separate TS to capture the User state on the XP box.  That works find.  We have created the TS to deploy Windows 7 and also restore the users state.  That is where the issues are.  The image deploys fine however the
    User data is never restored.   When we do a 7 to 7 Migration everything works great.
    Below is an example of the loadstatescan.log file from another client but it is exactly what we are seeing here as well:
    2009-11-26 14:00:35, Error               
     [0x000000] The account XXXXXXX\admin is chosen for migration, but the target does not have account XXXXXX\admin. See documentation on /lac, /lae, /ui, /ue and /uel options.
    2009-11-26 14:00:35, Info                  [0x000000] Failed.[gle=0x00000006]
    2009-11-26 14:00:35, Info                  [0x000000]   Unable to create a
    local account because /lac was not specified[gle=0x00000006]
    On both TS we have uncheck the box that say to copy and restore local accounts.  However, as you can see in the error above the loadstate is trying to restore the local Admin account.  Is there a work around?  I have seen other post about
    this but no one has either updated them with their fix or there hasn't been a fix?
    Kristopher Turner | Not the brightest bulb but by far not the dimmest bulb.

    So I am not sure if this is the "technical fix" for my problem. Something I don't think should fix it but at least it fixes it for now. On the task that runs the capture user data the default settings is to capture all user data unless you specify other
    custom settings.  We have been using gather all data. However, in the restore user data step there is actually a check box to allow local accounts to be restored.  Once we check that box our XP to Windows migrations run without an issue. 
    First, why isn't there a check in the user capture to disable local accounts if there is a check box for it in the restore user data? Anyway, that is our fix for now.  It is working but still a little confused.
    Kristopher Turner | Not the brightest bulb but by far not the dimmest bulb.

  • Restricting State Migration Point to allow 10 GB of data as User State backup

    Hi ,
    I am using State migration point to backup user data settings through USMT. I am looking for some option either on SMP side or USMT side to restrict data maximum of 10 GB from the system. SMT\USMT should not allow data backup more than 10GB from any system.
    Any pointers will be appreciated. Thanks. 
    Regards,

    The best you can do is to run scanstate with the estimate parameter to estimate how data it will collect and then branch or abort based on the results.
    I outlined how to collect this information beforehand at
    http://blog.configmgrftw.com/collecting-usmt-estimates-using-configmgr/
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • SCCM 2012 r2 Deploy USMT Don´t Restore User State

    Hi everybody 
    I am migrating my computers from Win Xp to Windows 8.1, 
    with SCCM 2012 R2 with HardLink, my problem is that USMT does not restore the user state on all my computers, it does in some and not in others. the only difenrecia between the teams is the computer model and brand (Hp and Dell).
    I use USMT 5.0 to capture the user state running on Xp and restored with USMT 6.3 for Win 8.1 (Now run the hotfix from Microsoft http://support.microsoft.com/kb/2910552 and it´s work )
    Also try SMP, capture user state ... but not restores either ...
    Anyone have any idea what might be happening 

    Hi,
    This is a related blog
    for your reference.
    Step-by-step guide to a zero-touch,MDT
    hardlink OS migration from XP to Windows 7
    http://osdblog.com/2013/08/08/step-by-step-guide-to-a-zero-touch-hardlink-os-migration-from-xp-to-windows-7/
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for