Need Batch file that runs whenever Windows XP is closed down

  • Thread starter Thread starter Don J
  • Start date Start date
D

Don J

I need a Batch File that runs everytime Windows XP shuts down. I've
already got the file. It runs every time Windows starts. It automartically
runs at startup because I've placed it in the 'Startup' folder on the Start
Menu. I would like to find an analogous way of also running the same file
at shutdown. I am using Windows XP Home edition. I am aware of a method of
running the file at Shutdown under Windows XP Professional.

How do I run this file at Shutdown on Windows XP Home edition?

Don J

---------------------------------------------------------------------------------
 
Don,

Whether it's a shutdown or logoff script, all gpedit.msc does is write an
entry to the registry. The key for shutdown scripts is:

HKLM\Software\Microsoft\Windows\CurrentVersion\Group
Policy\State\Machine\Scripts...

Adding a script adds multiple keys below that path. You should try adding a
script using gpedit and examine the changes. It shouldn't be too hard to
then create custom .reg (Or, better yet, WSH scripts using RegWrite) to add
shutdown scripts.

More info:
GPEDIT.MSC - Run in Start > Run
Locatio:
Computer Configuration | Windows Settings | Scripts | Shutdown
 

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

Back
Top