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

From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 10/19/04


Date: Tue, 19 Oct 2004 13:55:57 -0500

On Tue, 19 Oct 2004 12:02:23 -0400, "Yehuda Vernik" <yvernik@plusfunds.com> wrote:

¤ 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 ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)



Relevant Pages

  • "Access is denied" error when running schtasks.exe under ASPNET account in win2k3 server
    ... Windows 2003 server with IIS 6.0 ... I am able to run the same command line manually using Administrator's ... Professional under ASPNET account. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Web Service Security problem
    ... the server. ... the failed logon attempt was ASPNET. ... >Allowin that account access to lan resources would be a large security risk. ... >> Another possible issue is the ASPNET account on the server. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Windows Identity and IIS6.0
    ... Please undo your permission changes to ISA_User and ASPNET account -- they ... On IIS6, ASP.Net is configured to not impersonate, and the Application Pool ... My operating system is Win 2003, Framework is 1.1 and Web Server is IIS 6.0 ... I have give Full permission to the ISA_User account and ASPNET Account. ...
    (microsoft.public.inetserver.iis)
  • Re: .NET Framework 1.1 SP1 and ASP.NET
    ... I am getting the same error after installing SP1. ... Somebody suggested that I need to simply reset my ASPNET user's ... > password for the ASPNET account in machine.config. ... > other accounts in the User Accounts part of the Control Panel. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Cant Upload files, ASPNet Account required
    ... installed but there is no ASPNET account. ... > Server 2003 which has the framework installed. ... > Domain Controller, there are no Local Accounts such as ASPNET. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading