Code 800706B5 The Interface is Unknown - Windows 7 - IE 9 - Vbscript

Unanswered Code 800706B5 The Interface is Unknown - Windows 7 - IE 9 - Vbscript

  • Monday, February 13, 2012 2:41 AM
     
     

    I do have a very big issue for which i look forward to get a solution. The issue is that all this vbscript code was working in a Windows Vista Machine with IE 7. But I do want the same code to even run on Windows 7 Machine with IE 9. But when i tried to run, i get the following message "Code 800706B5 The Interface is Unknown" just after the navigation to required URL is completed. More clearly I get this error when IE object is accessed again after navigation. Please help me as this is very critical for me.

    eg.

    Do while (IE.Busy)

    WScript.Sleep (200)

    Loop

    --------------------------------------------------------------------------------------------------------

    Full Source Code

    Set WshShell = CreateObject("WScript.Shell")
    Set IE = CreateObject("InternetExplorer.Application")
    IE.Navigate ("http://URLOnMyIntranet//?cid=6&c=12&cpc=dt2wJiVUfnQ2")
    IE.Visible = True
    WshShell.AppActivate IE

    wscript.sleep 2000

    WshShell.AppActivate IE

    WshShell.SendKeys "username"
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys "password"
    WshShell.SendKeys "{ENTER}"

    Do While (IE.Busy)
    wscript.sleep 200
    Loop
    -------------------------------------------------------------------------------------------------

    i believe when WScript.Sleep 2000 is called the IE object becomes invalidated


    Linson

All Replies

  • Monday, February 13, 2012 3:28 AM
     
     

    Hi Linson,

    this link looks like the definitive solution

    http://www.computerperformance.co.uk/Logon/code/code_800706B5.htm

    The Cause of Code 800706B5 

    Almost certainly, the Windows Time Service is stopped, or needs restarting.

    .... probably because it is stuck at the password prompt sendkeys.... see the bottom of my reply...

    Generally if you copy and paste your error messages into a web search you will find an answer.

    Regards.


    Rob^_^

    here is a web search for solutions to login automatically to a intranet using vbscript and IE.

    http://www.google.com/search?q=vbscript%20automate%20user%20login%20to%20intranet

    If you are using IE7 or if in IE8/9 you have Tools>Compatibility View Settings>"Display intranet sites in Compatibility View" checked

    see this link

    http://www.petri.co.il/forums/showthread.php?t=33681

    there is a way to avoid having to send keys for the password prompt.

  • Monday, February 13, 2012 3:44 AM
     
     

    Hi Rob,

    This link i have seen several times but it doesnt help me. This has nothing to do Windows Time Service as i have plenty other vbs files working fine like script for auto login to gmail, facebook, etc.... the only difference i see here in my present case is that i'm forced to use a Wscript.sleep function just after navigation as i need to wait and input a userid and pass to a Windows Security Dialog box. But i see that after successfull login to my web app i see that IE object becomes unknown.

    As you said Windows Time Service was restarted several times but all in vain... :(


    Linson

  • Monday, February 13, 2012 7:01 AM
     
     

    No... this is not the same....

    you are accessing an intranet site where you have Windows Authentication switched on.

    see the links at the bottom of my post.... (you need to determine also what server version your intranet is running on... Sharepoint or Windows server)... the links I provided give different answers....

    this is not my area of expertise sorry... Its the best I can suggest.

    Regards.


    Rob^_^

  • Monday, February 13, 2012 10:45 AM
     
     
    This is a Windows Server. I went through the links you specified in your post. But all those links were talking about automating the login procedure by saving the user id and pass for future use. But i cannot follow it as i need to use different login credentials for differnt scripts for the same application. Please suggest me something else...

    Linson

  • Monday, February 13, 2012 11:33 PM
     
     

    Sorry... It looks like my friends were unable to help you (your question is off topic here in this forum and it is beyond my expertise)

    Here is a list of support forums for windows scripting

    http://www.google.com/search?q=windows%20scripting%20forum

    this link http://www.vandyke.com/support/securecrt/scripting_examples.html is the best I can come up with.... it will probably only confuse you more...

    If you are using Windows Server 2008 then you will probably have to write a Windows Shell Script (not a vbscript)... that is probably why you are getting errors at the Windows authentication prompt.

    Re-ask you question here http://social.technet.microsoft.com/Forums/en-US/ITCG/threads

    clearly stating your goal and your environment.

    Regards.


    Rob^_^

  • Tuesday, February 14, 2012 3:27 AM
     
     
    Thanks all for your efforts on this. Just FYI i was running this from a Windows Shell Script as you can see i have published the entire code in my first post of this thread. and i dont get any error at the Windows Authentication Prompt. its the line where the IE object is called again i get error.

    Linson

  • Monday, October 22, 2012 12:25 PM
     
     
    Same problem happened on my laptop (Windows7, IE8) and confuse me for a long time. It is very easy to solve it by opening "Security Settings" in IE. Change "Allow scripting of Microsoft web browser control" from Disable to Enable.