Access Denied when trying to access cmd.exe

  • Thread starter Thread starter wbabbit
  • Start date Start date
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.
 
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.
 
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?
 
Back
Top