How to / Nasıl yaparım:

 

How to install a State Migration Point (SMP)

To install your State Migration Point do following

1.       In the Configuration Manager console, click Administration.

2.       In the Administration workspace, expand Site Operations and then click Servers and Site System Roles.

3.       Select your Server of interest, right click it and select "Add Site System Roles" from the context menu.

4.       At the System role Selection page select State Migration Pointimage

5.       You need to select destination folder where user states can be stored.
image

Log files to monitor the installation progress: SMSSMPSetup.log and smpMSI.log. After a successful installation, you will find information about component state in smpmgr.log file.

 
How to create a User State Migration Tool Package

Use the following procedures to create your User State Migration Tool (USMT) Package. Per default, User State Migration Tool will be installed during System Center Configuration Manager 2012 Setup and is Part of Windows Automated Installation Kit (WAIK). Therefore, it can be found in "C:\Program Files\Windows AIK\Tools\USMT"

Note: USMT has for each processor architecture a separate subfolder

 

 

To create your package

1.       In the Configuration Manager console, click Software Library.

2.       In the Software Library workspace, expand Overview, then click Application Management and select Packages.

3.       In the Packages node, select Create Package
image

4.       Name your Package and select "C:\Program Files\Windows AIK\Tools\USMT" as content source.
image

 Important:

Do not select a subfolder of "C:\Program Files\Windows AIK\Tools\USMT" because the built in step "Capture User State" which executes the scanstate.exe command expects to find the exe file in the folder related to the operating systems process architecture.

 

5.       We do not need to create program for this package as System Center Configuration Manager 2012 utilizes built in commands during a Task Sequence.

 image
6.       Do not forget to distribute the content to your Distribution Points.

  
How to use User State Migration Tool with a State Migration Point

Add required steps to an existing Task Sequence to do the capture

1.       In the Configuration Manager console, click Software Library.

2.       In the Software Library workspace, expand Overview and then click Operating Systems.

3.       In the Task Sequences node, select the task sequence and then click Edit.

4.       Now we have two possible options to capture user states:

a.       Capture User States in full Operating System or

b.      do this in Windows PE Phase

For both options we need these three steps (as a best practice ensure you use a group to keep them related together)

Request State Store 
image
Capture User State

image

If you want to capture user states in Windows PE you need to tick the checkbox "Capture in off- line mode (Windows PE only)".

Release State Store 
image
This is how it should look like:

image


 Note:

Depending on your decision how to capture user states, ensure you place this group in Windows PE section or in full Operating System section.

 

 Tip:

You might have noticed another new option "Capture by using Volume Copy Shadow Service (VSS)". This option enables the volume shadow-copy service to migrate files that are locked or in use.

 

 

Add required steps to an existing Task Sequence to do the restore

1.       In the Configuration Manager console, click Software Library.

2.       In the Software Library workspace, expand Overview and then click Operating Systems.

3.       In the Task Sequences node, select the task sequence and then click Edit.

4.       We need these three steps to our task sequence somewhere after the Setup Windows and Configuration Manager step  (as a best practice ensure you use a group to keep them related together)

Request State Store
image

Ensure "Request state from another computer" is selected

Restore User State 
image
Release State Store 
image
This is how it should look like:
image

 
How to view Recovery Key information and restore user state

1.       In the Configuration Manager console, click Assets and Compliance.

2.       In the Assets and Compliance workspace, expand Overview and then click User State Migration.

3.       In the User State Migration node, select the System resource of interest and click View Recovery Information.
image

4.       We can see our recovery key and the store location where the data has been captured too.
image

5.       Now we have three possible options to restore this user states

a.       Use a custom task sequence with only these three steps
image

b.      Double click the usmt.mig file located on your User state location and type in the Recovery key.imageimage

c.       Run loadstate.exe with this parameters:

loadstate.exe "\\<servername>\<SMPShareName>\<StateStoreLocation>"
/decrypt /key:<RecoveryKey> /c /all /v:5 /l:"<LogPath>\loadstate.log"
/progress:"<LogPath>\loadstateprogress.log" /i:"miguser.xml" /i:"migapp.xml"

Sample: 
image

How to use User State Migration Tool to store data locally

Create Task Sequence using the "Create task sequence" wizard

1.       In the Configuration Manager console, click Software Library.

2.       In the Software Library workspace, expand Overview and then click Operating Systems.

3.       In the Task Sequences node, select Create Task Sequence.

4.       Choose Install and existing image package
image

5.       Name your task sequence, select a Boot Image and click Next

6.       Select your image of choice and ensure that Partition and format the target computer before installing the operating system is not selected! 
image

 Warning:

If Partition and format the target computer before installing the operating system is selected it will not work!!!

 

7.       Continue the wizard and fill in your information's until you reached the Configure State Migration page.

8.       Select Save user settings locally

image

9.       Finish the wizard and edit your new task sequence

10.   You might want to use hard-links to do the migration. Therefore you need just to tick the checkbox Capture locally by using links instead of copying files located in the Properties page of your Capture User Files and Settings step. 
image

 

 

 

Source: http://blogs.msdn.com/b/scstr/

Source: http://www.mycloud-tr.com/

İsmail Şen