Overview:

On the surface it can appear that the options for capturing and restoring user states in SCCM is very limited. However all of the advanced options that can be manually run with scanstate.exe and loadstate.exe can be leveraged in SCCM task sequences. In this example we will set one of the advanced options to only capture users that have logged in in the past 30 Days (/uel:30). There are plenty of additional options including options to support cross domain migrations.
 

Setting Advanced Options for User State Capture:

  1. In the Task Sequence create a variable OSDMigrateAdditionalCaptureOptions
  2. Set the values as desired according to the syntax (http://technet.microsoft.com/en-us/library/cc749015(v=ws.10).aspx )
  3. capture

Setting Advanced Options for User State Restore:

  1. In the task sequence for restoring user states add a task sequence variable for OSDMigrateAdditionalRestoreOptions
  2. Set the values as desired according to the syntax (http://technet.microsoft.com/en-us/library/dd560804(v=ws.10).aspx )
  3. restore