A
$result = Invoke-Command -ComputerName $ToServer -ScriptBlock { (get-service MonAd).Status -eq "Stopped" }; if ($result) {exit} else {exit 1}Size: a a a
A
$result = Invoke-Command -ComputerName $ToServer -ScriptBlock { (get-service MonAd).Status -eq "Stopped" }; if ($result) {exit} else {exit 1}B
$result = Invoke-Command -ComputerName $ToServer -ScriptBlock { (get-service MonAd).Status -eq "Stopped" }; if ($result) {exit} else {exit 1}A
B
S
A
B
B
VB
VB
B
VB
VB
B
VB
VB
B
B
VB
VB