Test Connection output in powershell


dear all,

i have list of servers trying ping source server. want output stored in csv format.

i able above mentioned task. want is, when run script time(ms) stored output in csv.

can me this??

hi,

keeping response time won't helpful, won't know response matches server.

i'd (assumes header of computername in input):

import-csv .\serverlist.csv | foreach {      test-connection -computername $_.computername   } | select address,protocoladdress,responsetime |         export-csv .\pingresults.csv -notypeinformation




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

for loop and start-job from cmd.exe

Edit Group Policy

File Share Witness is not a valid File share path