scheduled shutdown
WinXPTalk.com Forum Index WinXPTalk.com
Forums for Windows XP users.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winxptalk.com
scheduled shutdown

 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> New XP Users
Author Message
mert
Guest





Posted: Tue Dec 21, 2004 12:37 am    Post subject: scheduled shutdown Reply with quote

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?
--
Mert
Back to top
Mark L. Ferguson
Guest





Posted: Tue Dec 21, 2004 1:43 am    Post subject: Re: scheduled shutdown Reply with quote

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--

--

Mark L. Ferguson (NOT an MS-MVP)
marfers notes for windows xp
http://www.geocities.com/marfer_mvp/chatNotes.htm
..
"mert" <mert@discussions.microsoft.com> wrote in message
news:1FBB2570-D254-40C7-A577-216C0FE4657F@microsoft.com...
Quote:
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?
--
Mert
Back to top
 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> New XP Users All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Office Forums Access Forums Windows Server Exchange Server Help
New Topics Powered by phpBB