Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASPExec and .Net 2003 Server

Status
Not open for further replies.

JoshFink

IS-IT--Management
Mar 6, 2003
50
US
Is anyone using ASPExec and .NET Server 2003?

I'm trying to get some scripts to run that work fine on 2K Server, but I'm getting the following error every time from every script, even the ASPExec samples, that use it.

Error: Could Not Create Process

Could this have anything to do with permissions? Need help desperately.

Thanks

Josh
 
what script? and have you enabled IIS to be able to run asp.net code?
 
Here is a copy of the script. Just a test script with ASPExec. The only way I could get it to work properly is to set both ISUR users to be in the adminstrative group, but it shouldn't have to be set like that. Makes really no sense to me. It works fine on Win2K with the default settings.

As for ASP.NET , yes it is installed, but this is just a regular ASP script and all my other ASP scripts that don't take advantage of ASPExec work fine.

Thanks,

Josh

Code:
<html>
<head><title>ASPExec Test (copy)</title><head>
<body>
<H3>ASPExec Copy Test</H3>

<%
  Set Executor = Server.CreateObject(&quot;ASPExec.Execute&quot;)
  Executor.Application = &quot;cmd /c copy c:\autoexec.bak c:\josh&quot;
  Executor.Parameters = &quot;&quot;
  strResult = Executor.ExecuteDosApp
  Response.Write &quot;<pre>&quot; & strResult & &quot;</pre>&quot;
%>

</body>
</html>

 
ahh, makes sense now :)

cmd.exe is restricted by default in windows2k3 - stops hackers finding a hole in iis and then abusing the server..

if you REALLY need it like this (and its definitely not recommended!), then find the exe and change its permissions (windows\system32\cmd.exe)
 
I will check that out.. Thanks so much.

Is there another way to actually execute this without cmd.exe? Which user would I need to give permissions to cmd.exe to?

Thanks

Josh
 
Ok.. I gave the IUSR_COMPNAME read & execute on the cmd.exe file and it worked great. I can now take them out of the administrative group.

Thanks for the great help. I've been pulling my hair out on this for 2 weeks.

Just curious but is it not locked down on a Win2K system?

Thanks

Josh

PS.. You wouldn't know how to enable Gateway Services for Netware on Win2K3, would you?
 
On win2k, IIS is wide wide open.. nothings locked down in any way shape or form! Only easy way to do it is nab the IISLockdown tool from microsoft - win2k3 has a better version of this built in, effectively
 
Thanks, but copying is really just an example of what I'm doing. It was a test script with ASPExec. I really need to execute other executables on the box based on user input on the web page that runs another program and pulls back the data. I wish there were an easier way.

Josh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top