Cancel Shutdown via Script?

  • Thread starter Thread starter JM
  • Start date Start date
J

JM

I have a service that must be stopped using it's own command line
interpreter. If Windows asks the service to stop, the service aborts
abnormally and causes database corruption. I plan to use the Group Policy
Shutdown Script to invoke the service shutdown script; easy enough.

The problem is that the service (Hyperion Essbase OLAP Server) will
occasionally respond that it can't stop right now because something really
important is happening, like a defrag or a calculation.

In this case, I want to abort the shutdown/restart.

I can handle coding the logic to stop the service and check it's state, I'm
just having a problem with aborting the shutdown.

Thanks!!!!
 
I have a service that must be stopped using it's own command line
interpreter. If Windows asks the service to stop, the service aborts
abnormally and causes database corruption. I plan to use the Group Policy
Shutdown Script to invoke the service shutdown script; easy enough.

The problem is that the service (Hyperion Essbase OLAP Server) will
occasionally respond that it can't stop right now because something really
important is happening, like a defrag or a calculation.

In this case, I want to abort the shutdown/restart.

I can handle coding the logic to stop the service and check it's state, I'm
just having a problem with aborting the shutdown.

Thanks!!!!
I have no idea, but you can create your own shutdown that starts
with your service shutdown and if it is ok, then invokes shutdown.exe or psshutdown, tip 4086 in the 'Tips & Tricks' at http://www.jsiinc.com


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
Back
Top