Jump to content

Reboot command no longer works in Task Scheduler


Recommended Posts

Posted

The following bat script (as a file.bat) which I put on a task scheduler no

longer works (W2K service pack 4).

 

Shutdown.exe /L /R /T:120 /C

 

How can I fix this? The shutdown has to work on each Saturday to refresh

the server memory.

 

Also, as a related solution to the above problem, how I can get the event

viewer to email me an alert when it triggers certain ID code?

 

Our main problem is that the server shutdowns expectedly and I suspect it is

the event viewer getting full. So I am hoping someone will have the

solutions.

 

Oliver

  • Replies 8
  • Created
  • Last Reply

Popular Days

Guest Meinolf Weber
Posted

Re: Reboot command no longer works in Task Scheduler

 

Hello Oliver,

 

Did you check the task scheduler logfile, it should state an error message/number.

 

Best regards

 

Meinolf Weber

Disclaimer: This posting is provided "AS IS" with no warranties, and confers

no rights.

** Please do NOT email, only reply to Newsgroups

** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

 

> The following bat script (as a file.bat) which I put on a task

> scheduler no longer works (W2K service pack 4).

>

> Shutdown.exe /L /R /T:120 /C

>

> How can I fix this? The shutdown has to work on each Saturday to

> refresh the server memory.

>

> Also, as a related solution to the above problem, how I can get the

> event viewer to email me an alert when it triggers certain ID code?

>

> Our main problem is that the server shutdowns expectedly and I suspect

> it is the event viewer getting full. So I am hoping someone will have

> the solutions.

>

> Oliver

>

Guest Dave Patrick
Posted

Re: Reboot command no longer works in Task Scheduler

 

What is in the system log at the time machine restarts?

 

Control Panel|Administrative Tools|Event Viewer|"file"|Action|Properties the

default is to overwrite events older than 7 days and max log file size of

512 kbytes. You can change to "Overwrite Events as needed"

 

 

"The shutdown has to work on each Saturday to refresh the server memory."

 

It would be better to locate and fix the leaking process.

 

Take a snapshot of Task Manager|Processes just after startup. Then check it

again later to see what process is ballooning. Also take a look at Task

Manager Processes|Mem Delta a consistently positive value usually indicates

a memory leak.

 

This tool may also help.

http://www.microsoft.com/technet/sysinternals/Utilities/ProcessExplorer.mspx.

 

 

--

 

Regards,

 

Dave Patrick ....Please no email replies - reply in newsgroup.

Microsoft Certified Professional

Microsoft MVP [Windows]

http://www.microsoft.com/protect

 

 

"Oliver" wrote:

> The following bat script (as a file.bat) which I put on a task scheduler

> no

> longer works (W2K service pack 4).

>

> Shutdown.exe /L /R /T:120 /C

>

> How can I fix this? The shutdown has to work on each Saturday to refresh

> the server memory.

>

> Also, as a related solution to the above problem, how I can get the event

> viewer to email me an alert when it triggers certain ID code?

>

> Our main problem is that the server shutdowns expectedly and I suspect it

> is

> the event viewer getting full. So I am hoping someone will have the

> solutions.

>

> Oliver

>

>

Posted

Re: Reboot command no longer works in Task Scheduler

 

Hi, yes this is the message.

 

"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."

 

Unfortunately, this is the main Domain Controller and the local account

setup is not used, rather, it's through the Active Directory on this DC.

What options do I have?

 

Oliver

"Meinolf Weber" wrote:

> Hello Oliver,

>

> Did you check the task scheduler logfile, it should state an error message/number.

>

> Best regards

>

> Meinolf Weber

> Disclaimer: This posting is provided "AS IS" with no warranties, and confers

> no rights.

> ** Please do NOT email, only reply to Newsgroups

> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

>

>

> > The following bat script (as a file.bat) which I put on a task

> > scheduler no longer works (W2K service pack 4).

> >

> > Shutdown.exe /L /R /T:120 /C

> >

> > How can I fix this? The shutdown has to work on each Saturday to

> > refresh the server memory.

> >

> > Also, as a related solution to the above problem, how I can get the

> > event viewer to email me an alert when it triggers certain ID code?

> >

> > Our main problem is that the server shutdowns expectedly and I suspect

> > it is the event viewer getting full. So I am hoping someone will have

> > the solutions.

> >

> > Oliver

> >

>

>

>

Guest Meinolf Weber
Posted

Re: Reboot command no longer works in Task Scheduler

 

Hello Oliver,

 

What kind of account do you use for the task, domain user or domain admin?

Did you grant the user rights assignment "Logon as a batch job" and "Backup

files and directories"?

 

Best regards

 

Meinolf Weber

Disclaimer: This posting is provided "AS IS" with no warranties, and confers

no rights.

** Please do NOT email, only reply to Newsgroups

** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

 

> Hi, yes this is the message.

>

> "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."

>

> Unfortunately, this is the main Domain Controller and the local

> account setup is not used, rather, it's through the Active Directory

> on this DC. What options do I have?

>

> Oliver

> "Meinolf Weber" wrote:

>> Hello Oliver,

>>

>> Did you check the task scheduler logfile, it should state an error

>> message/number.

>>

>> Best regards

>>

>> Meinolf Weber

>> Disclaimer: This posting is provided "AS IS" with no warranties, and

>> confers

>> no rights.

>> ** Please do NOT email, only reply to Newsgroups

>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

>>> The following bat script (as a file.bat) which I put on a task

>>> scheduler no longer works (W2K service pack 4).

>>>

>>> Shutdown.exe /L /R /T:120 /C

>>>

>>> How can I fix this? The shutdown has to work on each Saturday to

>>> refresh the server memory.

>>>

>>> Also, as a related solution to the above problem, how I can get the

>>> event viewer to email me an alert when it triggers certain ID code?

>>>

>>> Our main problem is that the server shutdowns expectedly and I

>>> suspect it is the event viewer getting full. So I am hoping someone

>>> will have the solutions.

>>>

>>> Oliver

>>>

Posted

Re: Reboot command no longer works in Task Scheduler

 

Hi, for the system log - I've changed this to overwriting events older than 7

days already. So I am hoping this will fix the problem. However, I want to

find out if there is a free faciliy from Microsoft where I can request for an

email notification if a certain ID is triggered. Example, on my Exchange

Server event viewer log file, if there are IDs such as 8250, 8026, 2102, then

I would like a program to notify me via email. Is there such a facility?

 

The reason for this is that when the domain controller shuts down

unexpectedly, all domain servers are affected, the Exchange Server event

viewer log file generates these ID codes. So if these happens, an email

alert will enable me to respond quickly. Does this make sense?

 

Oliver

 

 

"Dave Patrick" wrote:

> What is in the system log at the time machine restarts?

>

> Control Panel|Administrative Tools|Event Viewer|"file"|Action|Properties the

> default is to overwrite events older than 7 days and max log file size of

> 512 kbytes. You can change to "Overwrite Events as needed"

>

>

> "The shutdown has to work on each Saturday to refresh the server memory."

>

> It would be better to locate and fix the leaking process.

>

> Take a snapshot of Task Manager|Processes just after startup. Then check it

> again later to see what process is ballooning. Also take a look at Task

> Manager Processes|Mem Delta a consistently positive value usually indicates

> a memory leak.

>

> This tool may also help.

> http://www.microsoft.com/technet/sysinternals/Utilities/ProcessExplorer.mspx.

>

>

> --

>

> Regards,

>

> Dave Patrick ....Please no email replies - reply in newsgroup.

> Microsoft Certified Professional

> Microsoft MVP [Windows]

> http://www.microsoft.com/protect

>

>

> "Oliver" wrote:

> > The following bat script (as a file.bat) which I put on a task scheduler

> > no

> > longer works (W2K service pack 4).

> >

> > Shutdown.exe /L /R /T:120 /C

> >

> > How can I fix this? The shutdown has to work on each Saturday to refresh

> > the server memory.

> >

> > Also, as a related solution to the above problem, how I can get the event

> > viewer to email me an alert when it triggers certain ID code?

> >

> > Our main problem is that the server shutdowns expectedly and I suspect it

> > is

> > the event viewer getting full. So I am hoping someone will have the

> > solutions.

> >

> > Oliver

> >

> >

>

>

Posted

Re: Reboot command no longer works in Task Scheduler

 

Hi Meinolf,

 

It is a domain wide administrator account. I cannot setup a local admin

account because the server only allows Active Directory (from what I

understand).

If your 2nd question refers to a domain user, then I can tell you I am using

a domain wide admin or just domain admin account. So I need to find out a

bit more about Logon as a batch job.

 

Oliver

 

"Meinolf Weber" wrote:

> Hello Oliver,

>

> What kind of account do you use for the task, domain user or domain admin?

> Did you grant the user rights assignment "Logon as a batch job" and "Backup

> files and directories"?

>

> Best regards

>

> Meinolf Weber

> Disclaimer: This posting is provided "AS IS" with no warranties, and confers

> no rights.

> ** Please do NOT email, only reply to Newsgroups

> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

>

>

> > Hi, yes this is the message.

> >

> > "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."

> >

> > Unfortunately, this is the main Domain Controller and the local

> > account setup is not used, rather, it's through the Active Directory

> > on this DC. What options do I have?

> >

> > Oliver

> > "Meinolf Weber" wrote:

> >> Hello Oliver,

> >>

> >> Did you check the task scheduler logfile, it should state an error

> >> message/number.

> >>

> >> Best regards

> >>

> >> Meinolf Weber

> >> Disclaimer: This posting is provided "AS IS" with no warranties, and

> >> confers

> >> no rights.

> >> ** Please do NOT email, only reply to Newsgroups

> >> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

> >>> The following bat script (as a file.bat) which I put on a task

> >>> scheduler no longer works (W2K service pack 4).

> >>>

> >>> Shutdown.exe /L /R /T:120 /C

> >>>

> >>> How can I fix this? The shutdown has to work on each Saturday to

> >>> refresh the server memory.

> >>>

> >>> Also, as a related solution to the above problem, how I can get the

> >>> event viewer to email me an alert when it triggers certain ID code?

> >>>

> >>> Our main problem is that the server shutdowns expectedly and I

> >>> suspect it is the event viewer getting full. So I am hoping someone

> >>> will have the solutions.

> >>>

> >>> Oliver

> >>>

>

>

>

Guest Meinolf Weber
Posted

Re: Reboot command no longer works in Task Scheduler

 

Hello Oliver,

 

User rights assignment are set with a GPO located under Computer configuration,

windows settings, security settings,local policies.

 

Check there if the account, even the domain admin has the needed rights.

 

Best regards

 

Meinolf Weber

Disclaimer: This posting is provided "AS IS" with no warranties, and confers

no rights.

** Please do NOT email, only reply to Newsgroups

** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

 

> Hi Meinolf,

>

> It is a domain wide administrator account. I cannot setup a local

> admin

> account because the server only allows Active Directory (from what I

> understand).

> If your 2nd question refers to a domain user, then I can tell you I am

> using

> a domain wide admin or just domain admin account. So I need to find

> out a

> bit more about Logon as a batch job.

> Oliver

>

> "Meinolf Weber" wrote:

>

>> Hello Oliver,

>>

>> What kind of account do you use for the task, domain user or domain

>> admin? Did you grant the user rights assignment "Logon as a batch

>> job" and "Backup files and directories"?

>>

>> Best regards

>>

>> Meinolf Weber

>> Disclaimer: This posting is provided "AS IS" with no warranties, and

>> confers

>> no rights.

>> ** Please do NOT email, only reply to Newsgroups

>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

>>> Hi, yes this is the message.

>>>

>>> "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."

>>>

>>> Unfortunately, this is the main Domain Controller and the local

>>> account setup is not used, rather, it's through the Active Directory

>>> on this DC. What options do I have?

>>>

>>> Oliver

>>> "Meinolf Weber" wrote:

>>>> Hello Oliver,

>>>>

>>>> Did you check the task scheduler logfile, it should state an error

>>>> message/number.

>>>>

>>>> Best regards

>>>>

>>>> Meinolf Weber

>>>> Disclaimer: This posting is provided "AS IS" with no warranties,

>>>> and

>>>> confers

>>>> no rights.

>>>> ** Please do NOT email, only reply to Newsgroups

>>>> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

>>>>> The following bat script (as a file.bat) which I put on a task

>>>>> scheduler no longer works (W2K service pack 4).

>>>>>

>>>>> Shutdown.exe /L /R /T:120 /C

>>>>>

>>>>> How can I fix this? The shutdown has to work on each Saturday to

>>>>> refresh the server memory.

>>>>>

>>>>> Also, as a related solution to the above problem, how I can get

>>>>> the event viewer to email me an alert when it triggers certain ID

>>>>> code?

>>>>>

>>>>> Our main problem is that the server shutdowns expectedly and I

>>>>> suspect it is the event viewer getting full. So I am hoping

>>>>> someone will have the solutions.

>>>>>

>>>>> Oliver

>>>>>

Guest Dave Patrick
Posted

Re: Reboot command no longer works in Task Scheduler

 

What errors are present in the system log at the time machine reboots? Do

you have a handle on what process is memory leaking?

 

You can script it.

http://www.microsoft.com/technet/scriptcenter/resources/qanda/aug05/hey0816.mspx

 

Fixing the memory leak and blue screen stop error makes the best sense to

me.

 

 

 

--

 

Regards,

 

Dave Patrick ....Please no email replies - reply in newsgroup.

Microsoft Certified Professional

Microsoft MVP [Windows]

http://www.microsoft.com/protect

 

 

"Oliver" wrote:

> Hi, for the system log - I've changed this to overwriting events older

> than 7

> days already. So I am hoping this will fix the problem. However, I want

> to

> find out if there is a free faciliy from Microsoft where I can request for

> an

> email notification if a certain ID is triggered. Example, on my Exchange

> Server event viewer log file, if there are IDs such as 8250, 8026, 2102,

> then

> I would like a program to notify me via email. Is there such a facility?

>

> The reason for this is that when the domain controller shuts down

> unexpectedly, all domain servers are affected, the Exchange Server event

> viewer log file generates these ID codes. So if these happens, an email

> alert will enable me to respond quickly. Does this make sense?

>

> Oliver

>

>

> "Dave Patrick" wrote:

>

>> What is in the system log at the time machine restarts?

>>

>> Control Panel|Administrative Tools|Event Viewer|"file"|Action|Properties

>> the

>> default is to overwrite events older than 7 days and max log file size of

>> 512 kbytes. You can change to "Overwrite Events as needed"

>>

>>

>> "The shutdown has to work on each Saturday to refresh the server memory."

>>

>> It would be better to locate and fix the leaking process.

>>

>> Take a snapshot of Task Manager|Processes just after startup. Then check

>> it

>> again later to see what process is ballooning. Also take a look at Task

>> Manager Processes|Mem Delta a consistently positive value usually

>> indicates

>> a memory leak.

>>

>> This tool may also help.

>> http://www.microsoft.com/technet/sysinternals/Utilities/ProcessExplorer.mspx.

>>

>>

>> --

>>

>> Regards,

>>

>> Dave Patrick ....Please no email replies - reply in newsgroup.

>> Microsoft Certified Professional

>> Microsoft MVP [Windows]

>> http://www.microsoft.com/protect

>>

>>

>> "Oliver" wrote:

>> > The following bat script (as a file.bat) which I put on a task

>> > scheduler

>> > no

>> > longer works (W2K service pack 4).

>> >

>> > Shutdown.exe /L /R /T:120 /C

>> >

>> > How can I fix this? The shutdown has to work on each Saturday to

>> > refresh

>> > the server memory.

>> >

>> > Also, as a related solution to the above problem, how I can get the

>> > event

>> > viewer to email me an alert when it triggers certain ID code?

>> >

>> > Our main problem is that the server shutdowns expectedly and I suspect

>> > it

>> > is

>> > the event viewer getting full. So I am hoping someone will have the

>> > solutions.

>> >

>> > Oliver

>> >

>> >

>>

>>


×
×
  • Create New...