[ACCEPTED]-How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN?-wsh
As Daren Thomas said, use nmap.
nmap -sP 192.168.1.1/24
to scan the 3 network 192.168.1.*
nmap -O 192.168.1.1/24
to get the operating 2 system of the user. For more information, read 1 the manpage
man nmap
regards
arp -a
That gets everything the current machine 3 knows about on the network.
(I'm putting 2 this up there as a second option, since 1 nmap isn't universally installed).
If you're using DHCP then the server will 9 give you a list of all that information.
This 8 website has a good tutorial on using powershell 7 to get networking information http://www.powershellpro.com/powershell-tutorial-introduction/powershell-scripting-with-wmi/
If you neet 6 to get quick list of computer names you 5 can use "net view". Also have 4 a look at nbmac although I'm unsure of it's 3 working status under XP. Another option 2 could be to use nbtstat -a (once you've 1 used net view to list workstations)
In PowerShell you can do something like:
$computers 4 = "server1","server2","server3"
Get-WmiObject 3 Win32_NetworkAdapterConfiguration -computer 2 $computers -filter "IPEnabled ='true'" | select 1 __Server,IPAddress,MACAddress
In PowerShell:
function Explore-Net($subnet, [int[]]$range){
$range | % { test-connection "$subnet.$_" -count 1 -erroraction silentlycontinue} | select -Property address | % {[net.dns]::gethostbyaddress($_.address)}
}
Example:
Explore-Net 192.168.2 @(3..10)
0
More Related questions
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.