Jump to content

Win2003 scheduled shutdown


Recommended Posts

Guest Jason Huang
Posted

Hi,

 

In my Windows Server 2003, I used the Notepad to create a batch file as

shutdown -s

 

But when I tried that batch file, it just kept running line after line, no

shutdown happen!

What have I done wrong?

Thanks for help.

 

 

Jason

  • Replies 2
  • Created
  • Last Reply
Guest Patrick
Posted

Re: Win2003 scheduled shutdown

 

Hey Jason

 

Jason Huang wrote:

> Hi,

>

> In my Windows Server 2003, I used the Notepad to create a batch file as

> shutdown -s

 

Try the following:

"shutdown /s /d P:0:0"

 

As far as I know you have to provide the reason for a shutdown/restart

in form of a code.

Type "shutdown /?" in your command prompt and you will see all possible

options.

> But when I tried that batch file, it just kept running line after line, no

> shutdown happen!

> What have I done wrong?

> Thanks for help.

>

>

> Jason

 

Greets

Patrick

Guest shocker
Posted

RE: Win2003 scheduled shutdown

 

I had a similar problem scheduling a restart.

I not sure but I think some programs can prevent the shutdown/restart, so I

used the /f option to force programs to shutdown.

 

I hope it helps.

 

s.ali

 

"Jason Huang" wrote:

> Hi,

>

> In my Windows Server 2003, I used the Notepad to create a batch file as

> shutdown -s

>

> But when I tried that batch file, it just kept running line after line, no

> shutdown happen!

> What have I done wrong?

> Thanks for help.

>

>

> Jason

>

>

>


×
×
  • Create New...