I have two test IIS servers. I'm running the exact same asp file on both.
Test.asp code:
---------------------------------------------------------
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<%
Dim wShell
Set wShell = CreateObject("WScript.Shell")
wShell.run "cmd.exe /c C:\test.vbs"
Set wShell = Nothing
%>
TEST2 DONE!!
</BODY>
</HTML>
-------------------------------------------------------
test.vbs just creates a folder on the c: drive. The script runs when executed alone.
On one server, the vbs is executed correctly. On the other, sometimes there is a beep and nothing. Then other times it takes a very long time to do nothing. On this same server I am able to use similar code to run the schtasks.exe. But I am not able to run cmd.exe.
The permissions are correctly set for the IUSR account on wscript.exe and cscript.exe. In IIS services, "Allow service to interact with desktop" is selected.
Does anyone have any suggestions how to fix this?
Test.asp code:
---------------------------------------------------------
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<%
Dim wShell
Set wShell = CreateObject("WScript.Shell")
wShell.run "cmd.exe /c C:\test.vbs"
Set wShell = Nothing
%>
TEST2 DONE!!
</BODY>
</HTML>
-------------------------------------------------------
test.vbs just creates a folder on the c: drive. The script runs when executed alone.
On one server, the vbs is executed correctly. On the other, sometimes there is a beep and nothing. Then other times it takes a very long time to do nothing. On this same server I am able to use similar code to run the schtasks.exe. But I am not able to run cmd.exe.
The permissions are correctly set for the IUSR account on wscript.exe and cscript.exe. In IIS services, "Allow service to interact with desktop" is selected.
Does anyone have any suggestions how to fix this?