Last active
April 4, 2023 11:35
-
-
Save b4tman/ee297e22c2d162ed2e1610f0f7264ec6 to your computer and use it in GitHub Desktop.
powershell + fping > onliner for list alive IP's on /24 net
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fping -g 192.168.0.0/24 2>nul | Select-String -SimpleMatch -Pattern "is alive" | Select-Object @{Name=“IP”;Expression={($_ -split " ")[0]}} | Select-Object IP,@{Name=“D”;Expression={[int]($_.IP -split "\.")[3]}} | Sort-Object -Property D| Select-Object -Property IP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment