Jump to content

Schedule a script to run 15 Minutes after boot up?


Recommended Posts

Guest Jon Osborn
Posted

I am cross posting this to microsoft.public.windows.server.general as well.

 

 

 

Is their any way to put a delay that so that a Bat file will start about 15

minutes or so after boot up. May be in the bat file to do a count down or

loop for so long before the rest of the Bat run?

 

 

 

 

 

For some reason our DC (Win2003 R2 SP2) is dead for about 10 minutes after

boot, no errors or anything, just not responsive to console or services

(DHCP, DNS, etc ..) and it just works fine after about 10 minutes. The

problem this causes is after a power outage our APC turns the server back op

and a Wake-on-Lan BAT file runs and turns on all the other servers (10) but

they have no DC authenticate against which casues issues (exchange, SQL, and

other services do not start up). I currently have the bat starting with

windows scheduled tasks to run at boot up.

 

 

 

 

 

Thanks,

 

Jon

  • Replies 3
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: Schedule a script to run 15 Minutes after boot up?

 

 

"Jon Osborn" <josborn@pcsii.com> wrote in message

news:eAAgPeQaIHA.4172@TK2MSFTNGP02.phx.gbl...

>I am cross posting this to microsoft.public.windows.server.general as well.

>

> Is their any way to put a delay that so that a Bat file will start about

> 15 minutes or so after boot up. May be in the bat file to do a count down

> or loop for so long before the rest of the Bat run?

>

> For some reason our DC (Win2003 R2 SP2) is dead for about 10 minutes after

> boot, no errors or anything, just not responsive to console or services

> (DHCP, DNS, etc ..) and it just works fine after about 10 minutes. The

> problem this causes is after a power outage our APC turns the server back

> op and a Wake-on-Lan BAT file runs and turns on all the other servers (10)

> but they have no DC authenticate against which casues issues (exchange,

> SQL, and other services do not start up). I currently have the bat

> starting with windows scheduled tasks to run at boot up.

>

> Thanks,

>

> Jon

 

Make the first two lines of the batch file like so:

@echo off

ping localhost -n 900 > nul

Guest Don Wilwol
Posted

Re: Schedule a script to run 15 Minutes after boot up?

 

use sleep.exe from the resource kit. Call it and sleep your script for 15

minutes.

 

--

Hope it Helps.

 

dw

 

-------------------------------------------------------

Don Wilwol

http://www.atthedatacenter.com

 

 

"Jon Osborn" <josborn@pcsii.com> wrote in message

news:eAAgPeQaIHA.4172@TK2MSFTNGP02.phx.gbl...

>I am cross posting this to microsoft.public.windows.server.general as well.

>

>

>

> Is their any way to put a delay that so that a Bat file will start about

> 15 minutes or so after boot up. May be in the bat file to do a count down

> or loop for so long before the rest of the Bat run?

>

>

>

>

>

> For some reason our DC (Win2003 R2 SP2) is dead for about 10 minutes after

> boot, no errors or anything, just not responsive to console or services

> (DHCP, DNS, etc ..) and it just works fine after about 10 minutes. The

> problem this causes is after a power outage our APC turns the server back

> op and a Wake-on-Lan BAT file runs and turns on all the other servers (10)

> but they have no DC authenticate against which casues issues (exchange,

> SQL, and other services do not start up). I currently have the bat

> starting with windows scheduled tasks to run at boot up.

>

>

>

>

>

> Thanks,

>

> Jon

>

>

>

>

Guest Jon Osborn
Posted

Re: Schedule a script to run 15 Minutes after boot up?

 

Sleep.exe worked perfect.

 

Thanks,

Jon

 

 

"Don Wilwol" <donwilwol(remove)@yahoo.com> wrote in message

news:u4sv5kQaIHA.220@TK2MSFTNGP04.phx.gbl...

> use sleep.exe from the resource kit. Call it and sleep your script for 15

> minutes.

>

> --

> Hope it Helps.

>

> dw

>

> -------------------------------------------------------

> Don Wilwol

> http://www.atthedatacenter.com

>

>

> "Jon Osborn" <josborn@pcsii.com> wrote in message

> news:eAAgPeQaIHA.4172@TK2MSFTNGP02.phx.gbl...

>>I am cross posting this to microsoft.public.windows.server.general as

>>well.

>>

>>

>>

>> Is their any way to put a delay that so that a Bat file will start about

>> 15 minutes or so after boot up. May be in the bat file to do a count

>> down or loop for so long before the rest of the Bat run?

>>

>>

>>

>>

>>

>> For some reason our DC (Win2003 R2 SP2) is dead for about 10 minutes

>> after boot, no errors or anything, just not responsive to console or

>> services (DHCP, DNS, etc ..) and it just works fine after about 10

>> minutes. The problem this causes is after a power outage our APC turns

>> the server back op and a Wake-on-Lan BAT file runs and turns on all the

>> other servers (10) but they have no DC authenticate against which casues

>> issues (exchange, SQL, and other services do not start up). I currently

>> have the bat starting with windows scheduled tasks to run at boot up.

>>

>>

>>

>>

>>

>> Thanks,

>>

>> Jon

>>

>>

>>

>>

>

>


×
×
  • Create New...