How to stop automatic shutdown on windows XP

hi guys,
I have created a rule to execute shutdown.exe at 6 pm everyday on windows XP.
In case i am working during that time and want to cancel the process for that particular day....can a shortcut can be developed to halt the shutdown of pc?


******EDIT********
Thanks for the reply guys
what I need is as follows :
1. PC should shut-down at 6PM 'everyday' (using workaround from http://support.microsoft.com/kb/814761)
2. If user is using the pc...he should be able to abort the shut-down. any batch file or shortcut on desktop to cancel the same.
 
Last edited:
you can use "shutdown -t 60" to delay shutdown by 60 seconds in the rule... check shutdown /? for all the options.
 
@swapyworld, or you can use Chameleon Shutdown (freeware) , it has all the options of shutdown, restart, Hibernate with specific conditions and timer.....
Details
http://downloads.pcauthority.com.au/article/27231-chameleon_shutdown
Chameleon Shutdown is an interesting tool that gives you greater control over how and when your PC shuts down, restarts, hibernates and so on.

Initially the program looks a little, well, basic. It presents a simple interface with six buttons, and if you, say, click Shutdown > Right Now then the program will close down the PC for you. But that's just the start. Choose Shut Down > With Parameters, and things get much more interesting.

Would you like your PC to close in two hours, for instance? Just set the timer and click Start. Or maybe you'd prefer it to close down at a specific time? That's possible, too.

Of course if you're leaving your PC to complete some task then you may not know precisely when it's going to finish. But that's fine: Chameleon Shutdown can also wait until a particular program closes before it jumps into action. Or you might trigger the shutdown when your CPU usage drops below some defined period, or your PC has been idle for a certain amount of time.

If this isn't quite enough then you can even combine several conditions. And of course these don't just apply to shutting down a PC: you can also use the tool to restart or hibernate your system, send it to sleep, lock your PC or just log off.

When you're done, click the Start button and Chameleon Shutdown will minimise to the system tray, monitoring your system for the conditions you've specified. It's all very straightforward, and the program's also light on system resources, consuming less than 2MB RAM when running in the background on our test PC.
 
Last edited:
thanks for the reply guys.....i can't use freeware as i want to implement it in my office. what i need is as follows :
1. PC should shut-down at 6PM 'everyday' (using workaround from http://support.microsoft.com/kb/814761)
2. If user is using the pc...he should be able to abort the shut-down. any batch file or shortcut on desktop to cancel the same.
 
you can fiddle with some settings in Task Scheduler.
- if the user is supposed to leave at 5:30 then set it to run the task after 30 mins of idle time.
- run the task only if the system is locked. if the user doesn't lock the system before leaving then you can set it to lock it at 6 first.
 
you can fiddle with some settings in Task Scheduler.
- if the user is supposed to leave at 5:30 then set it to run the task after 30 mins of idle time.
- run the task only if the system is locked. if the user doesn't lock the system before leaving then you can set it to lock it at 6 first.
i did see those options mate but my requirement is little different, people don't leave exactly at a particular time.....that's why can't use them....because if they leave at 5.50pm then also it should execute...that's why !!
 
@swapyworld
If you can use VB Script then here is the code which works exactly for your purpose, save it to .vbs file and execute it or add it to your task scheduler. It will start the shutdown process as soon as executed and if you want to stop the process then you need to press the button, else it will shutdown automatically after 1 minute.
Code:
'source 1: http://www.computerperformance.co.uk/ezine/ezine45.htm
'source 2: http://www.wisesoft.co.uk/scripts/vbscript_shutdown_a_computer_2.aspx

Option Explicit
Dim objShell, intShutdown
Dim strShutdown, strAbort

' -s = shutdown, -t 60 = 1 minute, -f = force programs to close
strShutdown = "shutdown.exe -s -t 60 -f"
set objShell = CreateObject("WScript.Shell")
objShell.Run strShutdown, 0, false

'go to sleep so message box appears on top
WScript.Sleep 100

' Input Box to abort shutdown
intShutdown = (MsgBox("Computer will shutdown in 1 minute. Do you want to cancel computer shutdown?",vbYesNo+vbExclamation+vbApplicationModal,"Cancel Shutdown"))
If intShutdown = vbYes Then
' Abort Shutdown
strAbort = "shutdown.exe -a"
set objShell = CreateObject("WScript.Shell")
objShell.Run strAbort, 0, false
End if

Wscript.Quit

Credits:
http://community.spiceworks.com/topic/136533-vbscript-shutdown-assistance
 
thanks @paarkhi , but can not use vbs file as it won't run in a windows xp without vb files pre-installed which is not allowed.
That's the limitation i am facing. :(:banghead:
so looking for something where we can use resources within OS to perform the task.
i have scheduled the task which needs 'admin' privileges to run for shutting down the pc, only thing is to be able to cancel it if the user is present and using the system.
 
i did see those options mate but my requirement is little different, people don't leave exactly at a particular time.....that's why can't use them....because if they leave at 5.50pm then also it should execute...that's why !!

task scheduler alone can work. use some if-n-thens and some logic.
1) lock the computer at 6
2) if at 6:05 computer is idle for 4 mins and also locked then shut it down
3) repeat the shutdown procedure every 15 mins

if your computers are in client-server mode then the shutdown command can be pushed from the server. users will have the option to delay the procedure. group policy can also help but i don't know how.
 
Something similar to this not working for you? Adding this to a batch file and calling that from task scheduler?
Nope it is not....giving the delay not helping actually ...it flashes the cmd screen immediately (doesn't shut-down as i don't have admin privileges but that shows shut-down command being executed)
 
^to do anything like shuttindown a box, you will need privileges. you wont be able to do anything if you dont have them.
 
Does keeping a unsaved notepad help? At least you'll get a prompt and can cancel in time, some backgrounds apps will get closed though.
 
Does keeping a unsaved notepad help? At least you'll get a prompt and can cancel in time, some backgrounds apps will get closed though.
mate...actually i know only scheduling task...that's why need a help in coding the thing, that's where i am stuck :(
^to do anything like shuttindown a box, you will need privileges. you wont be able to do anything if you dont have them.
yeah man, i do know...i ll get it from our IT dept once i am through with this coding part...!!
it's like an initiative part on energy saving as many leave their PCs running all night long......so i need to submit the procedure to our IT dept along with code as what i want to do and then they ll implement it to all client PCs.
 
Back
Top