For Programmers: Free Programming Magazines  


Home > Archive > ASP > March 2004 > ASP shell command permission problem on Windows 2003









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ASP shell command permission problem on Windows 2003
Alex Cowell

2004-03-28, 9:55 pm

When trying to run a shell command from an ASP script under IIS6 I am
getting a permission denied error. This worked under IIS5. The command
calls nslookup, which writes its output to a text file:

Set oShell = Server.CreateObject("Wscript.Shell")
oShell.Run "%ComSpec% /c nslookup " & sHost & "> c:\output.txt", 0,
True

What configuration change is required to allow the IIS anonymous user
account to execute this command on Windows 2003 Server?

Thanks in advance.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com