Try to change these lines: $status = @{ "ServerName" = $IPAddress.Hostname; "TimeStamp" = (Get-Date -f s); "Results"="" } ... .... (Test-Connection -IPAddress $IPAddress.ipaddress -Count 2 -ea 0 -quiet) ... ..
。