Re: For Function with Pipe Problem.

From: Marty List (bill.gates_at_sun.com)
Date: 03/24/04


Date: Wed, 24 Mar 2004 07:42:24 -0700


"BaKaR" <bakar@metro-cc.DnotSpamMe.hr> wrote in message
news:c3s549$mq4$1@brown.net4u.hr...
> Hi!
>
> OS: WinXP Pro.
>
> Tasklist.exe: C:\windows\system32\
> Kernrate.exe: C.\program files\MS Resource Kit\Tools\kernrate.exe
>
> Both are in the "Environment Variables">"System Variables"
>
> Im using echo and 2>>, just i gave you part of "almost" finished problem.
>
> Well, im using schtasks.exe (WinXP/Win2K3 at.exe) command which is working
very well.
>
> schtasks /create /sc minute /mo 5 /tn "test" /tr c:\scripts\test.cmd /ru
System
>
> So, it will put the task in the background process and execute it every 5
minutes with NTAuthority\System privilages/permissions.
>
>
> If i run the script, i tested, with my account (local Admin) it works
fine, still, if ran with that schtasks and system account,
> aint working ...
>
>

Are you sure you're looking at the correct file.log? If the current
directory is different for the scheduled task, then a new copy of file.log
will be created elsewhere. Try specifying the full path to your output
file.

I think you should post the exact contents of your script, not something
"almost" the same.



Relevant Pages

  • Re: Power Management GPO?
    ... I turned hibernate on, then waited for the schedule and it worked, so SYSTEM does have the ability to change power settings. ... So, long story short, I am guessing you could create a startup script that creates the scheduled task to run a second script that sets the power configuration. ... Run powercfg from the command line with a /? ...
    (microsoft.public.windows.group_policy)
  • Re: Script Not Totally Working in Scheduled Tasks
    ... Sleep steals CPU time and keeps a process open all the time, ... This script will create a new scheduled job every one minute... ... Can I run the AT command to run every 5 minutes or so? ... when you run a scheduled task as another user ...
    (microsoft.public.scripting.vbscript)
  • Re: wher can I write the script to be run
    ... You can set up a scheduled task to run it when nobody is logged on. ... the scheduled task as this will hang the script as you can't see the OK ... In a command prompt you can run the script with wscript or cscript. ... Monitor your enterprise Web Servers. ...
    (microsoft.public.windows.server.scripting)
  • Re: Scheduled Shutdown with GP
    ... A scheduled task only needs to be defined once, ... The AT command is one means of defining a scheduled task. ... admin had logged in, a startup script would have sufficient rights, ... I'd like to shutdown a few PCs using Group Policy at a specified time ...
    (microsoft.public.windows.group_policy)
  • Re: Task Scheduler permissions problem
    ... I am unsure if you are using the AT command line tool or the Scheduled Tasks wizard. ... > I have tried adding it as a scheduled task using the AT scheduler. ... > System account, which is the account that the Task Scheduler runs under ... > it to use an administrator a/c. ...
    (microsoft.public.windows.server.security)