我一直在为我的工作在PowerShell中编写脚本/模块,但似乎找不到在哪里/输入什么来使ping结果显示为绿色(如果成功)和红色(如果它们超时)。BreakoutIP = $currentStore[2] } # end foreach
# Store found, lets pingWrite-Host "Checking status for store $StoreID using <
round trip times in milli-seconds:然而,Powershell$ping" -ForegroundColor Green结果:这种工作,但只有第一行是缩进.剩下的输出不是..。" $ping" -ForegroundColor Green
Write-Host ""
我想通过powershell cmd将连续的want操作直接发送到Text_Site。我有一个Text_Site和一个文本框,你把网站,PING作为一个按钮和Text_Status的地方,它应该显示的结果。Some possible causes for this problem include: .NET Framework is missing PowerShell must be launchedwith PowerShell -sta, invalid XAML code was encounte
通常,当对服务器IP地址执行pinging操作时,我们会得到以下结果:Reply from <ip> : bytes151 TTL=121Reply from <ip> : bytes=32 time=151 TTL=121
PingMinimum = 151ms, Maximum = 151 ms, Average = 151 m