RE: Task Scheduler result code 0xc0000025

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jason Hall [MSFT] (v-jashal_at_online.microsoft.com)
Date: 06/10/04


Date: Thu, 10 Jun 2004 13:29:49 GMT


--------------------
>From: "=?Utf-8?B?QnJpYW4=?=" <anonymous@discussions.microsoft.com>
>Subject: RE: Task Scheduler result code 0xc0000025
>Date: Wed, 9 Jun 2004 14:31:02 -0700
>
>The task cannot be run under the same credentials as the logged-in user
because it is started via a terminal services session, and if I use the
same credentials for the task as for the TS session, then the task stops
when I log off the TS session.

The task does have an interactive component, but the developer has provided
a auto-start command-line switch that bypasses or automates that
interactive component so that it could be run without user intervention.

The user is in the local admins group on this server and therefore inherits
the "Log on as a batch job" right. The user shows up on the list of users
having that right in the Local Security Policy.
>
---------------------

Check to see if your DCOM permissions are too restrictive to allow the job
to be run....
1. Start > Run > DCOMCNFG
2. On the Default Security tab:
        Default Access Permissions > Edit Default > Add > Everyone > Add >
OK > OK
        Default Launch Permissions > Edit Default > Add > Everyone > Add >
OK > OK
3. Click OK, and try to run the scheduled task

Regarding the "interactive component": I am not sure, given the nature of
this "switch", whether or not the application will still be regarded as
"interactive" by the system. If the application is regarded as
non-interactive, then the above may resolve your issue.

Also, if you get any application or system errors in the Event Viewer,
please post them

Thanks, I hope this helps
 

-- 
~~ JASON HALL ~~
~ Performance Support Specialist,
~ Microsoft Enterprise Platforms Support
~ This posting is provided "AS IS" with no warranties, and confers no 
rights. 
~ Use of included script samples are subject to the terms specified at 
http://www.microsoft.com/info/cpyright.htm 
~ Note:  For the benefit of the community-at-large, all responses to this 
message are best directed to the newsgroup/thread from which they 
originated.  


Relevant Pages

  • RE: Task Scheduler result code 0xc0000025
    ... The task cannot be run under the same credentials as the logged-in user because it is started via a terminal services session, and if I use the same credentials for the task as for the TS session, then the task stops when I log off the TS session. ... The task does have an interactive component, but the developer has provided a auto-start command-line switch that bypasses or automates that interactive component so that it could be run without user intervention. ... The user is in the local admins group on this server and therefore inherits the "Log on as a batch job" right. ...
    (microsoft.public.win2000.general)
  • Re: How to close LAN session and login as another credentials
    ... and is connected to a share on the server. ... these credentials, since it will automatically try to use the credentials of ... The problem is that from 1 login session on a PC, ... When I try to access administrator share ...
    (microsoft.public.windowsxp.network_web)
  • Re: How to use WinLogon API to solicit credentials?
    ... I can't simply use the current session identity for my ... I will need to engineer credential solicitation ... I understand that I'll need to use the WinLogon API in order to do this. ... user credentials, or will WinLogin step in to assume this function. ...
    (microsoft.public.security)
  • Re: I am stucked: Working on a network mapped drive via Web Service
    ... >>> Network sessions are session bound, that means that when you map ... >>> credentials when accessing network resources. ... >>> only access local drives. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to close LAN session and login as another credentials
    ... When I try to access administrator share ... passwords for that already selected guest user. ... user whether one wants to maintain session for the connection or temporarily ... >> credentials to access that folder but it don't so, ...
    (microsoft.public.windowsxp.network_web)