Article ID: 977566 - View products that this article applies to.
Consider the following scenario. You run the Refresh, Replace, Sysprep and Capture, and Custom task sequences with Microsoft Deployment Toolkit 2010 (MDT 2010). In this scenario, you run these sequences, and you receive the following error message after you complete the wizard:
A connection to the distribution share could not be made.
Additionally, the following error message is logged in the MDT log files:
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed.
This issue occurs most frequently when you are logged on to the client computer as one user, and when you enter different credentials into the deployment wizard or into the Customsettings.ini configuration file.
Additionally, when you perform a User State Migration by using the variables UDDIR and UDSHARE, the deployment may fail if the directory that is specified in UDDIR does not exist.
To fix the problem, you should edit the Ztiutility.vbs file in the deployment share under the scripts folder and also edit the Ztiutiliy.vbs in the Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Scripts folder. To do this, open the file in Notepad, and then copy the following code:
Use the code that you copied to replace following code that is in the MapNetworkDriveEX function:
To fix the problem with the User State Migration, edit the Ztiuserstate.wsf file in the deployment share under the scripts folder. Additionally, edit the Ztiuserstate.wsf file in the Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Scripts folder. Open the file in Notepad and replace the following code in the Main function:
Find the following code:
Replace the code that you found with the following code: