USMT is one of the Tool from ADK (Windows Assessment and Deployment Kit)
User State Migration Tool (USMT) is a tool that can be used to migrate user state, data and settings as part of a image build or outside of image. It will process to transfer mapped drives, favorites, and other settings listed below to a separate computer in hopes that it would help with machine refreshes and replacements.
With this USMT tool we are able to copy and restore the following:
Limitation of USMT ,Which it wont migrate following things :---
Files tagged with both the hidden and system attributes.
Files and folders on removable drives,
Data from the %WINDIR%, %PROGRAMFILES%, %PROGRAMDATA% folders.
ACLS for files in folders outside the user profile.
Local attached printers won't migrate
How USMT will work :
USMT will work based on XML Files. USMT Package will have XML Files. Like MigApp.XML, MigUser.XML , MigDocs.XML , Config.xml etc. Each and every XML file has specific components to migrate. If you want to read the XML file user the XML Editor for easy to understand.
I haven't tried but you can also use the USMT GUI editor check out this .
So if you want to customize the XML file always better to create new XML file rather than editing the default XML file
In my example I'm attaching my XML file.
My requirement is user profile only requires to restore .below are the points in detailed
It should not restore any documents under C:\Drive (or any other folders under C drive).
User desktop documents and user profile settings,shortcuts,Pin items,desktop wallpaper , favorites , My pictures,my documents,etc
Also under C:\temp\Printer\any files it should restore
Download sampleXML files it has my sample custom files Custom2.xml and Migration.xml you needs to call at Capture User Files and Settings in Task sequence and Restore User State
At the time of running the task sequence it create a Folder "C:\_SMSTaskSequence" and download the USMT Package inside it and also it will create the folder "SMSTSLog"under C:\Windows\CCM\Logs\SMSTSLog
SMSTSLog folder contains the log at the time of running the task sequence .once task sequence completes it will move the logs to under CCM folder C:\Windows\CCM\Logs
For capturing the user data below logs will help you
SMSTS.log : General Task sequence execution info
scanstate.log - scans all user profiles and what files its scanned according to the XML defined