Guest Jason Huang Posted November 9, 2007 Posted November 9, 2007 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
Guest Patrick Posted November 9, 2007 Posted November 9, 2007 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 November 10, 2007 Posted November 10, 2007 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 > > >
Recommended Posts