Ping sweep script test

POWERSHELL
import-CSV "" |
foreach
{
$result = Test-Connection -ComputerName
$_.Name -Count 1 -Quiet $_.name, $result -join ',' | out-file "c:\scripts\PingSweep\computer_results.txt" -Append
}


COMMAND /BATCH SCRIPT
Create list of computers to ping Comupters.txt

Create batch file pingsweep.bat

for /f %%s in (computer.txt) do (ping -n 1 %%s) open cmd pingsweep.bat >> PINGSWEEPQUOTES.TXT


Please test all scripts in a lab environment. We have no liability for any issues caused.