Access Denied when trying to access cmd.exe

W

wbabbit

I am getting an "Access Denied" error when trying to access an
executable in my web directory. I have tried cmd.exe, ftp.exe, even
notepad.exe. I have given everyone, including the anonymous user,
ASPNET user, and NETWORK SERVICE user full control of the entire
directory, but am still getting the error.

Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))

Source Error:

Line 116: strCMD = FtpDir & "cmd.exe /c " & strCMD & " > " &
strTempFile
Line 117: Dim oScript As Object = CreateObject("Wscript.Shell")
Line 118: Call oScript.Run(strCMD, 0, True)
Line 119: oScript = Nothing

I've been working on this for days and can find no solutions online or
otherwise. Thanks in advance if anyone can assist.
 
A

Anil Gupte/iCinema.com

Look in the IIS service, porperties of the web site. There is a dropdown
that allows you to choose "Scripts & Executables" - I think in the first
tab. That should do it.
 
W

wbabbit

Sorry, I checked that as well, I even added read/write and everyone to
the directories.
 
W

wbabbit

I should mention that I'm pretty certain this used to work, is it
possible some GPO was changed that would stop this from working any
longer?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top