scheduled shutdown

  • Thread starter Thread starter james
  • Start date Start date
J

james

I was wondering if there is a simple way to have my
computer shutdown on its own at a certain time each day?
I would need it to shutdown 1 program(media player) and
then shutdown windows. Any suggestions? Thanks
 
James,

Use Task Scheduler to schedule the computer to shut down and restart at a
specific time. To do so, follow these steps:

01. Click Start, and then click Control Panel.
02. Click Performance and Maintenance, and then click Scheduled Tasks.
03. Double-click Add Scheduled Task. The Scheduled Task Wizard starts.
04. Click Next.
05. Under Click the program you want Windows to run, click Browse.
06. In the Select Program to Schedule dialog box, locate the
%SystemRoot%\System32 folder, locate and click the Shutdown.exe file, and
then click Open.
07. Under Perform this task, specify a name for the task and how frequently
you want this task to run, and then click Next.
08. Under Select the time and day you want this task to start, specify a
start time and date for the task, and then click Next.
09. Type the user name and password to run this task under, and then click
Next.
10. Click to select the Open advanced properties for this task when I click
Finish check box, and then click Finish.
11. Click the Task tab.
12. In the Run box, specify any additional parameters that you want to use
with Shutdown.exe.
13. Click OK.

NOTE: For exact parameters for shutdown.exe, open a DOS window and type
"shutdown.exe /?"

Also, see MVP Doug Knox's recommendation:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=e2AU5bDf
DHA.3896%40tk2msftngp13.phx.gbl&rnum=1&prev=/groups%3Fq%3Dshutdown.exe%2Bsra
mesh2k%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3De2AU5bDfDHA.3896
%2540tk2msftngp13.phx.gbl%26rnum%3D1
 
Use the following WMI Script. Copy and paste all 5 lines into a Notepad
file and save it with a VBS extension:

WMIQuery = "select * from Win32_OperatingSystem where Primary=true"
Set OpSysSet =
GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery(WMIQuery)
for each OpSys in OpSysSet
OpSys.Shutdown()
next


Note: the second line goes from Set OpSysSet to (WMIQuery), in case it
wraps. Then create a scheduled task to run the script.
 
Back
Top