<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The D-Spot (The Deployment Spot) &#187; ZTIUtility.vbs</title>
	<atom:link href="http://www.the-d-spot.org/wordpress/tag/ztiutility-vbs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.the-d-spot.org/wordpress</link>
	<description>Tickle your Deployment needs.</description>
	<lastBuildDate>Sat, 28 Jan 2012 15:43:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>MDT 2010 Error: Unable to connect to DeploymentShare</title>
		<link>http://www.the-d-spot.org/wordpress/2009/11/26/mdt-2010-error-unable-to-connect-to-deploymentshare/</link>
		<comments>http://www.the-d-spot.org/wordpress/2009/11/26/mdt-2010-error-unable-to-connect-to-deploymentshare/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 11:47:35 +0000</pubDate>
		<dc:creator>Ben De Vriese</dc:creator>
				<category><![CDATA[MDT 2010]]></category>
		<category><![CDATA[LTI]]></category>
		<category><![CDATA[ZTIUtility.vbs]]></category>

		<guid isPermaLink="false">http://www.the-d-spot.org/wordpress/2009/11/26/mdt-2010-error-unable-to-connect-to-deploymentshare/</guid>
		<description><![CDATA[Suddenly my deployment environment had issues connecting to the deployment share while performing a MDT 2010 LTI Refresh scenario. Log files BDD.log and LiteTouch.log says this: Unable to connect to DeploymentShare Connection OK Possible cause: invalid credentials A connection to the deployment share DeploymentShare could not be made The deployment will not proceed. Error: I [...]]]></description>
			<content:encoded><![CDATA[<p>Suddenly my deployment environment had issues connecting to the deployment share while performing a MDT 2010 LTI Refresh scenario.</p>
<p>Log files BDD.log and LiteTouch.log says this: <em>Unable to connect to DeploymentShare Connection OK Possible cause: invalid credentials A connection to the deployment share DeploymentShare could not be made The deployment will not proceed.</em></p>
<p>Error:</p>
<p><a href="http://www.the-d-spot.org/wordpress/wp-content/uploads/errDeploymentShare.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="errDeploymentShare" src="http://www.the-d-spot.org/wordpress/wp-content/uploads/errDeploymentShare_thumb.png" border="0" alt="errDeploymentShare" width="244" height="63" /></a></p>
<p>I found some solutions on the web, but only the last one did the trick for me.</p>
<h2>Possible solution: Change ZTIUtility.vbs</h2>
<p>Microsoft <a title="Fix for ‘Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed” problem with MDT 2010" href="http://blogs.technet.com/msdeployment/archive/2009/09/18/fix-for-multiple-connections-to-a-server-or-shared-resource-by-the-same-user-using-more-than-one-user-name-are-not-allowed-problem-with-mdt-2010.aspx" target="_blank">posted</a> a solution for the ‘Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed” problem with MDT 2010. By changing the script ZTIUtility.vbs.</p>
<p>Replace this code:</p>
<pre class="csharpcode">Case Else
<span class="str">' Case &amp;h800704C3 '</span> Multiple connections to a server or shared resource by the same user, <span class="kwrd">using</span> more than one user name, are not allowed.
<span class="str">' Case &amp;h8007052E '</span> Logon failure: unknown user name or bad password.
' There was a some kind of fatal error.
If ErrDesc &lt;&gt; <span class="str">""</span> then
             MapNetworkDriveEx = ErrDesc
Else
             MapNetworkDriveEx = <span class="str">"Unable to map UNC Path "</span> &amp; sShare &amp; <span class="str">" :"</span> &amp; <span class="str">"( 0x"</span> &amp; hex(HasError) &amp; <span class="str">" ) "</span>
End <span class="kwrd">if</span>
oLogging.CreateEntry MapNetworkDriveEx &amp; <span class="str">""</span>, iLogType
Exit function
End select</pre>
<p><!--.csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<p>With this code:</p>
<pre class="csharpcode">Case Else
Err.Clear
On Error Resume Next
oNetwork.MapNetworkDrive  chr(sDrive)&amp;<span class="str">":"</span>, sShare, False
HasError = err.number
ErrDesc = err.Description
On Error Goto 0
If Err.Number &lt;&gt; 0 Then
' There was a some kind of fatal error.
             If ErrDesc &lt;&gt; <span class="str">""</span> then
                                        MapNetworkDriveEx = ErrDesc
             Else
                                        MapNetworkDriveEx = <span class="str">"Unable to map UNC Path "</span> &amp; sShare &amp; <span class="str">" :"</span> &amp; <span class="str">"( 0x"</span> &amp; hex(HasError) &amp; <span class="str">" ) "</span>
             End <span class="kwrd">if</span>
             oLogging.CreateEntry MapNetworkDriveEx &amp; <span class="str">""</span>, iLogType
                           Exit function
Else
      Exit Function
End If
End select</pre>
<p>However, this didn’t solved my issue at all.  I tried some other possible fixes found on the wild wild web; like using the pushd-command, using the IP address and FQDN name, and disconnecting all network connections (with <em>net use * /d</em>) before the actual installation begins. But none of this actually solved my issue.</p>
<p>The solution was map a network drive to the deployment share, with the same credentials as these used in bootstrap.ini and launching Litetouch.vbs from there. I found the solution on the <a title="Minasi forum" href="http://www.minasi.com/forum/post.asp?method=TopicQuote&amp;TOPIC_ID=32655&amp;FORUM_ID=43" target="_blank">Minasi forum</a> (post by Johan Arwidmark).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.the-d-spot.org/wordpress/2009/11/26/mdt-2010-error-unable-to-connect-to-deploymentshare/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

