I use a batch file and PSSHUTDOWN.EXE to so a "reboot in 1 minute" (I also use 
this .BAT to reboot an XP desktop I'm RDP'd to...)
David Lum // SYSTEMS ENGINEER
NORTHWEST EVALUATION ASSOCIATION
(Desk) 971.222.1025 // (Cell) 503.267.9764
From: its.mike [mailto:[email protected]]
Sent: Friday, January 16, 2009 11:35 AM
To: NT System Admin Issues
Subject: RE: Schedule Job with AT

2k reskit has "soon"   ...  
http://www.microsoft.com/downloads/details.aspx?FamilyID=ca8191e6-9eef-4975-b51c-8d670748ca8e&displaylang=en&Hash=y9NCNQ5D5sTI41Afg3BRuQu6fHl7NZtSiA6mxlRloCaECOMKkz5t5E7gkX4OYzSTLvbkQg4jEVLa5JYFdDIHoA%3d%3d

(ugh what a url... or just google:   soon site:microsoft.com )
-----------------------------------
SOON  :  Command Scheduling Utility
-----------------------------------

Usage : SOON [\\computername] [delay] [/INTERACTIVE] "command"
   or : SOON /D [/L:n] [/R:n] [/I:{ON|OFF}]

delay : the number of seconds from now when the scheduled job should start.

   /D : modify Default settings and/or display their current values.
   /L : set LocalDelay - default delay for Local jobs - initially 5 seconds.
   /R : set RemoteDelay - default delay for Remote jobs - initially 15 seconds.
   /I : set InteractiveAlways option - initially OFF.

SOON schedules a job to run in the near future, a number of seconds from now.
SOON closely resembles the AT command because SOON simply runs a suitable AT
command. For a details of the other arguments run "AT /?" without the quotes.

Examples : SOON CMD /C C:\JOBS\BATCH.CMD
           SOON 10 CMD /C C:\JOBS\BATCH.CMD
           SOON \\SERVER 60 /C \JOBS\BATCH.CMD
           SOON \\SERVER /INTERACTIVE CMD /C C:\JOBS\BATCH.CMD
           SOON /d /l:2 /r:30 /i:on

Current Settings :     InteractiveAlways = OFF
                    LocalDelay (seconds) = 5
                   RemoteDelay (seconds) = 15

From: Joseph L. Casale [mailto:[email protected]]
Sent: Friday, January 16, 2009 11:17 am
To: NT System Admin Issues
Subject: RE: Schedule Job with AT

Thought of that, and seeing as its actually a VB script its doable. I think 
Win32_ScheduledJob Class has an applicable input form, now I just have to write 
the VB code to get the time, and add 1 minute. then execute the statement. I 
don't use VB enough, so this should take all day :)

jlc

From: David L Herrick [mailto:[email protected]]
Sent: Friday, January 16, 2009 12:10 PM
To: NT System Admin Issues
Subject: RE: Schedule Job with AT

Can't your script get current time, add 1 minute and use that as the scheduled 
time?

From: Joseph L. Casale [mailto:[email protected]]
Sent: Friday, January 16, 2009 10:58 AM
To: NT System Admin Issues
Subject: Schedule Job with AT

Anyone know if it's possible to schedule a job with AT in "1 minute from now"?
I want to make a script and need to shutdown this way as opposed to simply 
shutting down with shutdown.exe and a time.

Thanks!
jlc






This email and any attached files are confidential and intended solely for the 
intended recipient(s). If you are not the named recipient you should not read, 
distribute, copy or alter this email. Any views or opinions expressed in this 
email are those of the author and do not represent those of  Names in the News. 
Warning: Although precautions have been taken to make sure no viruses are 
present in this email, the company cannot accept responsibility for any loss or 
damage that arise from the use of this email or attachments.
















~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to