Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Shutdonw /t 600 limit

Reply
Thread Tools Display Modes

Shutdonw /t 600 limit

 
 
Bildos
Guest
Posts: n/a

 
      10-02-2007
Hello,

How can I schedule shutdown my Vista with time more than 600 second ?

In XP there wasn't problem. In vista SHUTDOWN.exe /t is limited to 600
second
Any ideas ?


Redgards
Bildos

 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      10-03-2007
"Bildos" <> wrote ...
> How can I schedule shutdown my Vista with time more than 600 second ?


Hi Bildos

Two possible approaches:

1) run shutdown.exe as a scheduled task. Use the "schtasks" command to
create the task from the command line:

C:\>schtasks /create /tn "My Long Shutdown" /tr
"C:\Windows\System32\shutdown.exe /s /f" /sc once /sd 03/10/2007 /st 16:02
/F /Z

.... will run shutdown.exe at 16:02 on 02 October 2007 (schtasks uses the
time and date formats for your configured region. For example, if you were
configured for the US, you would write 10/03/2007 instead). You can leave
out the "/sd 03/10/2007" parameter, and schtasks will default to the current
date:

C:\>schtasks /create /tn "My Long Shutdown" /tr
"C:\Windows\System32\shutdown.exe /s /f" /sc once /st 16:02 /F /Z

Put the command line in a batch file, to make it easier to run on a regular
basis:

C:\>MyShutdn.cmd 16:02

The main downside to this approach is the shutdown time is specified as an
absolute time (eg, 16:02) not a time relative to now (eg, in 700 seconds).


2) Call the WMI Win32Shutdown method in a VBScript. This method will
shutdown the computer immediately. But it will be trivial to add a couple of
lines to the script, to wait until the desired time, before calling the
method.

You'll find a description of Win32Shutdown here:
http://msdn2.microsoft.com/en-us/library/aa394058.aspx

and a sample script to shutdown immediately, here:
http://msdn2.microsoft.com/en-us/library/aa394591.aspx

Modifying this script to wait a certain number of seconds before calling
Win32Shutdown , is left as an exercise for the reader :-) But it should be
easy.


There are probably several other techniques as well. Hope it helps,
--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tab # limit in IE7? Daniel Windows Vista Performance 0 01-26-2008 09:23 PM
The 130 gig limit Ralphie Windows Vista General Discussion 8 10-28-2007 05:16 PM
4GB limit or 3GB? David Lozzi Windows Vista General Discussion 15 10-09-2007 01:12 PM
Time Limit? Flagreen Windows Vista Installation 11 02-13-2007 01:55 AM
Connection Limit? James Windows Vista General Discussion 1 01-30-2007 03:30 PM



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 47 48 49 50 51 52 53 54 55 56 57 58 59