L?I: B?n nh?n ?c m?t thng bo l?i "ActiveX thnh ph?n khng th? t?o ?i t?ng" khi b?n s? d?ng Windows Script Host ? th?c thi k?ch b?n t? xa

D?ch tiu ? D?ch tiu ?
ID c?a bi: 311269
Bung t?t c? | Thu g?n t?t c?

? Trang ny

TRI?U CH?NG

Khi b?n c? g?ng th?c hi?n m?t k?ch b?n t? xa b?ng cch s? d?ng Windows Script Host (WSH) 5,6 trn m?t my tnh d?a trn Windows XP, b?n c th? nh?n ?c thng bo l?i sau:
L?i: ActiveX thnh ph?n khng th? t?o ?i t?ng
M?: 800A01AD
Ngu?n: Microsoft VBScript th?i gian ch?y l?i

NGUYN NHN

Hnh vi ny c th? x?y ra n?u cc thi?t l?p cho WSH k?ch b?n t? xa ?c th?c hi?n khng ng trn h? th?ng d?a trn Windows XP.

GI?I PHP

? gi?i quy?t v?n ? ny, ng k? cc WScript ?i t?ng b?ng cch ch?y cc WScript - regserver l?nh t? m?t l?nh nh?c ho?c t? cc Ch?y l?nh trn cc B?t ?u tr?nh n.

T?NH TR?NG

Microsoft ? xc nh?n r?ng y l m?t l?i trong cc s?n ph?m c?a Microsoft ?c li?t k trong ph?n "p d?ng cho".

THNG TIN THM

Cac bc tai tao s c

  1. Nh?p vo B?t ?u, i?m ?n Chng tr?nh, i?m ?n Ph? ki?n, sau b?m Notepad.
  2. Copy o?n m? sau, v sau dn n vo Notepad:
    <package>
    <job>
    <script language="VBScript">
    set oController = CreateObject("WSHController")
    set oProcess = oController.CreateScript(<Path To Remote Script>, <Server>)
    WScript.ConnectObject oProcess, "remote_"
    oProcess.Execute
    While oProcess.Status <> 2
       WScript.Sleep 100
    WEnd
    WScript.Echo "Done"
    
    Sub remote_Error
    	Dim theError
    	Set theError = oProcess.Error
    	WScript.Echo "Error - Line: " & theError.Line & ", Char: " & theError.Character & vbCrLf & "Description: " & theError.Description
        	WScript.Quit -1
    End Sub
    
    </script>
    </job>
    </package>
    					
  3. Lu ti li?u v?i tn t?p tin RemoteTest.wsf.
  4. Trn cc Tp tr?nh n, nh?p vo M?i ? t?o m?t t?p tin m?i.
  5. Copy o?n m? sau, v sau dn n vo ti li?u Notepad m?i:
    <package>
    <job>
    <script language="VBScript">
    set fso = CreateObject("Scripting.FileSystemObject")
    set fout = fso.CreateTextFile("c:\RemoteTest.txt", true)
    fout.WriteLine Now
    fout.Close
    </script>
    </job>
    </package>
    					
  6. Lu ti li?u v?i tn t?p tin RemoteFile.wsf. Khi b?n ch?y cc t?p tin RemoteTest.wsf, my tnh k?t n?i ?n my ch? t? xa v ch?y RemoteFile.wsf. Lu ? ? k?t n?i t?i h? ph?c v? t? xa, b?n ph?i cung c?p c? hai ?ng d?n ?n t?p tin v thng tin my ch?.

Thu?c tnh

ID c?a bi: 311269 - L?n xem xt sau cng: 23 Thang Chin 2011 - Xem xt l?i: 3.0
T? kha:
kbdswmanage2003swept kbbug kberrmsg kbnofix kbmt KB311269 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:311269

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com