• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to find out all the workgroups in network

 
Riddhi Shah
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope this is the right forum to post the following query that I have in the project I am working on.
I have a need to find out all the workgroups existing in a network. I mean, if we go to "Network Neighbourhood"-->"Entire Network", we are able to view all the workgroups in the whole network. How can I get the names of these workgroups and names of all the machines in each workgroups using Java? Is there any Windows OS command for the same?
I tried "net view" commands of Windows. I used the output of this command in the java program. However, net view command only gives the names of all the machines in the same workgroup.
To summerize, if there are 2 workgroups in network - say workgroup1 and workgroup2, I need to know the names of these two workgroups and all the machines available in each workgroup.
I am not too aware of the networking concepts. I hope I am clear with the query.
I need some expert guidance to get this moving.
Thanks,
Riddhi.
 
Riddhi Shah
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did a little more research and I learnt that for Windows 2000,XP and NT OS, there is a command "net view /domain" that will list all the workgroups. However, Windows 98 and 95 does not seem to have these commands.
Now, I guess I am just looking for a similar command in Windows 98 and 95 that would help me figure out the workgroups in "entire network".
Please help.
Thanks,
Riddhi.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!