Re: Scheduled Task running as SYSTEM fails with logged-on user



I don't know for sure what is going on but you might also try using the AT
command to schedule the task if it is time based and not event based. You
may need to use the /interactive switch also to get it to work the way you
want.

Steve

http://support.microsoft.com/default.aspx?scid=kb;en-us;313565 --- AT
command


"Jason Walker" <JasonWalker@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3B328905-ABFE-4BD6-BA16-43FC6E8BCED1@xxxxxxxxxxxxxxxx
Using Windows XP SP2 in a 2003 Native domain. I have configured a
scheduled
task to run on each of the XP clients. This task triggers a VBScript
which
uses WMI to connect to the event log provider, and save the Security event
log to a .EVT file on the local hard drive.

This task is configured to run under the SYSTEM account and was created
using the SCHTASKS.EXE command.

What I've found, is that the task runs when there is no user logged in.
If
an Administrator logs in to the machine, the task runs. If a normal user,
without privileges to the Security Log is logged on to the machine, the
task
fails.

By echoing extra commands from the vbscript file, it appears to be
connecting okay to \root\cimv2 with
{impersonationLevel=impersonate,(Security,Backup)}:\\.\root\cimv2 , then
obtaining a collection of security logs via ExecuteQuery. But, when I
then
try to iterate "for each Log in colLogs" the script crashes citing an
access
denied message.

Is there a trick to running this under the SYSTEM account that I don't
know
about? Any help would be greatly appreciated.


.



Relevant Pages

  • Are you australian, I mean, shuting over available peaks?
    ... It will greet the growing cell and reserve it prior to its schedule. ... Plenty of members indirectly sweep the lexical monument. ... Beth never spills until Ikram totals the involved command ... All average violent trusts wickedly ...
    (sci.crypt)
  • AT command
    ... Schedule service is running. ... Specifies a remote computer. ... Cancels a scheduled command. ... Connecting to network drives ...
    (microsoft.public.windows.server.general)
  • AT command
    ... Please can you or anyone else tell me as to what command ... line I should use to schedule a task. ... >redirect output to a file, ... >Connecting to network drives ...
    (microsoft.public.windows.server.general)
  • Re: AT command
    ... It isn't as granular as the at command, as far as I know, but may do ... > line I should use to schedule a task. ... >> Specifies a remote computer. ... >> Connecting to network drives ...
    (microsoft.public.windows.server.general)
  • Re: Moving from 2200 to A-series - CANDE and Schedule Sessions
    ... I have been working in the "CANDE" world since college, ... is the use of SCHEDULE sessions to "DO" things in logged CANDE ... "DO" command and saw what it could accomplish. ... your "session" results ...
    (comp.sys.unisys)