Re: Task Scheduler permissions problem

From: Nev George (bowlingparking-spamkill_at_hotmail.com)
Date: 08/27/04


Date: Thu, 26 Aug 2004 23:28:39 -0700

hi Steven,

Thankyou for your reply.

It is the AT command that I'm using ... I believe my syntax of the AT
command is correct.

The problem I'm having is that I cannot run a NET USE command within
this batch file when this batch file is run as a scheduled task in AT.
If I run this batch file manually it works fine. But when it's run from
AT scheduler I am prompted to enter a password when the NET USE command
is issued. This sounds like a permissions issue ... ?

I've experienced similar happenings with NT4 (and have read in
newsgroups of other users having such probs) and it can be fixed by
assigning the Scheduler service an administrator account to "log on as".
But with Win Serv 2003 I cannot use an admin a/c since the "error 1079"
comes up as mentioned in my first post.

Hope I've made better sense this time :)

Regards,

Nev

"Steven L Umbach" <n9rou@nospam-comcast.net> wrote in
news:#MUjtz#iEHA.3896@TK2MSFTNGP15.phx.gbl:

> I am unsure if you are using the AT command line tool or the Scheduled
> Tasks wizard. If you have not tried it yet, schedule the task with the
> AT command and change the service back to the system account. The link
> below details on how to use that AT command. --- Steve
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;313565
>
> "Nev George" <bowlingparking-spamkill@hotmail.com> wrote in message
> news:Xns95528403E4944bowling@207.46.248.16...
>> Hi there,
>>
>> We are running Windows Server 2003.
>>
>> I have a batch file that backs up our servers using ntbackup, and it
>> runs fine.
>>
>> I have tried adding it as a scheduled task using the AT scheduler.
>>
>> At the beginning of my batch file is a "net use" command to map a
>> network drive. This executes fine when I run the batch file myself as
>> administrator, but as a scheduled task it prompts for a password.
>>
>> I assumed this was occuring due to a permission issue with the Local
>> System account, which is the account that the Task Scheduler runs
>> under by default. So, under the Task Scheduler's Log On properties I
>> changed it to use an administrator a/c. When I try to restart the
>> service I get the error message:
>>
>> "Error 1079: The account specified for this service is different from
>> the account specified for other services running in the same
>> process".
>>
>> Anyone have any idea what the problem is, and what I can do it
>> rememdy it?
>>
>> Any information is very much appreciated :)
>>
>> Nev
>
>
>



Relevant Pages

  • Re: Starting a Systemwide App on boot?
    ... Why not use the registry? ... select the SYSTEM account when you define events in Task Scheduler. ... You'll have to use the 'at' command in a command shell. ...
    (microsoft.public.windowsxp.general)
  • Re: how to schedule MS degragmenter?
    ... manual way to run Defrag is to click to Start/Control ... you launch the tool via a command line plus ... I have a batch file called "DEFRAG_ALL.BAT" for example, ... Using Task Scheduler To Complete The Process ...
    (microsoft.public.windowsxp.basics)
  • Re: calling java class from web page
    ... I can run the java app through the command line with the following call: ... When I run same batch file from the ASP page ... Administrator account and let your ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Mass copy of files: how to?
    ... Avoiding "command lines" means that you have to perform the ... suggest a reliable batch file solution based on robocopy.exe. ... (which would be nice when using the Task Scheduler). ... A VERY brief tutorial on how to do this - use a batch file where you redirect the output to log files - for example, even using xcopy right now, you can simply append "output.log 2>&1" and "see" all that you would see if you run the command manually. ...
    (microsoft.public.windows.server.general)
  • Re: How to compare Environment settings for when I log in vs Task scheduler logs me in.
    ... scheduler to run this App as that user. ... getting confused about the first part - the set command. ... executing a .bat script containing the "set> ... must be run with an account that has a non-blank password. ...
    (microsoft.public.windows.server.general)