Tech Support > Microsoft Windows > Schedule task at shutdown
Schedule task at shutdown
Posted by Jarryd on February 7th, 2008


Hi,

Is this possible? I want to run a script when I user shutsdown their XP
machine.

TIA,

Jarryd


Posted by Pegasus \(MVP\) on February 7th, 2008



"Jarryd" <jarryd@community.nospam> wrote in message
news:emMwueWaIHA.5088@TK2MSFTNGP06.phx.gbl...
You can do it via a policy:
Run GPEDIT.MSC, then open up
- Local Computer Policy
- Computer Configuration
- Windows Settings
- Scripts (Startup / Shutdown)



Posted by Hashi on March 21st, 2008


"Pegasus (MVP)" wrote:
But on XP Home system computers?
I know about shutdown command and shortcuts from this, but i want do this
like XP Pro - run script, when user press "Turn Off" button.

Posted by Hashi on March 21st, 2008


"Pegasus (MVP)" wrote:
Why Scheduled Tasks job's have options only at starting up or logon, but not
at logoff or shutdown?
Is it to hard add this possibility or why this like action needed be do only
thru policy's?
Is it shutdown procedure more dangerous then startup process?
I see, i am not only, who want to run some nessesary procedures before i
turn off my computer.
For example copy added or changed important data automatically to network
disk etc.
Backup utility can also schedule only at startup or login, but not at
shutdown.
I know about possibilities to write batches with shutdown commands and
making shortcuts for them,
but why i must do it so difficulty? XP Home system to have this kind
possibilities, but somehow
is it maked so complicated.
Why? Can somebody explain it to me, please!


Posted by Holz on March 21st, 2008


On Fri, 21 Mar 2008 16:10:02 -0700
Hashi <Hashi@discussions.microsoft.com> wrote:

Create a batch file with the task you want, and place this line in the
end
shutdown -f -s
you could also do it via group policy.

--
Live & let live, or leave.
:-)


Posted by Hashi on April 6th, 2008


"Holz" wrote:
[cut...]
Tanks for answer, but i already write about my skills with policy's and
commands.
I can use them, but i need do it in XP Home equipped systems and users may at
busy time forget click to shortcut button. Shutting down computer they usually
don't forget and nessessary procedure running is guaranteed.

I am pretty sure, that it's easy to bind user wanted scripts with any other
processes.

For example the Shotdown process with Windows updates
(http://www.scotsnewsletter.com/art/5..._shutdown.jpg). With a note
and choice to install updates or not to install. It proves that there's a way
to make your own scripts.

So there should be a kind of script or registry change in the system
and after the changes it will be deleted. I suspect that there's
an undocumented program or some already existing program's key that you
can use to access and control the Shutdown process.

There are a lot of users who would like to make changes during Shutdown
process.
It would be extreamly useful when MS engineers could work it out and add it
to Scheduled Tasks. It should not take a lot of resources because it would be
like reversed Start-Up process.

It must be ensured that user added scripts or modified processes are finished
before system closes network services and recources. It's also secure
and other users can't use it for bad purpose because Scheduled Tasks
needs user permission to run.

That kind of new option would be more easier to operate with than some
special programs,
scripts or policies.

I am sure that a lot of users would be very grateful for described
possibility.


Similar Posts