Jump to content
Sign in to follow this  
svaneenoo

RunAs to open IE8 does not work

Recommended Posts

svaneenoo

Hi all,

I have a script that works perfectly with Internet Explorer 6, but not with Internet Explorer 8.It opens IE as administrator, opens a page in order to install an activeX control.

In AutoIt the output is:

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\rwd_eenoo\Desktop\Install_ie7_8.au3"

>Exit code: 0 Time: 1.909

This is the code

RunAs($sUserName, @ComputerName, $sPassword, 0, '"C:\Program Files\Internet Explorer\iexplore.exe" "http://rwd-apsv/RWDHlp/rwdhlp_sot.htm?url=http://rwd-apsv/gm/?format=doPerformSearch.shtml&source=HLP&P6=RWD_ACTIVEX_INSTALL_SEARCH::&F6=transaction_code&SO=rel&w=40&h=80&pos=1"')

When I try a normal Run, it works...

Does anybody have an idea why this Runas does not work with IE 8?

Any is help is very much appreciated.

Best regards

Stefaan

Share this post


Link to post
Share on other sites
PsaltyDS

What if you try your credentials with something else, like just:

RunAs($sUserName, @ComputerName, $sPassword, 0, 'Notepad.exe "C:\Temp\Test.txt"')

:mellow:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
svaneenoo

What if you try your credentials with something else, like just:

RunAs($sUserName, @ComputerName, $sPassword, 0, 'Notepad.exe "C:\Temp\Test.txt"')

:mellow:

The same problem. So it has nothing to do with IE.

Has to do with the computer config.

I am running windows xp, version 2002, service pack 3

Best regards

Stefaan

Share this post


Link to post
Share on other sites
Juvigy

Are you sure the credentials work?

Share this post


Link to post
Share on other sites
svaneenoo

Oh boy, the credentials were incorrect.

Thanks for bringing me back on track.

Now it works :mellow:

Cheers

Stefaan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×