PowerShell: Function to Wait for Service to Be Back Online (After Server Reboots)
Function waitForService{ $testSucceeded=(Test-NetConnection $server -port $port).TcpTestSucceeded $null=Set-PSBreakpoint -Variable rightNow -Mode Read -Action { $global:testSucceeded =…
2 Comments