Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Shutdown.exe ignoring command switches

Reply
 
Old 03-29-2007   #1 (permalink)
gusCubed


 
 

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.


My System SpecsSystem Spec
Old 03-29-2007   #2 (permalink)
Richard Urban


 
 

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


My System SpecsSystem Spec
Old 03-29-2007   #3 (permalink)
CJM


 
 

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


My System SpecsSystem Spec
Old 03-29-2007   #4 (permalink)
Jon


 
 

Re: Shutdown.exe ignoring command switches

"gusCubed" <james.prendergast@gmail.com> wrote in message
news:1175181365.462453.112850@y66g2000hsf.googlegroups.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

My System SpecsSystem Spec
Old 03-29-2007   #5 (permalink)
Craig


 
 

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
>



My System SpecsSystem Spec
Old 03-30-2007   #6 (permalink)
Ramesh, MS-MVP


 
 

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

My System SpecsSystem Spec
Old 04-08-2007   #7 (permalink)
gusCubed


 
 

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 fromthe 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.googlegroups.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.



My System SpecsSystem Spec
Old 04-08-2007   #8 (permalink)
Ramesh, MS-MVP


 
 

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


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Execute command line switches from vbs VB Script
Explorer Command Line Switches Vista General
Explorer Command Line Switches Vista file management
command line switches of windows mail on vista Vista mail
Application Command Line Switches PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46