How can a run a script to gracefully shutdown a service before Windows does?

D

denouement23

Hello,

We am trying to force a W2K server to run a user defined script at
each shutdown. This script will gracefully shutdown some of our third
party services before the OS shuts down. We found some GPO objects
and tested them but did not get the desired results:

Computer Configuration - Windows Settings - Scripts (Startup/Shutdown)
does execute the script, but it shuts down all services (or at least
the services which we're working around in the script) before it
executes the script - so when the script runs trying to shut down the
services gracefully, there's already nothing to work on.

User Configuration - Windows Settings - Scripts (Logon/Logoff) does
execute the script and shuts down components correctly, but does it at
each log-off - so when anyone logs on to production machine and then
logs off, the services get shutdown and that is not what we want.

Any ideas how can we force Windows to run our script first?

Thanks in advance!
 
J

Joe Richards [MVP]

Services should be getting teh shutdown messages on their own and processing the shutdown automatically.

The exceptions would be programs that aren't really services that say run in a log on session or apps that are being
hacked into being services by using srvany or one of the other crutch apps.
 
D

denouement23

Joe Richards said:
Services should be getting teh shutdown messages on their own and processing the shutdown automatically.

The exceptions would be programs that aren't really services that say run in a log on session or apps that are being
hacked into being services by using srvany or one of the other crutch apps.

In this case, it is a third party program that has many facets that
need to be gracefully shut down before the OS is shut down.
 

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