Jump to content

Running scripts during shutdown


Recommended Posts

Posted

Hi everyone,

Is it possible to run a script before windows XP shutdowns and I am not refering to shutdown scripts.

For example, when a user clicks Start > Shutdown in Windows, the system should run a script and then shutdown. I think it has to do something with group policies.

So far, most How To... only show me how to write the script and leave it on the desktop. User's would have to click on this script on the desktop to shutdown - I cannot use this method.

Thank you.

Best wishes


Posted

yes it is possible if you are on windows xp pro you have to use gpedit.msc here is ah little guide:

start manu > run

type in run gpedit.msc

under computer configuration > windows Settings > Scripts (startup/shutdown)

and over to your right you'll see Shutdown duble click that

click Add > click browse for example: shutdown scrips.bat

then click ok

click ok again

close out of gpedit.msc

you can shutdown now if you want

you are done ;)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...