Created
May 5, 2022 16:10
-
-
Save cmatskas/ef08fe2c222e2cfe7fa5806fd5f730e4 to your computer and use it in GitHub Desktop.
Scan All IP Addresses on Internal Network
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
1..254 | ForEach-Object { | |
if(!(Test-Connection 192.168.153.$_ -count 1 -Quiet)) { | |
Write-Output "IP Address Available 192.168.153.$_" | |
} | |
else { | |
Write-Output "IP Address in use 192.168.153.$_" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment