Elevate the Iexplore in Vista

50 pts.
Tags:
Internet Explorer
Microsoft Windows Vista
Microsoft Windows XP
Quality Center
Hello Gurus! Our client site uses a product called Quality Center which is installed via the Internet Explorer and works just fine in XP. Our process for installing is to push the IE icon to the user PC, assign admin rights (which we take away again), have them reboot and click the icon, then QC loads. Then Vista arrived and the world changed. This process doesn't work in Vista. We discovered we had to add the QC support site to the trusted sites list (which we did) and that we had to run IE w/ elevated rights. Once we did that, QC would install. But that means I have to visit each PC to install it and I don't want to do that. So...after what seemed an eternity of searching I found the following...somewhere...and gave it a shot :
 
Const ABOVE_NORMAL = 32768
Const QC = <my server info is here>
strComputer = "."
Set objWMIService = GetObject("winmgmts:" & strComputer & "rootcimv2")
Set objStartup = objWMIService.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance_
objConfig.PriorityClass = ABOVE_NORMAL
Set objProcess = GetObject("winmgmts:rootcimv2:Win32_Process")
objProcess.Create "C:program filesInternet ExplorerIexplore.exe " & QC, Null, objConfig, intProcessID
Well, IE does start and QC does start to install but it chokes at the ActiveX portion of the load. That indicates that IE is NOT running w/ the elevated rights which is what I expected. I have no intention of bypassing the UAC or turning it off then turning it on...not permitted at this site. Further, I believe the client is working to turn off the RUNAS ability to make things more complicated for everybody sooooooo Is it possible to script it such that IE will run w/ elevated rights? CJ

Answer Wiki

Thanks. We'll let you know when a new response is added.

Found a solution on the MSDN Forums to elevate the process via a Java Script called (oddly enough) elevate.js and it does work.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following