Wait for service to invoke script block
May 11, 2012
I was recently required to create a wait for process to check if a particular service was running prior to invoking a number of cmdlets of the script block, which had a dependency on this service being in a ‘running’ state. This is relatively simple to achieve using the Do statement in a inverted loop to evaluate … More Wait for service to invoke script block