$net = "192.168.75"$ips = 1..254$timeout = 2000$online = @()$ips = $ips | % { "$($net).$_" }$task = $ips | % { [Net.NetworkInformation.Ping]::new().SendPingAsync($_, $timeout)}[Threading.Tasks.Task]::WaitAll($task)$task.Result | where Status -eq 'Success' | % { $addr = $_.Address.IPAddressToString $online += $addr Write-Host $addr -ForegroundColor Green}$online $ips = 1..254처럼 쓰면 $ip..