MDT refresh fails during User State Restore (ZTIUserState.wsf) RRS feed

  • Question

  • Hi,

    My MDT refresh task sequence failed during the User State Restore Pass (ZTIUserState.wsf) when refreshing a 3 year old install of Windows 7 x86 with a new Windows 7 x86 WIM image. I'm using MDT 2012 on Windows 2008 SP2.  I think this occurred because some user folders were deleted manually in C:\Users and not through "User Profiles" in the Advanced System Properties tab.  The user folders are still on the local hard drive in C:\Windows\Temp\StateStore\USMT\File\C$\Users.  My question is, how can I complete the User State Migration?

    When ZTIUserState.wsf ranI get the following error in the CCM\Logs\SMSTSLog\smsts.log:

    Start executing the command line: cscript.exe "%SCRIPTROOT%\ZTIUserState.wsf" /restore    TSManager    5/28/2013 2:41:40 PM    2996 (0x0BB4)
    !--------------------------------------------------------------------------------------------!    TSManager    5/28/2013 2:41:40 PM    2996 (0x0BB4)
    Expand a string:     TSManager    5/28/2013 2:41:40 PM    2996 (0x0BB4)
    Executing command line: cscript.exe "%SCRIPTROOT%\ZTIUserState.wsf" /restore    TSManager    5/28/2013 2:41:40 PM    2996 (0x0BB4)
    Process completed with exit code 71    TSManager    5/28/2013 2:42:07 PM    2996 (0x0BB4)
    !--------------------------------------------------------------------------------------------!    TSManager    5/28/2013 2:42:07 PM    2996 (0x0BB4)
    Failed to run the action: Restore User State.
    No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept. (Error: 00000047; Source: Windows)    TSManager    5/28/2013 2:42:07 PM    2996 (0x0BB4)

    The following error was logged in C:\Windows\Temp\StateStore\USMT\File\C$\MINNIT\SMSOSD\OSDLOGS\ZTIUserState.log

    ------ Performing State Restore ------    ZTIUserState    5/28/2013 2:41:46 PM    0 (0x0000)
    ZTI Beginning user state restore.    ZTIUserState    5/28/2013 2:41:46 PM    0 (0x0000)
    About to run command: cmd /c ""C:\MININT\USMT\X86\loadstate.exe" "C:\StateStore"  /v:5 /c /lac  /i:"C:\MININT\USMT\X86\MigApp.xml" /i:"C:\MININT\USMT\X86\Migdocs.xml" /config:"C:\MININT\USMT\X86\ZTIUserState_Config.xml" /hardlink /nocompress /l:C:\MININT\SMSOSD\OSDLOGS\USMTrestore.log  /progress:C:\MININT\SMSOSD\OSDLOGS\USMTrestore.prg > nul 2>&1"    ZTIUserState    5/28/2013 2:41:46 PM    0 (0x0000)
    Return code from command = 71    ZTIUserState    5/28/2013 2:42:04 PM    0 (0x0000)
    ZTI ERROR - Non-zero return code from Loadstate, RC = 71    ZTIUserState    5/28/2013 2:42:04 PM    0 (0x0000)
    Moving state store directory C:\StateStore to %WINDIR%\StateStore so that it does not get deleted.    ZTIUserState    5/28/2013 2:42:04 PM    0 (0x0000)
    ZTI USMT LOADSTATE reported 0 errors and 0 warnings.    ZTIUserState    5/28/2013 2:42:04 PM    0 (0x0000)
    ZTIUserState COMPLETED.  Return Value = 71    ZTIUserState    5/28/2013 2:42:04 PM    0 (0x0000)

    • Edited by scook2000 Wednesday, May 29, 2013 3:14 PM
    Wednesday, May 29, 2013 3:09 PM

All replies

  • Heres your error:

    No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept. (Error: 00000047; Source: Windows)

    It's unclear to me whether the error is referring to the migrated computer, or a remote location. Windows 7 can support 20 inbound connections ( up from 10 in XP).

    There should be no reason to have 20 inbound connections to your target PC. Is it possible you are running your MDT share on a Widows workstation instead of a server?

    Wednesday, May 29, 2013 4:44 PM
  • MDT is running on Windows Server 2012.  I found an error in the application log on the PC that seems to point to a file system security problem.  The error is below.  I'm a USMT noob - but we are using the default selection of Auto, which I believe means "hard links".  Here's the error:

    Windows cannot copy file \\?\C:\Users\Default\AppData\Local\Microsoft\Office\Groove\System\GrooveCommunicationsServices14.xsslog to location \\?\C:\Users\david.schwartz\AppData\Local\Microsoft\Office\Groove\System\GrooveCommunicationsServices14.xsslog. This error may be caused by network problems or insufficient security rights.

    DETAIL - Access is denied.

    Log Name:  Application

    Source:  User Profile General

    Event ID: 1509

    Level: Warning


    • Edited by scook2000 Wednesday, May 29, 2013 7:22 PM
    Wednesday, May 29, 2013 7:02 PM
  • I'm sorry, I'm not sure what that is about. This is USMT thrwoing this error? Or is it after the user david.schwartz logs in? It looks like a first time login, and the system is trying to copy default user profile settings to the new user profile and failing. But honestly I don't have enough information to guess.
    Thursday, May 30, 2013 7:15 PM
  • Since you appear to have the StateStore location intact, have you tried running the restore step manually to see what happens? (Loadstate.exe. )

    -Nick O.

    Thursday, May 30, 2013 8:38 PM
  • Did you ever get an answer to this question? I had the same problem today, but it looks like not enough information is left in %WINDIR%\StateStore to run loadstate again. Thanks!
    Saturday, July 12, 2014 12:05 AM