scheduled shutdown for win xp

F

Florian2901

I have a problem with windows xp pro. I would like to shutdown the
computer at a specific time (this works) but when no one is logged on
this wouldn't work because ether the screensaver is active or the
computer is standby. how can i stop those 2 and shutdown the computer.

to shutdown I used scheduled tasks --> shutdown.exe -s -t 0

I think that the problem is the default user
 
G

george

try adding the -f parameter.

Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx]
[-c "comment"] [-d up:xx:yy]

No args Display this message (same as -?)
-i Display GUI interface, must be the first
option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without
warning
-d [p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive
integer less than 256)
yy is the minor reason code (positive
integer less than 65536)
 
H

Homer J. Simpson

Florian2901 said:
I have a problem with windows xp pro. I would like to shutdown the
computer at a specific time (this works) but when no one is logged on
this wouldn't work because ether the screensaver is active or the
computer is standby. how can i stop those 2 and shutdown the computer.

to shutdown I used scheduled tasks --> shutdown.exe -s -t 0

I think that the problem is the default user

I believe the problem is that the task scheduler is a per-user thing, and
you can't assign "global", system-wide tasks with it (someone correct me if
I'm wrong)...thus, you can't define an event to occur when nobody's logged
on.

What you need will probably have to run in the context of a service.
 
F

florian2901

the shutdown bit works, even when im not logt-in.

but it doesn't work or works patchily when the system is in stand-by
mode or in screen saver mode.

then the task works (i have test this with a sound when the task is
started) but is stopped when the message is displayed "system is
shutting down" or something like this. And when you activate the
system (by moving your mouse for example) the system is shutdown.



Homer J. Simpson schreef:
 

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