OK, i found out that command prompt has a command, Net View. it displays most of the computers on the network (10.158.0.1-10.157.0.254) however i need it to display ALL of the computers (10.158.0.1-10.158.2.254). That's what I'm basically trying to do.

dbasnett, i have looked at your code, and i did not know how to use it and display the info properly, any guidance would be helpful, the subnet mask is 255.255.252.0. I can provide as much info as you need.