How is this related to *Services* being up or down?
PS: It can be scripted in $COM