Re: batch file schedule fails on windows server 2003

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Matta" <mattasrinivas@xxxxxxxxx> wrote in message
news:1175495480.037196.231350@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Matta wrote:
On Mar 30, 7:00 pm, "Pegasus \(MVP\)" <I...@xxxxxxx> wrote:
"Matta" <mattasrini...@xxxxxxxxx> wrote in message

news:1175244509.906868.319000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx





On Mar 30, 12:54 pm, "Pegasus \(MVP\)" <I...@xxxxxxx> wrote:
"Matta" <mattasrini...@xxxxxxxxx> wrote in message

news:1175233135.527003.52200@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi,

I am scheduling a batch file to start in the midnight (11pm) for
backup operation. When I come and see in the next morning the
schedule
is a fail.

The log file says following :
--------------------------------------------------
"bkup.job" (bkup.bat) 3/29/2007 11:00:00 PM ** ERROR **
The attempt to log on to the account associated with the task
failed,
therefore, the task did not run.
The specific error is:
0x80070569: Logon failure: the user has not been granted the
requested logon type at this computer.
Verify that the task's Run-as name and password are valid and
try
again.
----------------------------------------------------

I am running the schedule as Administrator and correct password
is
set.

Another observation, here if I schedule the task in next couple
of
hours it works fine,
i.e. In the morning at 10 AM if I schedule the task to start at
11AM
it works fine.

Can anyone tell me why this is happening...

Thanks,
Matta

Create a dedicated account and give it sufficient privileges to
access
the folders to be backed up. Now set the policy so that this accou
nt
can log on as a batch job, then schedule the backup job to run
under
this dedicated account.

For testing purposes I would also create a job that is scheduled
to
run every five minutes, under the same account, executing the
batch
file below. When your backup job fails, does the test job fail
too?
@echo off
echo %date% %time% >> c:\test.log- Hide quoted text -

- Show quoted text -

hi,
Thanks for the info...
Created a dedicated account and added it as member of administrator
and backup operators groups.
How can I set the account to log on as a batch job, what is the
process?

Thanks
Matta

Local Computer Policy / Computer Configuration / Windows Settings /
Security Settings / Local Policy / User Rights / Logon as a batch
job.- Hide quoted text -

- Show quoted text -

Hi,

After adding the user to Logon as a batch job, I am still seeing the
same error:

"backup.job" (vssbkup.bat) 4/2/2007 1:00:00 AM ** ERROR **
The attempt to log on to the account associated with the task failed,
therefore, the task did not run.
The specific error is:
0x80070569: Logon failure: the user has not been granted the requested
logon type at this computer.
Verify that the task's Run-as name and password are valid and try
again.

Regards,
Matta

Sorry, When I try to add the user to Logon as batch job and clikc
apply, I am seeing following message:

---------------------------
Security Templates
---------------------------
Access is denied.

Failed to save \\adm.key.com\sysvol\adm.key.com\Policies
\{31B2F340-016D-11D2-945F-00C04FB984F9}\Machine\Microsoft\Windows NT
\SecEdit\GptTmpl.inf. Make sure that you have the right permissions to
this object.

---------------------------
OK
---------------------------

Any clues why I am getting this message?

Thanks
Matta


Either you are not a domain administrator when you do this,
or else you have a problem with domain policies (about which
I am not well qualified to talk).

I am somewhat concerned about the accuracy of your reporting.
Two hours ago you wrote "After adding the user to Logon as
a batch job . . " whereas now you report that you were unable
to set the batch logon right for this user. The two statements
are clearly contradictory.


.



Relevant Pages

  • Re: batch file schedule fails on windows server 2003
    ... backup operation. ... requested logon type at this computer. ... Created a dedicated account and added it as member of administrator ... How can I set the account to log on as a batch job, ...
    (microsoft.public.windows.server.general)
  • Re: batch file schedule fails on windows server 2003
    ... backup operation. ... The attempt to log on to the account associated with the task failed, ... requested logon type at this computer. ... How can I set the account to log on as a batch job, ...
    (microsoft.public.windows.server.general)
  • Re: batch file schedule fails on windows server 2003
    ... backup operation. ... The attempt to log on to the account associated with the task failed, ... requested logon type at this computer. ... How can I set the account to log on as a batch job, ...
    (microsoft.public.windows.server.general)
  • Re: running .bat files
    ... Yes on Batch job and service. ... I do not see the rights to start and stop ... Has the account the rights "Logon as a bacth job" and "Logon a s a ... I set the user account that it runs as as Administrator, ...
    (microsoft.public.windows.server.security)
  • [EC-SA-01.2003] Windows XP "welcome screen" exposes the names of all the members of the l
    ... logon screen with what is called "Welcome Screen". ... (including the original administrator account, ... Using the "welcome screen" actually disables / ignores the security ...
    (Bugtraq)