Hello,
I work for an automation company and recently was involved in an "upgrade" of a older system Running Windows 2000 to a "new" system running windows XP. The old system had IIS running a very basic web page that has a simple asp script (shell.run) which would run a executable and pass a parameter to our running display software. (Plant Managment)
(Here is a glimpse at the script with some generic labels (and yes, the program's location is set in sytem path))
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<%
CommandA=Request.QueryString("CommandA")
If CommandA="CommandA" then
'response.write " Thank you!"
set wshell = CreateObject("WScript.Shell")
wshell.run "program parameter"
set wshell = nothing
end if
server.transfer("somepage.html")
%>
</BODY>
</HTML>
Upon upgrading and mirroring as much as we could determine of all the configurations for the web server (includeing checking the box "allow this process to interact with the desktop" in the processes tab, we have still hit a bizzare road block. The web page works, the button launches the program on the server but the launched program will not interact with the other running program (Plant managment software).
As far as I can tell the issue is as follows:
The plant managment program is running as Administrator. The asp web page launches and runs the utility program as "SYSTEM" and when it does, it can not see or interact with the program that is running as "Adminstrator". I have tried extensivly to fix this with runas, impersonation, etc but have not found a resolution. No matter what I do the ASP page launches the utility as system, can't see the other running program, and errors. The only configuation difference as far as I can tell between the two systems is that the old one is Windows 2000 and the new one is windows XP. I did a test by logging into windows XP as the "SYSTEM" user using the "at" command and was able to verifity the asp page working properly when both processes are ran by the same user. ( In this case, both were run as "SYSTEM") So does anyone have any idea, suggestions, or advice about getting the progam launched from an asp page to run as administrator and not system - and still interact with the desktop?
Thanks kindly for any idea.