"Access is denied" error when running schtasks.exe under ASPNET account in win2k3 server

Y

Yehuda Vernik

Hi all,

I am trying to run schtasks.exe from asp.net application wich uses forms
authentication under ASPNET account.
It gives me "Access is denied" error message.
OS: Windows 2003 server with IIS 6.0

Info:
I am able to run the same command line manually using Administrator's
account on Windows 2003 server.
I am able to run the same command line programmatically on Windows 2000
Professional under ASPNET account.
Impersonation is disabled.
The password for ASPNET is set and being used in schtasks.exe command line.
I am able to run other command line apps (like gpg.exe) programmatically on
on Windows 2003 server using ASPNET account.
The filesystem privileges are set to allow ASPNET user full control.
The registry privileges allow ASPNET user to access registry.
ASPNET is a memeber of Administrators group


Could you please give me an idea on what else should I check?

Thanks a lot,

Yehuda Vernik
 
P

Paul Clement

¤ Hi all,
¤
¤ I am trying to run schtasks.exe from asp.net application wich uses forms
¤ authentication under ASPNET account.
¤ It gives me "Access is denied" error message.
¤ OS: Windows 2003 server with IIS 6.0
¤
¤ Info:
¤ I am able to run the same command line manually using Administrator's
¤ account on Windows 2003 server.
¤ I am able to run the same command line programmatically on Windows 2000
¤ Professional under ASPNET account.
¤ Impersonation is disabled.
¤ The password for ASPNET is set and being used in schtasks.exe command line.
¤ I am able to run other command line apps (like gpg.exe) programmatically on
¤ on Windows 2003 server using ASPNET account.
¤ The filesystem privileges are set to allow ASPNET user full control.
¤ The registry privileges allow ASPNET user to access registry.
¤ ASPNET is a memeber of Administrators group
¤
¤
¤ Could you please give me an idea on what else should I check?
¤

Windows 2003 Server uses an account called NetworkService instead of ASPNET.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 

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

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top