运维狗 windows ping 带时间 2023年9月5日 霜月 留下评论 windows powershell 执行: ping.exe -t 202.96.209.5 |Foreach{“{0} – {1}” -f (Get-Date),$_} ping.exe -t 192.168.0.254 | Foreach {“{0} – {1}” -f (Get-Date), $_} | Tee-Object -FilePath “D:\ping_log.txt”