Re: Scheduled task "run as" question
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Fri, 23 Jun 2006 09:54:04 +1000
"pbrill1" <pbrill1@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F2431916-74DB-4507-A365-6085471A5045@xxxxxxxxxxxxxxxx
Thanks - your info is correct, a typo that I made in the original messageW2K3
made my original question inaccurate.
The server that I am attempting to execute the batch files on is a W2K
server...not a W2K3. While "Run only if logged on" is a choice in the
server scheduled tasks... it doesn't appear as a choice on a W2K server.a
Is there any way to force this option in Scheduled Tasks for a W2K server
that we cannot perform an OS upgrade on for another 6-9 mo.?
--
pbrill1
"Pegasus (MVP)" wrote:
"pbrill1" <pbrill1@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ED2F9CAE-20A1-41EA-AFF9-2D16800C2E7D@xxxxxxxxxxxxxxxx
I am trying to execute a .bat script under Scheduled Events to run on
TheW2K3
server at scheduled times...when no one is logged onto the server.
start'batch
script executes a 'net stop' service command at say 8PM, and a 'net
willbatch script at 5AM. When I've set up the scheduled task, the script
atrun when the TASK TAB is set to RUN AS: <DOMAIN>\ADMINISTRATOR and therights.
SECURITY TAB includes SYSTEM and this ADMINISTRATOR with Full Control
Trouble is, it seems that you need to be logged on as administrator
offthe
server to execute these batch scripts (they don't run when I am logged
loggedof
the server. Are there some setting changes that I can make to executethese
batch scripts from a W2K3 server...without requiring me to remain
on
as administrator all night?
--
pbrill1
Untick the box "Run only if logged on" under the Task tab.
My Win2000 servers run scheduled tasks regardless of who
is logged on - even when nobody is logged on. I suspect yours
do the same too. Start your tests by scheduling the following
batch file, then examine the log file c:\log.txt.
@echo off
echo %date% %time% %Username% >> c:\log.txt
If you wish to continue this discussion then please do not
wait 8 days with a reply. It is a waste of my time having
to re-read the whole thread each time, after such a long
delay.
.
- Follow-Ups:
- Re: Scheduled task "run as" question
- From: pbrill1
- Re: Scheduled task "run as" question
- References:
- Re: Scheduled task "run as" question
- From: Pegasus \(MVP\)
- Re: Scheduled task "run as" question
- Prev by Date: HP Business InkJet printers keep stopping.
- Next by Date: Backup utility question
- Previous by thread: Re: Scheduled task "run as" question
- Next by thread: Re: Scheduled task "run as" question
- Index(es):
Relevant Pages
|