I'm looking for a safe way to take a Custom Windows Service offline. My problem is that this custom service sometimes hangs during stop. The problem will be fixed, but in the meantime, killing the corresponding process would be necessary after a given delay. I also need a way to confirm that the process has stopped.
The goal is to prevent a failover to occur in this scenario.
Stop-ClusterResource cmdlet would be a start.
Any Help appreciated.