Ping a server and get results:
***************
$ping = new-object System.Net.Networkinformation.Ping
$result = $ping.send("ServerName")
write-host $result.status
***************
Or
***************
$ip =”ServerName”
$qry = ('select statuscode from win32_pingstatus where address="' + $ip + '"')
$rslt = gwmi –query “$qry”
if ($rslt.StatusCode –eq 0) {
write-host “ping worked” -BackgroundColor "Green"
}
else {
write-host “ping failed” -BackgroundColor "Red"
}
***************
Power BI, Parallelism And Dependencies Between SQL Queries In DirectQuery
Mode
-
This is going to sound strange, but one of the things I like about tuning
Power BI DirectQuery semantic models is that their generally-slower
performance a...
4 days ago
No comments:
Post a Comment