POWERSHELL PING CMD with date and time
CMD to run with date for PING CMD
ping.exe -t COMPUTER-NAME | Foreach{"{0} - {1}" -f (Get-Date),$_}
ping.exe -t COMPUTER-NAME | Foreach{"{0} - {1}" -f (Get-Date),$_} >FILE-NAME.TXT
ping.exe -t COMPUTER-NAME | Foreach{"{0} - {1}" -f (Get-Date),$_}
ping.exe -t COMPUTER-NAME | Foreach{"{0} - {1}" -f (Get-Date),$_} >FILE-NAME.TXT
Comments
Post a Comment