473,326 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Computer list in Workgroup

Hi All,

How to retrive computer list in a workgroup?
Regards

Eka
Nov 15 '05 #1
3 5688
You need to use the System.DirectoryServices namespace and the classes
therein
There's an article on MSDN [1] which a couple of examples of how to use this
classes,

--
Patrik Löwendahl
cshrp.net - ' Elegant code by witty programmers '
cornerstone.se - ' IT Training for professionals '
mind for newline

[1]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet
/html/dotnetadsearch.asp
"Eka Gautama" <ek*********@reliance-insurance.com> wrote in message
news:uP**************@TK2MSFTNGP11.phx.gbl...
Hi All,

How to retrive computer list in a workgroup?
Regards

Eka

Nov 15 '05 #2
Eka,

You probably want to use the P/Invoke layer and call the
NetQueryDisplayInformation API function. This will allow you to enumerate
through machines on the network. You will have to make the call through the
P/Invoke layer though. Check out the knowledge base article titled "HOWTO:
Use NetQueryDisplayInformation() in Visual Basic" located at (watch for line
wrap):

http://support.microsoft.com/default...b;en-us;316318

While it is for VB6, you can use that to help with making the
declarations and the calls in C#.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Eka Gautama" <ek*********@reliance-insurance.com> wrote in message
news:uP**************@TK2MSFTNGP11.phx.gbl...
Hi All,

How to retrive computer list in a workgroup?
Regards

Eka

Nov 15 '05 #3
Nicholas,

This requires a domain controller and is not usable in a workgroup.

Willy.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:u5**************@TK2MSFTNGP11.phx.gbl...
Eka,

You probably want to use the P/Invoke layer and call the
NetQueryDisplayInformation API function. This will allow you to enumerate
through machines on the network. You will have to make the call through the
P/Invoke layer though. Check out the knowledge base article titled "HOWTO:
Use NetQueryDisplayInformation() in Visual Basic" located at (watch for line
wrap):

http://support.microsoft.com/default...b;en-us;316318

While it is for VB6, you can use that to help with making the
declarations and the calls in C#.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Eka Gautama" <ek*********@reliance-insurance.com> wrote in message
news:uP**************@TK2MSFTNGP11.phx.gbl...
Hi All,

How to retrive computer list in a workgroup?
Regards

Eka


Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Shannon McMillan | last post by:
Hey, I want to change the name and workgroup/domain of a computer at first boot prior to winlogon. I've written code that will successfully change the computer's name and workgroup/domain, but...
5
by: Gonçalo Boléo | last post by:
How can i get the name of my computer? Is there any class that gives me access to properties like ComputerName, Workgroup, Domain? thnaks, Gonçalo Boléo
0
by: Steve D | last post by:
Hi. I am using the following code to try and populate two list boxes. The first, lstWorkgroups, is to show a list of the workgroups on my network. The second, lstComputers, is to show a list of the...
3
by: salman | last post by:
i successfully create private queue on domian computer but i want to create queue to work for 2 applications of domain and workgroup computer. please reply
9
by: John | last post by:
Tried this on microsoft.public.access.gettingstarted - no response - perhaps more appropriate here. I'm not a database user, simply helping someone get started with a new computer. The old...
6
by: Spyder | last post by:
When you go to "MyComputer" and get properties and select "Computer Name", you get the Domain or Workgroup a computer belongs to. I have looked thru MSDN library, the Internet, the Registry and in...
0
by: =?Utf-8?B?Z2FyeWRidXRsZXI=?= | last post by:
I need to write an application which will allow us to take a freshly installed Windows XP system, let a user on an assembly line select a few options and then programmatically change the Computer...
0
xxoulmate
by: xxoulmate | last post by:
how to extract username of computer using nbtstat., in dos mode i use nbtstat -a computername then it list down all the workgroup,the computername,and the username was there but the problem., is...
5
xxoulmate
by: xxoulmate | last post by:
get list of ip or computer names on a specified workgroup., is there any api that can list down that.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.