HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows Vista

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 03-29-2007, 10:59 PM
gusCubed
 
Posts: n/a
Default Shutdown.exe ignoring command switches

Recently purchased a BenQ Joybook Rv55 with Vista Business installed.

I used to schedule system shutdown using the command prompt and
desktop shortcuts on my old XP SP2 machine:
eg.
shutdown.exe /s /t 1200

When I try to do this from the command prompt in Vista, I get the
shutdown.exe help text displaying after the prompt - almost as if it
is ignoring the arguments/switches.

I have tried arguments in both '-x' and '/x' formats and all
combinations but to no avail. I've even tried turning off UAC. Has
anyone else experienced a similar problem?

Ta in advance.

Reply With Quote
Sponsored Links
  #2  
Old 03-29-2007, 10:59 PM
Richard Urban
 
Posts: n/a
Default Re: Shutdown.exe ignoring command switches

600 seconds is the maximum allowed

Look at shutdown /? and read about the switches

--


Regards,

Richard Urban MVP
Microsoft Windows Shell/User


"gusCubed" <james.prendergast@gmail.com> wrote in message
news:1175181365.462453.112850@y66g2000hsf.googlegr oups.com...
> Recently purchased a BenQ Joybook Rv55 with Vista Business installed.
>
> I used to schedule system shutdown using the command prompt and
> desktop shortcuts on my old XP SP2 machine:
> eg.
> shutdown.exe /s /t 1200
>
> When I try to do this from the command prompt in Vista, I get the
> shutdown.exe help text displaying after the prompt - almost as if it
> is ignoring the arguments/switches.
>
> I have tried arguments in both '-x' and '/x' formats and all
> combinations but to no avail. I've even tried turning off UAC. Has
> anyone else experienced a similar problem?
>
> Ta in advance.
>


Reply With Quote
  #3  
Old 03-29-2007, 10:59 PM
Jon
 
Posts: n/a
Default Re: Shutdown.exe ignoring command switches

"gusCubed" <james.prendergast@gmail.com> wrote in message
news:1175181365.462453.112850@y66g2000hsf.googlegr oups.com...
> Recently purchased a BenQ Joybook Rv55 with Vista Business installed.
>
> I used to schedule system shutdown using the command prompt and
> desktop shortcuts on my old XP SP2 machine:
> eg.
> shutdown.exe /s /t 1200
>
> When I try to do this from the command prompt in Vista, I get the
> shutdown.exe help text displaying after the prompt - almost as if it
> is ignoring the arguments/switches.
>
> I have tried arguments in both '-x' and '/x' formats and all
> combinations but to no avail. I've even tried turning off UAC. Has
> anyone else experienced a similar problem?
>
> Ta in advance.
>



The valid range for the /t switch is 0-600.

shutdown /?

--
Jon

Reply With Quote
  #4  
Old 03-29-2007, 10:59 PM
CJM
 
Posts: n/a
Default Re: Shutdown.exe ignoring command switches


"Richard Urban" <richardurbanREMOVETHIS@hotmail.com> wrote in message
news:uD3QfihcHHA.2332@TK2MSFTNGP04.phx.gbl...
> 600 seconds is the maximum allowed
>
> Look at shutdown /? and read about the switches
>


This really p*sses me off.

I used to leave my PC ripping DVDs/running Backups/other processing and I
would set the machine to shutdown in 2 or 3 hours. Suddenly with Vista we
are back to 10 mins... what gives?

To the OP - I now use a freebie called PowerOff. It ought to be unnecessary,
but there you go...

CJM


Reply With Quote
  #5  
Old 03-29-2007, 10:59 PM
Craig
 
Posts: n/a
Default Re: Shutdown.exe ignoring command switches

Hi there,

I believe the 10 minute setting is from the time it initiates the shutdown.
You could set up a scheduled task to kick it in after your burning was to be
done i.e. allow an hour maybe)

Just a thought.

Cheers,
Craig

"CJM" <cjmnews04@newsgroup.nospam> wrote in message
news:%239sMD5hcHHA.4864@TK2MSFTNGP05.phx.gbl...
>
> "Richard Urban" <richardurbanREMOVETHIS@hotmail.com> wrote in message
> news:uD3QfihcHHA.2332@TK2MSFTNGP04.phx.gbl...
>> 600 seconds is the maximum allowed
>>
>> Look at shutdown /? and read about the switches
>>

>
> This really p*sses me off.
>
> I used to leave my PC ripping DVDs/running Backups/other processing and I
> would set the machine to shutdown in 2 or 3 hours. Suddenly with Vista we
> are back to 10 mins... what gives?
>
> To the OP - I now use a freebie called PowerOff. It ought to be
> unnecessary, but there you go...
>
> CJM
>



Reply With Quote
  #6  
Old 03-30-2007, 11:58 AM
Ramesh, MS-MVP
 
Posts: n/a
Default Re: Shutdown.exe ignoring command switches

As others said, 600 seconds is the max allowed value for Shutdown.exe timeout in Windows Vista. Although I don't know why this time-out range was reduced in Vista, but here is a small script that I came up with, which can help you set the time-out period to >600 seconds.

http://www.winhelponline.com/scripts/shutdown.vbs

Download and save to a folder of your choice. To schedule a shutdown, double-click the script and enter the time-out period (in seconds). It works this way:

If the time-out value is exceeds 600 seconds, the script sleeps for the exceeded value (timeout value - 600 seconds) and then schedules a shutdown with 600 seconds as the timeout.

Note that you can accomplish the same thing using the sleep.exe tool from the Windows 2000/2003 Resource Kit Tools, and using them in a Batch file.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


"gusCubed" <james.prendergast@gmail.com> wrote in message news:1175181365.462453.112850@y66g2000hsf.googlegr oups.com...
Recently purchased a BenQ Joybook Rv55 with Vista Business installed.

I used to schedule system shutdown using the command prompt and
desktop shortcuts on my old XP SP2 machine:
eg.
shutdown.exe /s /t 1200

When I try to do this from the command prompt in Vista, I get the
shutdown.exe help text displaying after the prompt - almost as if it
is ignoring the arguments/switches.

I have tried arguments in both '-x' and '/x' formats and all
combinations but to no avail. I've even tried turning off UAC. Has
anyone else experienced a similar problem?

Ta in advance.

Reply With Quote
  #7  
Old 04-08-2007, 05:00 PM
gusCubed
 
Posts: n/a
Default Re: Shutdown.exe ignoring command switches

Thanks Ramesh, your script does the job. Thanks also to everyone else
who answered my original query.
I have to confess I didn't try setting the timeout period to less than
600 seconds, I thought it may have been been a permissions issue.



On Mar 30, 2:26 pm, "Ramesh, MS-MVP" <ram...@XOX.mvps.org> wrote:
> As others said, 600 seconds is the max allowed value for Shutdown.exe timeout in Windows Vista. Although I don't know why this time-out range was reduced in Vista, but here is a small script that I came up with, which can help you set the time-out period to >600 seconds.
>
> http://www.winhelponline.com/scripts/shutdown.vbs
>
> Download and save to a folder of your choice. To schedule a shutdown, double-click the script and enter the time-out period (in seconds). It works this way:
>
> If the time-out value is exceeds 600 seconds, the script sleeps for the exceeded value (timeout value - 600 seconds) and then schedules a shutdown with 600 seconds as the timeout.
>
> Note that you can accomplish the same thing using the sleep.exe tool from the Windows 2000/2003 Resource Kit Tools, and using them in a Batch file.
>
> --
> Regards,
>
> Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
> Windows® Troubleshootinghttp://www.winhelponline.com
>
> "gusCubed" <james.prenderg...@gmail.com> wrote in messagenews:1175181365.462453.112850@y66g2000hsf.g ooglegroups.com...
>
> Recently purchased a BenQ Joybook Rv55 with Vista Business installed.
>
> I used to schedule system shutdown using the command prompt and
> desktop shortcuts on my old XP SP2 machine:
> eg.
> shutdown.exe /s /t 1200
>
> When I try to do this from the command prompt in Vista, I get the
> shutdown.exe help text displaying after the prompt - almost as if it
> is ignoring the arguments/switches.
>
> I have tried arguments in both '-x' and '/x' formats and all
> combinations but to no avail. I've even tried turning off UAC. Has
> anyone else experienced a similar problem?
>
> Ta in advance.



Reply With Quote
  #8  
Old 04-08-2007, 07:06 PM
Ramesh, MS-MVP
 
Posts: n/a
Default Re: Shutdown.exe ignoring command switches

Thanks for updating this thread, gusCubed.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


"gusCubed" <james.prendergast@gmail.com> wrote in message news:1176046422.522354.235220@w1g2000hsg.googlegro ups.com...
Thanks Ramesh, your script does the job. Thanks also to everyone else
who answered my original query.
I have to confess I didn't try setting the timeout period to less than
600 seconds, I thought it may have been been a permissions issue.



On Mar 30, 2:26 pm, "Ramesh, MS-MVP" <ram...@XOX.mvps.org> wrote:
> As others said, 600 seconds is the max allowed value for Shutdown.exe timeout in Windows Vista. Although I don't know why this time-out range was reduced in Vista, but here is a small script that I came up with, which can help you set the time-out period to >600 seconds.
>
> http://www.winhelponline.com/scripts/shutdown.vbs
>
> Download and save to a folder of your choice. To schedule a shutdown, double-click the script and enter the time-out period (in seconds). It works this way:
>
> If the time-out value is exceeds 600 seconds, the script sleeps for the exceeded value (timeout value - 600 seconds) and then schedules a shutdown with 600 seconds as the timeout.
>
> Note that you can accomplish the same thing using the sleep.exe tool from the Windows 2000/2003 Resource Kit Tools, and using them in a Batch file.
>
> --
> Regards,
>
> Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
> Windows® Troubleshootinghttp://www.winhelponline.com


Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes



All times are GMT. The time now is 08:52 PM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger