How do I return a boolean value and TestConnectionCommand+PingStatus when using Test-Connection in PowerShell?

前端 未结 0 1870
悲&欢浪女
悲&欢浪女 2021-02-08 07:19

$success = Test-Connection -Ping -IPV4 -Count 4 -TimeoutSeconds 3 -TargetName $ip This code return the TestConnectionCommand+PingStatus while,

$success

相关标签:
回答
  • 消灭零回复
提交回复
热议问题