Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

powershell test-connection

$
0
0

i have a group of PC

i want check and list : if online? list name, IP

                                   offline? list name,"offline"

here what i have now

Get-Content C:\Users\taxu\Documents\2003.csv | 
foreach {Test-Connection -ComputerName $_  -Count 1 -Delay 2 -BufferSize 2 -ThrottleLimit 2 -ErrorAction SilentlyContinue}

thanks


Viewing all articles
Browse latest Browse all 21975


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>