当执行 MDT2010 的刷新、替换、Sysprep 和 捕获任务时,可能会出现如下的错误警告,这是因为 MDT 不允许同一个用户使用多个用户名连接到服务器或共享资源。

  

无命名

  

        在 MDT 官方 Blog 看到了解决办法需要修改 ZTIUtility.vbs,找到下面的字段范围:

  

Case Else
    
' Case &h800704C3 ' Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed.
    
' Case &h8007052E ' Logon failure: unknown user name or bad password.
    
' There was a some kind of fatal error.
    
If ErrDesc <> "" then
    
             MapNetworkDriveEx = ErrDesc
    
Else
    
             MapNetworkDriveEx = "Unable to map UNC Path " & sShare & " :" & "( 0x" & hex(HasError) & " ) "
    
End if
    
oLogging.CreateEntry MapNetworkDriveEx & "", iLogType
    
Exit function
    
End select

  

        然后使用下面的字段进行替换:

  

Case Else
    
Err.Clear
    
On Error Resume Next
    
oNetwork.MapNetworkDrive  chr(sDrive)&":", sShare, False
    
HasError = err.number
    
ErrDesc = err.Description
    
On Error Goto 0
    
If Err.Number <> 0 Then
    
' There was a some kind of fatal error.
    
             If ErrDesc <> "" then
    
                                        MapNetworkDriveEx = ErrDesc
    
             Else
    
                                        MapNetworkDriveEx = "Unable to map UNC Path " & sShare & " :" & "( 0x" & hex(HasError) & " ) "
    
             End if
    
             oLogging.CreateEntry MapNetworkDriveEx & "", iLogType
    
                           Exit function
    
Else
    
      MapNetworkDriveEx = chr(sDrive)&":"
    
      Exit Function
    
End If
                   
End select

  

        此外提供一篇官方的 KB 供大家参考:http://support.microsoft.com/kb/977566/zh-cn,本博也提供一个修改好的 ZTIUtility.vbs 供大家替换。

Tags: ,
Windows Deployment | 评论(0) | 引用(0) | 阅读(13941)
发表评论
昵称 [注册]
密码 游客无需密码
网址
电邮
打开HTML 打开UBB 打开表情 隐藏 记住我