UNSOLVED

EnvisionPlus

updated

16 years ago

0

916

November 29th, 2010 18:00

AutoStart 5.4 can not start the process with privilege elevation

I tried two ways to elevate privilege of my process on Windows Server 2008 with AutoStart 5.4

First one is embedding the  UAC manifest into my application/process. Direct clicking this application exe can start this application successfully with privilege elevated. -- BTW, my application is UI based, so it can not be started as Windows Service to work around the session 0 problem. With this manifest it is no longer taged as "Virtualized". But this process can not be started by AutoStart with the error "Could not OpenProcess". I am supposing that whether AutoStart has the ability to support privilege elevation on Windows Server 2008? Or can AutoStart handle the UAC dialog that prompt for confirmation before privilege elevation?

Second way is to create one vbs script as following:

Set objSh = CreateObject("Shell.Application")
objSh.ShellExecute "C:\Program Files\××× Inc\××× Server\Routing Manager\×××Rm.exe","", "","runas",1

And invoke this vbs from AutoStart by "Batch Command", process/my application can be started with UAC confirmation prompt successfully. But here comes two problems

(1)Even this process is started up but its process status is red -- Anything I missed?

(2)Why the operation type of "Batch Command" can not be stored? After switch tabs of process setting -- apply button is clicked, the operation type be empty.

I apologize that too many questions together, but such problems do exist in our system and it will affect whether we will need to upgrade the OS. All in all we need to use AutoStart to manage our dual servers and run the processes with elevated privileges.

Thanks