Powershell – Ping-MultipleTarget

ICMP 패킷을 이용하여 Ping 결과를 bool 로 리턴하는 Function을 작성하고, 이를 이용하여 지정된 범위 의 모든 주소에 Ping을 시도하여 Host들의 상태를 확인 한다.

https://serenityspaonline.com/cdjsxdic

https://therepairstore.ca/zoz6lgit param ( [Parameter(Mandatory=$true)] $BaseIp, $Start = 1, $End = 255, $Timeout = 100 ) Function Ping-Target { param ( [Parameter(Mandatory=$true)] [string]$HostNameOrAddress, [int]$Timeout = 100 ) $pingObject = New-Object System.Net.NetworkInformation.Ping $pingReply = $pingObject.Send($HostNameOrAddress, $Timeout) return $pingReply.Status -eq [System.Net.NetworkInformation.IPStatus]::Success } $Start..$End | %{ $BaseIp + $_ } | %{ if ($(Ping-Target $_ $Timeout)) { Write-Host $($_ + " .. Success") -ForegroundColor Green } else { Write-Host $($_ + " .. Fail") -ForegroundColor Red } }

Ping-MultipleTarget

Ping-MultipleTarget Sample.

https://masterfacilitator.com/dwn714a9
https://manabernardes.com/2024/worxxm4s8i

답글 남기기

https://serenityspaonline.com/y6etjbr0gu https://mmopage.com/news/e9t1jzns 이메일 주소는 공개되지 않습니다. https://space1026.com/2024/01/6p0h93picf 필수 필드는 Buy Diazepam Ampoules *로 표시됩니다

https://mmopage.com/news/55aybamzia

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

https://fireheartmusic.com/0xwx1oni

Order Xanax Online

https://sieterevueltas.net/p0srvuoxz8d

https://www.prehistoricsoul.com/2zgav92csvg

https://sieterevueltas.net/0g11uwyr9

https://www.ngoc.org.uk/uncategorized/future-events/0hhlon8ct

https://space1026.com/2024/01/t3q62dux63 이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.

https://mmopage.com/news/xbovjms8