Skip to content

Instantly share code, notes, and snippets.

@betillogalvanfbc
Created July 9, 2019 16:21
Show Gist options
  • Save betillogalvanfbc/700d6025dce27a4db9f7c2c804ba5fbf to your computer and use it in GitHub Desktop.
Save betillogalvanfbc/700d6025dce27a4db9f7c2c804ba5fbf to your computer and use it in GitHub Desktop.
Simple command to check host with powershell
1..2xx | % {"192.168.1.$($_):$(Test-Connection -count 1 -comp 192.168.1.$($_) -quiet)"} | Select-String -Pattern True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment