Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Test-Connection timestamp

$
0
0
I pieced together this powershell command:
 
test-connection dwdmadwsa137 -count 2 -delay 60 | select __SERVER, Address, ProtocolAddress, ResponseTime | out-file c:\temp\test-connection.txt -append
 
 
 
It produces this outpout:
 
__SERVER          Address       ProtocolAddress            ResponseTime
--------           -------         ---------------                  ------------
ITCHY-P1          wsa137        111.111.111.148                       1
ITCHY-P1          wsa137        111.111.111.148                       1
 
 
What I need to do is add a time stamp.
 
 
TimeStamp                    __SERVER    Address    ProtocolAddress    ResponseTime
--------                          -------          --------     ------------
11/10/2011 3:22:27 PM   ITCHY-P1     wsa137    111.111.111.148            1
11/10/2011 3:22:27 PM   ITCHY-P1     wsa137    111.111.111.148            1
 
 
How can I do this in the powershell pipeline?
Thanks,
Itchy

Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images