Solved

Need help with an objIE.Document is nothing statement

Posted on 2012-03-21
3
436 Views
Last Modified: 2012-04-18
We have a Hypertext application that today runs under Windows XP and IE 8.  The apps is designed to go out to Active Directory 2003, find the computer object and gathers informaiton about the object as well as collecting it's group membership.  Once the information has been gathered the app spawn a window in IE that displays the information found.  When testing this HTA under Win 7 and IE 8 an error "The Interface is unknown" occurs any time we are refererencing objIE.Document or any other object that was derived from objIE.Document (i.e. set objHTMLBody = objIE.document.body) .  Although I was using an accout that had domain admin rights and local administrator rights on the WIN 7 workstation, the code would always error out when it hit a reference that involded objIE.Document.  However, we have discovered that if we run the app using "Run As Administrator" the app works just as it did under Windows XP.  Does anyone know how to get around this elevated rights issue?
0
Comment
Question by:msgexpert
3 Comments
 
LVL 10

Accepted Solution

by:
CSI-Windows_com earned 500 total points
ID: 37748287
It does not appear that there is anything that can be done about need admin rights.  You may have already found these threads:
http://social.technet.microsoft.com/Forums/en/ITCG/thread/49f829b6-3c04-403c-97b0-6480aaba3fbe

http://stackoverflow.com/questions/1427370/error-800706b5-when-calling-iwebbrowser2-get-document

You could use a third party tool to give admin rights to just that one HTA.

You may have to configure them to run Iexplore.exe with the HTA as an argument.

Here are some free ones:
http://www.steelsonic.com/steelrunas.htm - this is not free, but the last freeware version (1.2) can be found here: http://www.freewarefiles.com/downloads_counter.php?programid=26832

http://www.joeware.net/freetools/tools/cpau/

http://www.chessware.ch/runitas/

There is also a free enterprise tool that allows you to configure anything to run with admin credentials via group policy - a little bit fussy if this is a one time need:

http://www.scriptlogic.com/products/privilegeauthority/
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question