Skip to content

Instantly share code, notes, and snippets.

@b4tman
Last active April 4, 2023 11:35
Show Gist options
  • Save b4tman/ee297e22c2d162ed2e1610f0f7264ec6 to your computer and use it in GitHub Desktop.
Save b4tman/ee297e22c2d162ed2e1610f0f7264ec6 to your computer and use it in GitHub Desktop.
powershell + fping > onliner for list alive IP's on /24 net
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