scheduled shutdown

G

Guest

I am trying to set up my computers to automatically shutdown at night. I am
trying to use the scheduled tasks to run the shutdown command with the -l
option. However the scheduled task will only run if the person currently
logged in is the one who set up the scheduled task.

Setting up this scheduled task for all the computer users is not really an
option. Does anyone know how to make the computer shutdown at a specific time
no matter who is logged on?
 
M

Mark L. Ferguson

A script running in the background could do it.

--timed_shutdown.vbs--
set shell=createobject("wscript.shell")
off_Time = TimeValue("10:00:00 PM")
while off_Time > Time
wscript.sleep "60000"
'sleeps for one minute
wend
shell.run "shutdown -f -s"
exit
--cut here--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top