Welcome to MSDN Blogs Sign in | Join | Help

Joe Rodgers

Various posts on my daily findings with SharePoint 2003 and SharePoint 2007
Deploy a Scheduled Task to Shutdown a Server at a Sepecified Date & Time

schtasks /create /S servername /RU SYSTEM /TR "shutdown /s /t 60 /f /d p:0:0" /SD 10/02/2007 /ST 19:07:00 /SC ONCE /TN ADHOC-SHUTDOWN /Z /F

This will create a scheduled task on the remove server "servername" called "ADHOC-SHUTDOWN" that will run the command "shutdown /s /t 60 /f /d p:0:0" with the SYSTEM account on 10/02/2007 at 19:07 , Deletes the task if it is not scheduled to run again (/Z) and Forcefully creates the task and suppresses warnings if the specified task already exists. (/F).

Posted: Friday, September 21, 2007 11:51 AM by rodgerjt

Comments

No Comments

Anonymous comments are disabled
Page view tracker