You are currently offline, waiting for your internet to reconnect

Network drives and network printers are not migrated when you use Microsoft Deployment Toolkit 2010 with the User State Migration Tool (USMT) 4.0

SYMPTOMS
You back up the user state on a client computer by using Microsoft Deployment Toolkit 2010 together with User State Migration Tool (USMT) 4.0 that is included with Windows Automated Installation Kit (AIK) for Windows 7. However, items such as mapped network drives and network printers are not migrated from the source computer.
CAUSE
This issue occurs because the Ztiuserstate.wsf script that is in Microsoft Deployment Toolkit 2010 uses an incorrect working directory by default.
RESOLUTION
To resolve this issue, follow these steps:
  • Locate the Ztiuserstate.wsf file that is located in the scripts folder that is located on the deployment share. Open this file for editing.
  • Locate the Ztiuserstate.wsf file that is located in the Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Scripts folder that is located on the client computer. Open this file for editing.
  • Perform the following changes to both of the files that you have opened for editing:
    1. Find the following two lines of code that are located at or near line 620:
      sCmd = "cmd /c """"" & sUSMTPath & "\scanstate.exe"" " & sScanStateArgs & " > nul 2>&1"""iRetVal = oUtility.RunWithHeartbeat(sCmd)
    2. Add the following code between those two lines of code:
      oShell.CurrentDirectory = sUSMTPath
      After you add this line of code, the resultant three lines of code should be as follows:
      sCmd = "cmd /c """"" & sUSMTPath & "\scanstate.exe"" " & sScanStateArgs & " > nul 2>&1"""oShell.CurrentDirectory = sUSMTPathiRetVal = oUtility.RunWithHeartbeat(sCmd)
    3. Find the following two lines of code that are located at or near line 843:
      sCmd = "cmd /c """"" & sUSMTPath & "\loadstate.exe"" " & sLoadStateArgs & " > nul 2>&1"""iRetVal = oUtility.RunWithHeartbeat(sCmd)
    4. Add the following code between those two lines of code:
      oShell.CurrentDirectory = sUSMTPath
      After you add this line of code, the resultant three lines of code should be as follows:
      sCmd = "cmd /c """"" & sUSMTPath & "\loadstate.exe"" " & sLoadStateArgs & " > nul 2>&1"""oShell.CurrentDirectory = sUSMTPathiRetVal = oUtility.RunWithHeartbeat(sCmd)
    5. Save and close the file.
Properties

Article ID: 977565 - Last Review: 01/15/2010 06:59:33 - Revision: 1.0

Microsoft Solution Accelerator for Business Desktop Deployment

  • kbsurveynew kbexpertiseadvanced kbtshoot KB977565
Feedback
nerror="var m=document.createElement('meta');m.name='ms.dqp0';m.content='true';document.getElementsByTagName('head')[0].appendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?">