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 & "\root\cimv2")
Set objStartup = objWMIService.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance_
objConfig.PriorityClass = ABOVE_NORMAL
Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")
objProcess.Create "C:\program files\Internet Explorer\Iexplore.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?