|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
IntroductionThis simple network scanner scans the given work group/domain for computers in Directory Services. It also displays their IP and MAC addresses. You will also find code to get IP address against computer name and to get MAC address against IP address. BackgroundIt all started when I was developing a Backup System, which was supposed to list all the computers in a network and later user can select any one or all computers and can record backup. Using the codeThis is a very easy to use application. Just download this application and type your work group or domain name and press Scan button. In first step, this system will get all directory entries in Directory Services (to user directory services in your project, you must add a reference to DirectoryEntry DomainEntry = new
DirectoryEntry("WinNT://" + txtWorkGroupName.Text + "");
DomainEntry.Children.SchemaFilter.Add("Computer");
Next it will iterate for all computers/machines through In the last there is a function Points of InterestYou can get a list of computers in your network with their IP and MAC addresses, which means it is a three in one package.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||