Re: Scheduled task "run as" question

Tech-Archive recommends: Fix windows errors by optimizing your registry




"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 message
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
W2K3
server scheduled tasks... it doesn't appear as a choice on a W2K server.

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
a
W2K3
server at scheduled times...when no one is logged onto the server.
The
batch
script executes a 'net stop' service command at say 8PM, and a 'net
start'
batch script at 5AM. When I've set up the scheduled task, the script
will
run when the TASK TAB is set to RUN AS: <DOMAIN>\ADMINISTRATOR and the
SECURITY TAB includes SYSTEM and this ADMINISTRATOR with Full Control
rights.
Trouble is, it seems that you need to be logged on as administrator
at
the
server to execute these batch scripts (they don't run when I am logged
off
of
the server. Are there some setting changes that I can make to execute
these
batch scripts from a W2K3 server...without requiring me to remain
logged
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.


.



Relevant Pages

  • Re: Scheduled task "run as" question
    ... and I apologize for the delay - I was ... The server that I am attempting to execute the batch files on is a W2K ... Is there any way to force this option in Scheduled Tasks for a W2K server ...
    (microsoft.public.windows.server.general)
  • Re: Documentation for simple NT4 to 2003
    ... to go from NT4 to W2K3 AD you have 2 possibilities: ... upgrade NT4 domain to AD ... How To Upgrade a Windows NT 4.0-Based PDC to a Windows Server 2003-Based ...
    (microsoft.public.windows.server.migration)
  • Re: Basic NT4 to w2k3 migration questions
    ... > read other threads written by otehrs who followed advice similar to your ... Our Exchange mail goes to a Linux mail ... >>> new hardware and then upgrading it to w2k3 which sounds a bit idiotic to ... This includes a Windows 2003 Exchance server. ...
    (microsoft.public.windows.server.migration)
  • Re: Problem establish trust between NT4 and W2K3 AD
    ... Do both the NT4 and Windows 2003 have wins clients loaded and pointing ... > I have installed WINS on the W2K3 server and point all DCs to ...
    (microsoft.public.win2000.active_directory)
  • Re: Moving First DC in Forest
    ... fully supports the Exchange 2003 Server. ... BLOG --> http://blogs.dirteam.com/blogs/jorge/default.aspx ... use the W2K3 SP1 CD! ... introduce w2k3 DCs ...
    (microsoft.public.windows.server.active_directory)