Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to tell that a windows service is completely started using PowerShell script

$
0
0

Hi gurus,

I already have a running PowerShell script(s) to start and stop some services with a constant time delay between them in order to make sure not to start a service before the other (business wise)

The problem is that I need a "dynamic" way to determine if a service is "completely" started or not via script (not using Sleep xx)

Manually, I make sure it is completely started by watching the CPU consumption which raises to 100% for a few seconds, then comes back to normal.

I appreciate any suggestions.

thanks in advance.


TheScorpion


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>